iavf(4): Replace functions with compatible implementations
Since FreeBSD 12.4 is missing functions found in newer versions,
replace some of the usages of missing ones with implementations
that work for 12.4.
This is a direct commit to stable/12; this fix isn't necessary on
newer branches.
Signed-off-by: Eric Joyner <erj@FreeBSD.org>