net: ethernet: ti: cpsw: clear all entries when delete vid
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 10 Aug 2018 12:47:08 +0000 (15:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 16:38:53 +0000 (09:38 -0700)
commitbe35b982e83a3f2c2cfbb27320066fb8a27168c2
treecf5fb9c37561221bf06df3fd288f5e894052142f
parente91e21894684cfff30e3a1a04e3d99af687dbb30
net: ethernet: ti: cpsw: clear all entries when delete vid

In cases if some of the entries were not found in forwarding table
while killing vlan, the rest not needed entries still left in the
table. No need to stop, as entry was deleted anyway. So fix this by
returning error only after all was cleaned. To implement this, return
-ENOENT in cpsw_ale_del_mcast() as it's supposed to be.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_ale.c