OSDN Git Service

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)
commit7bd754c47dd3ad1b048c9641294b0234fcce2c58
tree38fc39ed6e89dd30ede27dfe283059531007f882
parente715d74504352968cf24ac95476706bc911a69cd
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: 425eabddaf0f ("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