aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorShalom Toledo <[email protected]>2018-03-01 11:37:05 +0100
committerDavid S. Miller <[email protected]>2018-03-04 18:12:44 -0500
commit0a8a1bf17e3af34f1f8d2368916a6327f8b3bfd5 (patch)
tree5c5782c8c5f7692c3609ce30f371e6fc43822eb5 /lib/memory-notifier-error-inject.c
parent19f6484fca3ff3089850345332fb48ae3ea1fe76 (diff)
mlxsw: spectrum_switchdev: Check success of FDB add operation
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: 56ade8fe3fe1 ("mlxsw: spectrum: Add initial support for Spectrum ASIC") Reported-by: Ido Schimmel <[email protected]> Signed-off-by: Shalom Toledo <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions