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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:22:54 +0000 (08:22 +0100)
commit79063cb67f69f155b4d0206cdb16088f49f2e6f0
tree390cb1e6e7c5fbe48d396a6482b91b5c883c3156
parentba1c4fa2daea7b0fb1acc9036974089abde8b0a2
net: stmmac: tc: Do not setup flower filtering if RSS is enabled

commit 7bd754c47dd3ad1b048c9641294b0234fcce2c58 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c