]> 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)
commit60ca0396c73abbaffc5656ac6d97f231c78efc6c
tree38fc39ed6e89dd30ede27dfe283059531007f882
parentae1f06ec72bd7223f59859394ba24a9628ea8f01
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: 8aaef7e4c5cc ("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