aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/subcmd/help.c
diff options
context:
space:
mode:
authorShahar Klein <shahark@mellanox.com>2017-08-01 15:29:55 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2017-08-30 21:20:43 +0300
commit191220396db840822fc818edf03c49f0c02eb237 (patch)
tree0c401bd61e15c406f8eaf09ecb854b1d39b74e1f /tools/lib/subcmd/help.c
parent08820528c9d3ff0d0eda047d7ef5ecac2da1ef6c (diff)
net/mlx5: E-Switch, Unload the representors in the correct order
When changing from switchdev to legacy mode, all the representor port devices (uplink nic and reps) are cleaned up. Part of this cleaning process is removing the neigh entries and the hash table containing them. However, a representor neigh entry might be linked to the uplink port hash table and if the uplink nic is cleaned first the cleaning of the representor will end up in null deref. Fix that by unloading the representors in the opposite order of load. Fixes: cb67b832921c ("net/mlx5e: Introduce SRIOV VF representors") 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 'tools/lib/subcmd/help.c')
0 files changed, 0 insertions, 0 deletions