linux-brain/drivers/net/ethernet/mellanox/mlxsw
Shalom Toledo 804e337023 mlxsw: spectrum_switchdev: Check success of FDB add operation
[ Upstream commit 0a8a1bf17e ]

Until now, we assumed that in case of error when adding FDB entries, the
write operation will fail, but this is not the case. Instead, we need to
check that the number of entries reported in the response is equal to
the number of entries specified in the request.

Fixes: 56ade8fe3f ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
Reported-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-11 16:21:32 +01:00
..
Kconfig mlxsw: spectrum: Introduce support for Data Center Bridging (DCB) 2016-04-06 17:24:18 -04:00
Makefile mlxsw: Introduce simplistic KVD linear area manager 2016-07-05 09:06:30 -07:00
cmd.h mlxsw: pci: Add resources query implementation. 2016-07-24 23:11:58 -07:00
core.c mlxsw: spectrum: lag resources- use resources data instead of consts 2016-09-21 01:00:58 -04:00
core.h mlxsw: pci: Add max router interface resource 2016-09-21 01:00:59 -04:00
core_hwmon.c mlxsw: core: remove an unnecessary condition 2016-01-06 15:07:47 -05:00
emad.h mlxsw: Add interface to access registers and process events 2015-07-30 00:05:00 -07:00
item.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-10-20 06:08:27 -07:00
pci.c mlxsw: pci: Fix reset wait for SwitchX2 2016-10-20 11:11:11 -04:00
pci.h mlxsw: pci: Fix EQE structure definition 2017-02-04 09:47:08 +01:00
port.h mlxsw: spectrum: Add missing flood to router port 2016-08-24 09:39:03 -07:00
reg.h mlxsw: reg: Fix SPVMLR max record count 2017-12-20 10:07:21 +01:00
spectrum.c mlxsw: spectrum: Prevent mirred-related crash on removal 2017-10-12 11:51:20 +02:00
spectrum.h mlxsw: spectrum: Fix incorrect reuse of MID entries 2016-10-31 15:34:43 -04:00
spectrum_buffers.c mlxsw: spectrum: Fix sparse warnings 2016-09-20 04:32:50 -04:00
spectrum_dcb.c mlxsw: spectrum: Do not override PAUSE settings 2016-08-08 12:57:27 -07:00
spectrum_kvdl.c mlxsw: Introduce simplistic KVD linear area manager 2016-07-05 09:06:30 -07:00
spectrum_router.c mlxsw: spectrum_router: Don't log an error on missing neighbor 2018-01-31 12:55:55 +01:00
spectrum_switchdev.c mlxsw: spectrum_switchdev: Check success of FDB add operation 2018-03-11 16:21:32 +01:00
switchx2.c mlxsw: switchx2: Fix memory leak at skb reallocation 2017-02-04 09:47:08 +01:00
trap.h mlxsw: spectrum: Trap loop-backed packets 2016-08-17 19:18:27 -04:00
txheader.h mlxsw: spectrum: Add initial support for Spectrum ASIC 2015-10-16 07:15:23 -07:00