Message ID | 20200221095643.6642-5-jiri@resnulli.us |
---|---|
State | Changes Requested |
Delegated to: | David Miller |
Headers | show |
Series | net: allow user specify TC filter HW stats type | expand |
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 779364ed080a..d3d90f714a66 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -594,6 +594,11 @@ tc_cls_can_offload_basic(const struct net_device *dev, "Driver supports only offload of chain 0"); return false; } + if (common->hw_stats_type != FLOW_CLS_HW_STATS_TYPE_ANY) { + NL_SET_ERR_MSG(common->extack, + "Driver supports only default HW stats type \"any\""); + return false; + } return true; }