]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: tc: Do not setup flower filtering if RSS is enabled
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 10 Jan 2020 15:23:53 +0000 (16:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2020 19:31:10 +0000 (11:31 -0800)
commit0f931f87c8e670b524f8ea72fbc2342b9a9b6b64
tree38fc39ed6e89dd30ede27dfe283059531007f882
parent661738e2746fc13fe7383302bc230f4d58173497
net: stmmac: tc: Do not setup flower filtering if RSS is enabled

RSS, when enabled, will bypass the L3 and L4 filtering causing it not
to work. Add a check before trying to setup the filters.

Fixes: cab712a2fd2f ("net: stmmac: Implement L3/L4 Filters using TC Flower")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c