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>
This commit is contained in:
parent
83741bb043
commit
eba7927b55
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue