Skip to content

Commit 246ab6f

Browse files
jpirkodavem330
authored andcommitted
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: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent eba7927 commit 246ab6f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7522,7 +7522,7 @@ static int i40e_setup_tc_cls_flower(struct i40e_netdev_priv *np,
75227522
case TC_CLSFLOWER_STATS:
75237523
return -EOPNOTSUPP;
75247524
default:
7525-
return -EINVAL;
7525+
return -EOPNOTSUPP;
75267526
}
75277527
}
75287528

drivers/net/ethernet/intel/i40evf/i40evf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2884,7 +2884,7 @@ static int i40evf_setup_tc_cls_flower(struct i40evf_adapter *adapter,
28842884
case TC_CLSFLOWER_STATS:
28852885
return -EOPNOTSUPP;
28862886
default:
2887-
return -EINVAL;
2887+
return -EOPNOTSUPP;
28882888
}
28892889
}
28902890

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ static int igb_setup_tc_cls_flower(struct igb_adapter *adapter,
26982698
case TC_CLSFLOWER_STATS:
26992699
return -EOPNOTSUPP;
27002700
default:
2701-
return -EINVAL;
2701+
return -EOPNOTSUPP;
27022702
}
27032703
}
27042704

0 commit comments

Comments
 (0)