From: Ioana Ciornei <ioana.ciornei@nxp.com>
To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org
Cc: jiri@nvidia.com, idosch@nvidia.com,
Ioana Ciornei <ioana.ciornei@nxp.com>
Subject: [PATCH net-next 0/4] dpaa2-eth: add devlink parser error drop trap support
Date: Wed, 30 Sep 2020 20:16:07 +0300 [thread overview]
Message-ID: <20200930171611.27121-1-ioana.ciornei@nxp.com> (raw)
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.
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
next reply other threads:[~2020-09-30 17:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-30 17:16 Ioana Ciornei [this message]
2020-09-30 17:16 ` [PATCH net-next 1/4] devlink: add parser error drop packet traps Ioana Ciornei
2020-09-30 17:16 ` [PATCH net-next 2/4] devlink: add .trap_group_action_set() callback Ioana Ciornei
2020-09-30 17:16 ` [PATCH net-next 3/4] dpaa2-eth: add basic devlink support Ioana Ciornei
2020-09-30 18:01 ` Jakub Kicinski
2020-09-30 19:00 ` Ioana Ciornei
2020-09-30 17:16 ` [PATCH net-next 4/4] dpaa2-eth: add support for devlink parser error drop traps Ioana Ciornei
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=20200930171611.27121-1-ioana.ciornei@nxp.com \
--to=ioana.ciornei@nxp.com \
--cc=davem@davemloft.net \
--cc=idosch@nvidia.com \
--cc=jiri@nvidia.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
/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