linux_dsm_epyc7002/drivers/net/ethernet/mellanox
Roi Dayan 8a91ad9355 net/mlx5: E-Switch, Fix access to invalid memory when toggling esw modes
The esw fdb table has a union of legacy and offloads members.
So if we were in a certain esw mode we could set some memebers and not
set null which is fine as on destroy path and don't care.
But then moving from legacy to switchdev a second time, the cleanup flow
of legacy mode checks if a struct member was in use if it's not null so
we need to make sure to reset the code to null when we init legacy mode.

Fixes: 8da202b249 ("net/mlx5: E-Switch, Add support for VEPA in legacy mode.")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2019-03-29 12:24:42 -07:00
..
mlx4 net/mlx4_core: Fix qp mtt size calculation 2019-03-12 15:00:15 -07:00
mlx5/core net/mlx5: E-Switch, Fix access to invalid memory when toggling esw modes 2019-03-29 12:24:42 -07:00
mlxfw mlxfw: Replace license text with SPDX identifiers and adjust copyrights 2019-01-24 22:34:03 -08:00
mlxsw mlxsw: minimal: Initialize base_mac 2019-03-12 14:55:16 -07:00
Kconfig
Makefile