From: David Yang <mmyangfl@gmail.com>
To: netdev@vger.kernel.org
Cc: David Yang <mmyangfl@gmail.com>, Andrew Lunn <andrew@lunn.ch>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH net-next 0/2] net: dsa: motorcomm: Add devlink info and resources
Date: Sat, 7 Nov 2026 02:48:06 +0800 [thread overview]
Message-ID: <20261106184811.350700-1-mmyangfl@gmail.com> (raw)
Add basic devlink support: expose the ASIC id through .devlink_info_get,
and register devlink resources for the hardware blocks, reporting ACL,
FDB (with unicast/mcast/static occupancy) and meter usage.
David Yang (2):
net: dsa: motorcomm: Report error when FDB fails to add
net: dsa: motorcomm: Add devlink info and resources
drivers/net/dsa/motorcomm/Makefile | 1 +
drivers/net/dsa/motorcomm/chip.c | 45 +++++-
drivers/net/dsa/motorcomm/chip.h | 3 +
drivers/net/dsa/motorcomm/devlink.c | 208 ++++++++++++++++++++++++++++
drivers/net/dsa/motorcomm/devlink.h | 16 +++
5 files changed, 266 insertions(+), 7 deletions(-)
create mode 100644 drivers/net/dsa/motorcomm/devlink.c
create mode 100644 drivers/net/dsa/motorcomm/devlink.h
--
2.53.0
next reply other threads:[~2026-11-06 18:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 18:48 David Yang [this message]
2026-11-06 18:48 ` [PATCH net-next 1/2] net: dsa: motorcomm: Report error when FDB fails to add David Yang
2026-11-06 18:48 ` [PATCH net-next 2/2] net: dsa: motorcomm: Add devlink info and resources David Yang
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=20261106184811.350700-1-mmyangfl@gmail.com \
--to=mmyangfl@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.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
all inboxes | Powered by JetHome®