]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix VLAN filtering when HW does not support it
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 1 Apr 2020 17:29:03 +0000 (19:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Apr 2020 18:25:03 +0000 (11:25 -0700)
commit6a2dec174bf47ca038121ef1517f8b298c3e4a02
treedcd32e9f4a3460c8f890ce5529760680b5a5f7f5
parentcf9dac76a3c333aee2226e5c752e246c081f3613
net: stmmac: Fix VLAN filtering when HW does not support it

If we don't have any filters available we can't rely upon the return
code of stmmac_add_hw_vlan_rx_fltr() / stmmac_del_hw_vlan_rx_fltr(). Add
a check for this.

Fixes: 317df8a1d737 ("net: stmmac: Add support for VLAN Rx filtering")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c