summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/ef100_netdev.c
diff options
context:
space:
mode:
authorJonathan Cooper <jonathan.s.cooper@amd.com>2022-06-28 16:59:57 +0300
committerDavid S. Miller <davem@davemloft.net>2022-06-29 15:40:47 +0300
commit7e773594dada10f60c16c7085e0f0760122af8a7 (patch)
treeb3a76c354293845e80072c651c5240a35ce8c057 /drivers/net/ethernet/sfc/ef100_netdev.c
parent8cb03f4e084e8472d5fec77c01ee70eae8fa8b22 (diff)
downloadlinux-7e773594dada10f60c16c7085e0f0760122af8a7.tar.xz
sfc: Separate efx_nic memory from net_device memory
As we have a lot of common code this applies to all NIC architectures. Signed-off-by: Jonathan Cooper <jonathan.s.cooper@amd.com> Co-developed-by: Martin Habets <habetsm.xilinx@gmail.com> Signed-off-by: Martin Habets <habetsm.xilinx@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef100_netdev.c')
-rw-r--r--drivers/net/ethernet/sfc/ef100_netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_netdev.c b/drivers/net/ethernet/sfc/ef100_netdev.c
index e833eaaf61b6..7a80979f4ab7 100644
--- a/drivers/net/ethernet/sfc/ef100_netdev.c
+++ b/drivers/net/ethernet/sfc/ef100_netdev.c
@@ -243,7 +243,7 @@ int ef100_netdev_event(struct notifier_block *this,
struct efx_nic *efx = container_of(this, struct efx_nic, netdev_notifier);
struct net_device *net_dev = netdev_notifier_info_to_dev(ptr);
- if (efx_netdev_priv(net_dev) == efx && event == NETDEV_CHANGENAME)
+ if (efx->net_dev == net_dev && event == NETDEV_CHANGENAME)
ef100_update_name(efx);
return NOTIFY_DONE;