Commit 7bd754c4 authored by Jose Abreu's avatar Jose Abreu Committed by David S. Miller

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: 425eabdd ("net: stmmac: Implement L3/L4 Filters using TC Flower")
Signed-off-by: default avatarJose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e715d745
...@@ -577,6 +577,10 @@ static int tc_setup_cls(struct stmmac_priv *priv, ...@@ -577,6 +577,10 @@ static int tc_setup_cls(struct stmmac_priv *priv,
{ {
int ret = 0; int ret = 0;
/* When RSS is enabled, the filtering will be bypassed */
if (priv->rss.enable)
return -EBUSY;
switch (cls->command) { switch (cls->command) {
case FLOW_CLS_REPLACE: case FLOW_CLS_REPLACE:
ret = tc_add_flow(priv, cls); ret = tc_add_flow(priv, cls);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment