summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
diff options
context:
space:
mode:
authorOr Gerlitz2016-09-18 17:20:28 +0200
committerDavid S. Miller2016-09-20 04:10:15 +0200
commit4eea37d7b92076fdeac2a21e5f4dbd92d286719d (patch)
treefc9ccd75ec79343b9b06084dc908ff4dbe94f0e5 /drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
parentnet/mlx5: Fix flow counter bulk command out mailbox allocation (diff)
downloadkernel-qcow2-linux-4eea37d7b92076fdeac2a21e5f4dbd92d286719d.tar.gz
kernel-qcow2-linux-4eea37d7b92076fdeac2a21e5f4dbd92d286719d.tar.xz
kernel-qcow2-linux-4eea37d7b92076fdeac2a21e5f4dbd92d286719d.zip
net/mlx5: E-Switch, Fix error flow in the SRIOV e-switch init code
When enablement of the SRIOV e-switch in certain mode (switchdev or legacy) fails, we must set the mode to none. Otherwise, we'll run into double free based crashes when further attempting to deal with the e-switch (such as when disabling sriov or unloading the driver). Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c')
0 files changed, 0 insertions, 0 deletions