This patchset fixes an invalid reference to mdev in mlx4 shutdown flow. In patch 1, we make sure netif_device_detach() is called from shutdown flow only, since we want to keep it present during a simple configuration change.
In patches 2 and 3, we add checks that were missing in: * dev_get_phys_port_id * dev_get_phys_port_name We check the presence of the network device before calling the driver's callbacks. This already exists for all other ndo's. Series generated against net commit: e5f6f564fd19 bnxt: add a missing rcu synchronization Thanks, Tariq. Eugenia Emantayev (3): net/mlx4_en: Remove netif_device_detach from stop port flow net: Check netdevice presence on dev_get_phys_port_id net: Check netdevice presence on dev_get_phys_port_name drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 8 ++++---- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 22 ++++++++-------------- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 +- net/core/dev.c | 4 ++++ net/core/rtnetlink.c | 4 ++-- 5 files changed, 19 insertions(+), 21 deletions(-) -- 1.8.3.1