mlx4: replace LinuxKPI macros with ifnet functions
The LinuxKPI net_device actually is an ifnet; in order to further
clean that up so we can extend "net_device" replace the few macros
inline in mlx4.
Sponsored by: The FreeBSD Foundation
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D30476
(cherry picked from commit 60afad6fc307815ad2b70a9974d908b6d5d50674)