|
@@ -127,7 +127,7 @@ static int nfp_bpf_setup_tc(struct nfp_app *app, struct net_device *netdev,
|
|
struct nfp_net *nn = netdev_priv(netdev);
|
|
struct nfp_net *nn = netdev_priv(netdev);
|
|
|
|
|
|
if (type != TC_SETUP_CLSBPF || !nfp_net_ebpf_capable(nn) ||
|
|
if (type != TC_SETUP_CLSBPF || !nfp_net_ebpf_capable(nn) ||
|
|
- is_classid_clsact_ingress(cls_bpf->common.classid) ||
|
|
|
|
|
|
+ !is_classid_clsact_ingress(cls_bpf->common.classid) ||
|
|
cls_bpf->common.protocol != htons(ETH_P_ALL) ||
|
|
cls_bpf->common.protocol != htons(ETH_P_ALL) ||
|
|
cls_bpf->common.chain_index)
|
|
cls_bpf->common.chain_index)
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|