| From: |
| Hariprasad Kelam <hkelam-AT-marvell.com> |
| To: |
| <netdev-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org> |
| Subject: |
| [net-next PatchV4 0/2] Octeontx2-pf: Add support for DMAC_FILTER trap |
| Date: |
| Fri, 23 Jan 2026 16:17:29 +0530 |
| Message-ID: |
| <20260123104731.2710019-1-hkelam@marvell.com> |
| Cc: |
| <kuba-AT-kernel.org>, <davem-AT-davemloft.net>, <sgoutham-AT-marvell.com>, <gakula-AT-marvell.com>, <jerinj-AT-marvell.com>, <lcherian-AT-marvell.com>, <sbhatta-AT-marvell.com>, <hkelam-AT-marvell.com>, <naveenm-AT-marvell.com>, <edumazet-AT-google.com>, <pabeni-AT-redhat.com>, <andrew+netdev-AT-lunn.ch>, <bbhushan2-AT-marvell.com> |
| Archive-link: |
| Article |
Octeontx2/CN10K silicon MAC blocks CGX/RPM supports DMAC filters.
These patches add devlink trap support for this functionality.
Patch 1: Introduces mailbox handlers to retrieve the DMAC filter
drop counter.
Patch 2: Adds driver callbacks to support devlink traps.
Hariprasad Kelam (2):
octeontx2-af: Mailbox handlers to fetch DMAC filter drop counter
Octeontx2-pf: Add support for DMAC_FILTER trap
----
V4 * Address AI review comments
V3 * Address review comments suggested by Claude Code
V2 * fix warnings reported by kernel test robot
.../net/ethernet/marvell/octeontx2/af/cgx.c | 11 ++
.../net/ethernet/marvell/octeontx2/af/cgx.h | 2 +
.../marvell/octeontx2/af/lmac_common.h | 1 +
.../net/ethernet/marvell/octeontx2/af/mbox.h | 7 +
.../net/ethernet/marvell/octeontx2/af/rpm.c | 18 +-
.../net/ethernet/marvell/octeontx2/af/rpm.h | 2 +
.../ethernet/marvell/octeontx2/af/rvu_cgx.c | 23 +++
.../marvell/octeontx2/nic/otx2_devlink.c | 167 ++++++++++++++++++
.../marvell/octeontx2/nic/otx2_devlink.h | 23 ++-
.../ethernet/marvell/octeontx2/nic/otx2_pf.c | 7 +
10 files changed, 259 insertions(+), 2 deletions(-)
--
2.34.1