mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 08:00:52 +07:00
net: mvpp2: cls: Report an error for unsupported flow types
Add a missing check to detect flow types that we don't support, so that user can be informed of this. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f4957eb6c
commit
f4f1ba1819
@ -1373,6 +1373,10 @@ int mvpp2_ethtool_cls_rule_ins(struct mvpp2_port *port,
|
||||
|
||||
efs->rule.flow = ethtool_rule->rule;
|
||||
efs->rule.flow_type = mvpp2_cls_ethtool_flow_to_type(info->fs.flow_type);
|
||||
if (efs->rule.flow_type < 0) {
|
||||
ret = efs->rule.flow_type;
|
||||
goto clean_rule;
|
||||
}
|
||||
|
||||
ret = mvpp2_cls_rfs_parse_rule(&efs->rule);
|
||||
if (ret)
|
||||
|
Loading…
Reference in New Issue
Block a user