summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAmir Vadai <amirva@mellanox.com>2016-05-13 14:55:37 +0200
committerDavid S. Miller <davem@davemloft.net>2016-05-16 19:43:50 +0200
commit10cbc6843446165ee250e1ee80dc19ee325f1e6d (patch)
tree9a281054241598e1a44a6dfd3826e7d1e2657f98 /include/net
parentnet/sched: act_gact: Update statistics when offloaded to hardware (diff)
downloadlinux-10cbc6843446165ee250e1ee80dc19ee325f1e6d.tar.xz
linux-10cbc6843446165ee250e1ee80dc19ee325f1e6d.zip
net/sched: cls_flower: Hardware offloaded filters statistics support
Introduce a new command in ndo_setup_tc() for hardware offloaded filters, to call the NIC driver, and make it update the statistics. This will be done before dumping the filter and its statistics. Signed-off-by: Amir Vadai <amirva@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/pkt_cls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 8b4893878cf4..0f7efa88f210 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -426,6 +426,7 @@ static inline bool tc_flags_valid(u32 flags)
enum tc_fl_command {
TC_CLSFLOWER_REPLACE,
TC_CLSFLOWER_DESTROY,
+ TC_CLSFLOWER_STATS,
};
struct tc_cls_flower_offload {