提交 246ab6f0 编写于 作者: J Jiri Pirko 提交者: David S. Miller

cls_flower: fix error values for commands not supported by drivers

-EOPNOTSUPP is the error value that should be reported if a flower
command is not supported by a driver. Fix it in couple of Intel drivers.
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 eba7927b
...@@ -7522,7 +7522,7 @@ static int i40e_setup_tc_cls_flower(struct i40e_netdev_priv *np, ...@@ -7522,7 +7522,7 @@ static int i40e_setup_tc_cls_flower(struct i40e_netdev_priv *np,
case TC_CLSFLOWER_STATS: case TC_CLSFLOWER_STATS:
return -EOPNOTSUPP; return -EOPNOTSUPP;
default: default:
return -EINVAL; return -EOPNOTSUPP;
} }
} }
......
...@@ -2884,7 +2884,7 @@ static int i40evf_setup_tc_cls_flower(struct i40evf_adapter *adapter, ...@@ -2884,7 +2884,7 @@ static int i40evf_setup_tc_cls_flower(struct i40evf_adapter *adapter,
case TC_CLSFLOWER_STATS: case TC_CLSFLOWER_STATS:
return -EOPNOTSUPP; return -EOPNOTSUPP;
default: default:
return -EINVAL; return -EOPNOTSUPP;
} }
} }
......
...@@ -2698,7 +2698,7 @@ static int igb_setup_tc_cls_flower(struct igb_adapter *adapter, ...@@ -2698,7 +2698,7 @@ static int igb_setup_tc_cls_flower(struct igb_adapter *adapter,
case TC_CLSFLOWER_STATS: case TC_CLSFLOWER_STATS:
return -EOPNOTSUPP; return -EOPNOTSUPP;
default: default:
return -EINVAL; return -EOPNOTSUPP;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册