diff options
author | Shahar Klein <shahark@mellanox.com> | 2018-03-20 13:44:40 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-03-26 22:59:08 +0200 |
commit | a117f73dc2430443f23e18367fa545981129c1a6 (patch) | |
tree | 44fdfd016ee58bc825b5c8c52f65d730eda9b2c8 /net | |
parent | net/mlx5e: Avoid using the ipv6 stub in the TC offload neigh update path (diff) | |
download | linux-a117f73dc2430443f23e18367fa545981129c1a6.tar.xz linux-a117f73dc2430443f23e18367fa545981129c1a6.zip |
net/mlx5e: Sync netdev vxlan ports at open
When mlx5_core is loaded it is expected to sync ports
with all vxlan devices so it can support vxlan encap/decap.
This is done via udp_tunnel_get_rx_info(). Currently this
call is set in mlx5e_nic_enable() and if the netdev is not in
NETREG_REGISTERED state it will not be called.
Normally on load the netdev state is not NETREG_REGISTERED
so udp_tunnel_get_rx_info() will not be called.
Moving udp_tunnel_get_rx_info() to mlx5e_open() so
it will be called on netdev UP event and allow encap/decap.
Fixes: 610e89e05c3f ("net/mlx5e: Don't sync netdev state when not registered")
Signed-off-by: Shahar Klein <shahark@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions