netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next 0/9] mlxsw: implement port mirroring offload
@ 2016-07-21  8:19 Jiri Pirko
  2016-07-21  8:19 ` [patch net-next 1/9] mlxsw: pci: Add resources query implementation Jiri Pirko
                   ` (9 more replies)
  0 siblings, 10 replies; 19+ messages in thread
From: Jiri Pirko @ 2016-07-21  8:19 UTC (permalink / raw)
  To: netdev; +Cc: davem, yotamg, eladr, idosch, nogahf, ogerlitz, jhs

From: Jiri Pirko <jiri@mellanox.com>

This patchset introduces tc matchall classifier and its offload
to Spectrum hardware. In combination with mirred action, defined port mirroring
setup is offloaded by mlxsw/spectrum driver.

The commands used for creating mirror ports:

# ingress mirroring using matchall
tc qdisc  add dev eth25 handle ffff: ingress
tc filter add dev eth25 parent ffff:            \
        matchall skip_sw                        \
        action mirred egress mirror             \
        dev eth27

# egress mirroring using matchall
tc qdisc add dev eth25 handle 1: root prio
tc filter add dev eth25 parent 1:               \
        matchall skip_sw                        \
        action mirred egress mirror             \
        dev eth27

These patches contain:
 - Resource query implementation
 - Hardware port mirorring support for spectrum.
 - Definition of the matchall traffic classifier.
 - General support for hw-offloading for that classifier.
 - Specific spectrum implementaion for matchall offloading.

Jiri Pirko (1):
  net/sched: introduce Match-all classifier

Nogah Frankel (2):
  mlxsw: pci: Add resources query implementation.
  mlxsw: pci: Add max span resources to resources query

Yotam Gigi (6):
  net/sched: Add match-all classifier hw offloading.
  mlxsw: reg: Add Shared Buffer Internal Buffer register
  mlxsw: reg: Add Monitoring Port Analyzer Table register
  mlxsw: reg: Add the Monitoring Port Analyzer register
  net/sched: act_mirred: Add helper inlines to access tcf_mirred info.
  mlxsw: spectrum: Add support in matchall mirror TC offloading

 drivers/net/ethernet/mellanox/mlxsw/cmd.h      |  32 ++
 drivers/net/ethernet/mellanox/mlxsw/core.c     |  10 +-
 drivers/net/ethernet/mellanox/mlxsw/core.h     |  11 +-
 drivers/net/ethernet/mellanox/mlxsw/pci.c      |  65 +++-
 drivers/net/ethernet/mellanox/mlxsw/reg.h      | 163 +++++++++
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 466 ++++++++++++++++++++++++-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h |  44 +++
 drivers/net/ethernet/mellanox/mlxsw/switchx2.c |   1 +
 include/linux/netdevice.h                      |   2 +
 include/net/pkt_cls.h                          |  11 +
 include/net/tc_act/tc_mirred.h                 |   9 +
 include/uapi/linux/pkt_cls.h                   |  12 +
 net/sched/Kconfig                              |  10 +
 net/sched/Makefile                             |   1 +
 net/sched/cls_matchall.c                       | 318 +++++++++++++++++
 15 files changed, 1150 insertions(+), 5 deletions(-)
 create mode 100644 net/sched/cls_matchall.c

-- 
2.5.5

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-07-21 13:01 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21  8:19 [patch net-next 0/9] mlxsw: implement port mirroring offload Jiri Pirko
2016-07-21  8:19 ` [patch net-next 1/9] mlxsw: pci: Add resources query implementation Jiri Pirko
2016-07-21  8:25   ` Ido Schimmel
2016-07-21  9:41   ` Jamal Hadi Salim
2016-07-21  9:43     ` Jiri Pirko
2016-07-21  9:49       ` Jamal Hadi Salim
2016-07-21  8:19 ` [patch net-next 2/9] mlxsw: pci: Add max span resources to resources query Jiri Pirko
2016-07-21  8:26   ` Ido Schimmel
2016-07-21  8:19 ` [patch net-next 3/9] net/sched: introduce Match-all classifier Jiri Pirko
2016-07-21  8:19 ` [patch net-next 4/9] net/sched: Add match-all classifier hw offloading Jiri Pirko
2016-07-21  8:19 ` [patch net-next 5/9] mlxsw: reg: Add Shared Buffer Internal Buffer register Jiri Pirko
2016-07-21  8:19 ` [patch net-next 6/9] mlxsw: reg: Add Monitoring Port Analyzer Table register Jiri Pirko
2016-07-21  8:19 ` [patch net-next 7/9] mlxsw: reg: Add the Monitoring Port Analyzer register Jiri Pirko
2016-07-21  8:19 ` [patch net-next 8/9] net/sched: act_mirred: Add helper inlines to access tcf_mirred info Jiri Pirko
2016-07-21  8:19 ` [patch net-next 9/9] mlxsw: spectrum: Add support in matchall mirror TC offloading Jiri Pirko
2016-07-21  9:00 ` [patch net-next 0/9] mlxsw: implement port mirroring offload Jamal Hadi Salim
2016-07-21  9:07   ` Jiri Pirko
2016-07-21  9:24     ` Jamal Hadi Salim
2016-07-21  9:33       ` Jiri Pirko

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).