netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/4] dpaa2-eth: add devlink parser error drop trap support
@ 2020-09-30 19:16 Ioana Ciornei
  2020-09-30 19:16 ` [PATCH net-next v2 1/4] devlink: add parser error drop packet traps Ioana Ciornei
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Ioana Ciornei @ 2020-09-30 19:16 UTC (permalink / raw)
  To: davem, kuba, netdev; +Cc: jiri, idosch, Ioana Ciornei

This patch set adds support in the dpaa2-eth driver for a new group of
devlink drop traps - PARSER_ERROR_DROPS.

The first patch adds a new generic trap group and associated traps,
their definitions in devlink and their corresponding entries in the
Documentation.

Because there might be more devices (besides DPAA2) which do not support
changing the action independently on each trap, a nre devlink callback
is introduced - .trap_group_action_set(). If this callback is populated,
it will take precedence over .trap_action_set() when the user requests
changing the action on all the traps in a group.

The next patches add basic linkage with devlink for the dpaa2-eth driver
and support for the newly added PARSER_ERROR_DROPS. Nothing special
here, just setting up the Rx error queue, interpreting the parse result,
and then reporting any frame received on that queue to devlink.

Changes in v2:
 - fix build error in 3/4

Ioana Ciornei (4):
  devlink: add parser error drop packet traps
  devlink: add .trap_group_action_set() callback
  dpaa2-eth: add basic devlink support
  dpaa2-eth: add support for devlink parser error drop traps

 .../networking/devlink/devlink-trap.rst       |  70 ++++
 drivers/net/ethernet/freescale/dpaa2/Makefile |   2 +-
 .../freescale/dpaa2/dpaa2-eth-devlink.c       | 307 ++++++++++++++++++
 .../net/ethernet/freescale/dpaa2/dpaa2-eth.c  | 115 +++++++
 .../net/ethernet/freescale/dpaa2/dpaa2-eth.h  |  81 ++++-
 include/net/devlink.h                         |  62 ++++
 net/core/devlink.c                            |  35 ++
 7 files changed, 670 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-devlink.c

-- 
2.28.0


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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-30 19:16 [PATCH net-next v2 0/4] dpaa2-eth: add devlink parser error drop trap support Ioana Ciornei
2020-09-30 19:16 ` [PATCH net-next v2 1/4] devlink: add parser error drop packet traps Ioana Ciornei
2020-09-30 19:16 ` [PATCH net-next v2 2/4] devlink: add .trap_group_action_set() callback Ioana Ciornei
2020-09-30 19:53   ` Ido Schimmel
2020-10-01 13:21     ` Ioana Ciornei
2020-09-30 19:16 ` [PATCH net-next v2 3/4] dpaa2-eth: add basic devlink support Ioana Ciornei
2020-09-30 19:16 ` [PATCH net-next v2 4/4] dpaa2-eth: add support for devlink parser error drop traps Ioana Ciornei
2020-09-30 19:44   ` Ido Schimmel
2020-10-01 13:19     ` Ioana Ciornei
2020-10-01  0:25   ` Jakub Kicinski

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