diff options
author | Ido Shamay <idos@mellanox.com> | 2015-03-24 15:18:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-29 10:31:46 +0200 |
commit | 8aa9de4c9b7c43c7861fd398ae141d7979f4896c (patch) | |
tree | 18309e15145f93a1631317dcdacc6087394f236c /net | |
parent | 344fca2f8283f79e3e3cc647d16da4eaf13da70c (diff) | |
download | lwn-8aa9de4c9b7c43c7861fd398ae141d7979f4896c.tar.gz lwn-8aa9de4c9b7c43c7861fd398ae141d7979f4896c.zip |
net/mlx4_en: Call register_netdevice in the proper location
[ Upstream commit e5eda89d97ec256ba14e7e861387cc0468259c18 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions