diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-06-24 11:38:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-25 10:14:03 +0300 |
commit | eba7927b55938b8db7ba5d76086f0ab0a2e2274d (patch) | |
tree | 301c57034c3ae347f5289fc527873a7b7eca5c46 /drivers/net/ethernet/netronome | |
parent | 83741bb0430465ea9f0654d4772c03d694b33ad7 (diff) | |
download | linux-eba7927b55938b8db7ba5d76086f0ab0a2e2274d.tar.xz |
nfp: handle cls_flower command default case
Currently the default case is not handled, which with future command
introductions would introduce a warning. So handle it.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/flower/offload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/flower/offload.c b/drivers/net/ethernet/netronome/nfp/flower/offload.c index c42e64f32333..c0e74aa4cb5e 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/offload.c +++ b/drivers/net/ethernet/netronome/nfp/flower/offload.c @@ -576,9 +576,9 @@ nfp_flower_repr_offload(struct nfp_app *app, struct net_device *netdev, return nfp_flower_del_offload(app, netdev, flower, egress); case TC_CLSFLOWER_STATS: return nfp_flower_get_stats(app, netdev, flower, egress); + default: + return -EOPNOTSUPP; } - - return -EOPNOTSUPP; } int nfp_flower_setup_tc_egress_cb(enum tc_setup_type type, void *type_data, |