From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eelco Chaudron Subject: [PATCH 0/2] net/sched: Add hardware specific counters to TC actions Date: Thu, 9 Aug 2018 11:01:18 -0400 Message-ID: <20180809150118.5275.63824.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, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us To: netdev@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45066 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730634AbeHIR0t (ORCPT ); Thu, 9 Aug 2018 13:26:49 -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 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(-)