From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eelco Chaudron Subject: [PATCH net-next V2 0/2] net/sched: Add hardware specific counters to TC actions Date: Fri, 21 Sep 2018 07:13:37 -0400 Message-ID: <20180921111330.3532.29886.stgit@wsfd-netdev20.ntdv.lab.eng.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, jiri@resnulli.us, xiyou.wangcong@gmail.com, jhs@mojatatu.com, jakub.kicinski@netronome.com To: netdev@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:52750 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728132AbeIURCM (ORCPT ); Fri, 21 Sep 2018 13:02:12 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Add hardware specific counters to TC actions which will be exported through the netlink API. This makes troubleshooting TC flower offload easier, as it possible to differentiate the packets being offloaded. Signed-off-by: Eelco Chaudron v2 - Rebased on latest net-next Eelco Chaudron (2): net/core: Add new basic hardware counter net/sched: Add hardware specific counters to TC actions include/net/act_api.h | 8 +++- include/net/gen_stats.h | 4 ++ include/net/pkt_cls.h | 2 + include/uapi/linux/gen_stats.h | 1 + net/core/gen_stats.c | 73 ++++++++++++++++++++++++++++++---------- net/sched/act_api.c | 14 ++++++-- net/sched/act_gact.c | 6 +++ net/sched/act_mirred.c | 5 ++- 8 files changed, 85 insertions(+), 28 deletions(-)