netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amir Vadai <amir@vadai.me>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Or Gerlitz <ogerlitz@mellanox.com>,
	Amir Vadai <amir@vadai.me>, Saeed Mahameed <saeedm@mellanox.com>
Subject: [PATCH net-next 0/8] sched,mlx5: Offloaded TC flower filter statistics
Date: Fri, 13 May 2016 12:55:34 +0000	[thread overview]
Message-ID: <1463144142-13810-1-git-send-email-amir@vadai.me> (raw)

Hi Dave,

This patchset introduces counters support for offloaded cls_flower filters.
When the user calls 'tc show -s ..', fl_dump is called.
Before fl_dump() returns the statistics, it calls the NIC driver (using a new
ndo_setup_tc() command - TC_CLSFLOWER_STATS) to read the hardware counters and
update the statistics accordingly. A new TC action op was added (stats_update())
to be used by the NIC driver to update the statistics.

Patchset was applied and tested over commit ed7cbbc ("udp: Resolve NULL pointer
dereference over flow-based vxlan device")

Thanks,
Amir

Amir Vadai (8):
  net/sched: Enable netdev drivers to update statistics of offloaded
    actions
  net/sched: act_gact: Update statistics when offloaded to hardware
  net/sched: cls_flower: Hardware offloaded filters statistics support
  net/mlx5_core: Use a macro in mlx5_command_str()
  net/mlx5_core: Firmware commands to support flow counters
  net/mlx5_core: Introduce flow steering destination of type counter
  net/mlx5_core: Flow counters infrastructure
  net/mlx5e: Hardware offloaded flower filter statistics support

 drivers/net/ethernet/mellanox/mlx5/core/Makefile   |   2 +-
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c      | 309 +++++++++------------
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c  |   2 +
 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c    |  71 ++++-
 drivers/net/ethernet/mellanox/mlx5/core/en_tc.h    |   3 +
 drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c   | 102 ++++++-
 drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.h   |   6 +
 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c  |  59 +++-
 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h  |  26 ++
 .../net/ethernet/mellanox/mlx5/core/fs_counters.c  | 226 +++++++++++++++
 include/linux/mlx5/driver.h                        |  14 +
 include/linux/mlx5/fs.h                            |   7 +
 include/linux/mlx5/mlx5_ifc.h                      | 101 ++++++-
 include/net/act_api.h                              |  12 +
 include/net/pkt_cls.h                              |   1 +
 include/net/sch_generic.h                          |  20 +-
 net/sched/act_gact.c                               |  15 +
 net/sched/cls_flower.c                             |  21 ++
 18 files changed, 802 insertions(+), 195 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c

-- 
2.8.0

             reply	other threads:[~2016-05-13 12:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-13 12:55 Amir Vadai [this message]
2016-05-13 12:55 ` [PATCH net-next 1/8] net/sched: Enable netdev drivers to update statistics of offloaded actions Amir Vadai
2016-05-13 12:55 ` [PATCH net-next 2/8] net/sched: act_gact: Update statistics when offloaded to hardware Amir Vadai
2016-05-13 12:55 ` [PATCH net-next 3/8] net/sched: cls_flower: Hardware offloaded filters statistics support Amir Vadai
2016-05-13 12:55 ` [PATCH net-next 4/8] net/mlx5_core: Use a macro in mlx5_command_str() Amir Vadai
2016-05-13 12:55 ` [PATCH net-next 5/8] net/mlx5_core: Firmware commands to support flow counters Amir Vadai
2016-05-13 12:55 ` [PATCH net-next 6/8] net/mlx5_core: Introduce flow steering destination of type counter Amir Vadai
2016-05-13 12:55 ` [PATCH net-next 7/8] net/mlx5_core: Flow counters infrastructure Amir Vadai
2016-05-13 12:55 ` [PATCH net-next 8/8] net/mlx5e: Hardware offloaded flower filter statistics support Amir Vadai
2016-05-16 17:44 ` [PATCH net-next 0/8] sched,mlx5: Offloaded TC flower filter statistics David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1463144142-13810-1-git-send-email-amir@vadai.me \
    --to=amir@vadai.me \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@mellanox.com \
    --cc=saeedm@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).