HomeFreeBSD

mlx4: rename conflicting netdev_priv() to mlx4_netdev_priv()

Description

mlx4: rename conflicting netdev_priv() to mlx4_netdev_priv()

netdev_priv() is a LinuxKPI function which was used with the old ifnet
linux/netdevice.h implementation which was not adaptable to modern
Linux drviers unless rewriting them for ifnet in first place which
defeats the purpose.
Rename the netdev_priv() calls in mlx4 to mlx4_netdev_priv()
returning the ifnet softc to avoid conflicting symbol names
with different implementations in the future.

MFC after: 3 days
Reviewed by: hselasky, kib
Differential Revision: https://reviews.freebsd.org/D32640

Details

Provenance
bzAuthored on Oct 25 2021, 4:18 PM
Reviewer
hselasky
Differential Revision
D32640: mlx4: rename conflicting netdev_priv() to mlx4_netdev_priv()
Parents
rGea14af2d3c40: Inline critical enter/exit for "tied" kernel modules
Branches
Unknown
Tags
Unknown