aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/eq.c
diff options
context:
space:
mode:
authorIdo Shamay <idos@mellanox.com>2015-03-24 15:18:38 +0200
committerDavid S. Miller <davem@davemloft.net>2015-03-24 15:22:52 -0400
commite5eda89d97ec256ba14e7e861387cc0468259c18 (patch)
treeb63815df3edb36b386c1a013821093a4a7c25dfc /drivers/net/ethernet/mellanox/mlx4/eq.c
parentMerge tag 'wireless-drivers-for-davem-2015-03-24' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers (diff)
downloadlinux-dev-e5eda89d97ec256ba14e7e861387cc0468259c18.tar.xz
linux-dev-e5eda89d97ec256ba14e7e861387cc0468259c18.zip
net/mlx4_en: Call register_netdevice in the proper location
Netdevice registration should be performed a the end of the driver initialization flow. If we don't do that, after calling register_netdevice, device callbacks may be issued by higher layers of the stack before final configuration of the device is done. For example (VXLAN configuration race), mlx4_SET_PORT_VXLAN was issued after the register_netdev command. System network scripts may configure the interface (UP) right after the registration, which also attach unicast VXLAN steering rule, before mlx4_SET_PORT_VXLAN was called, causing the firmware to fail the rule attachment. Fixes: 837052d0ccc5 ("net/mlx4_en: Add netdev support for TCP/IP offloads of vxlan tunneling") Signed-off-by: Ido Shamay <idos@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/eq.c')
0 files changed, 0 insertions, 0 deletions