From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0F2D745B4C; Tue, 22 Oct 2024 21:17:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64B4F4113C; Tue, 22 Oct 2024 21:15:17 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id 3FAFB406B6 for ; Tue, 22 Oct 2024 21:13:15 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 23F3C1A1BE8; Tue, 22 Oct 2024 21:13:15 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D74CD1A1C0A; Tue, 22 Oct 2024 21:13:14 +0200 (CEST) Received: from lsv03379.swis.in-blr01.nxp.com (lsv03379.swis.in-blr01.nxp.com [92.120.147.188]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 458C6183DC03; Wed, 23 Oct 2024 03:13:14 +0800 (+08) From: vanshika.shukla@nxp.com To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena Cc: Vanshika Shukla Subject: [v4 41/42] net/dpaa2: add support for C-VLAN and MAC Date: Wed, 23 Oct 2024 00:42:54 +0530 Message-Id: <20241022191256.516818-42-vanshika.shukla@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241022191256.516818-1-vanshika.shukla@nxp.com> References: <20241014120126.170790-1-vanshika.shukla@nxp.com> <20241022191256.516818-1-vanshika.shukla@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Vanshika Shukla This patch adds the support for DPDMUX_METHOD_C_VLAN_MAC method which implements DPDMUX based on C-VLAN and MAC address. Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_mux.c | 2 +- drivers/net/dpaa2/mc/fsl_dpdmux.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index c8f1d46bb2..6e10739dd3 100644 --- a/drivers/net/dpaa2/dpaa2_mux.c +++ b/drivers/net/dpaa2/dpaa2_mux.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright 2018-2021,2023 NXP + * Copyright 2018-2024 NXP */ #include diff --git a/drivers/net/dpaa2/mc/fsl_dpdmux.h b/drivers/net/dpaa2/mc/fsl_dpdmux.h index 97b09e59f9..70b81f3b3b 100644 --- a/drivers/net/dpaa2/mc/fsl_dpdmux.h +++ b/drivers/net/dpaa2/mc/fsl_dpdmux.h @@ -593,6 +593,22 @@ int dpdmux_dump_table(struct fsl_mc_io *mc_io, */ #define DPDMUX__ERROR_L4CE 0x00000001 +#define DPDMUX_ALL_ERRORS (DPDMUX__ERROR_L4CE | \ + DPDMUX__ERROR_L4CV | \ + DPDMUX__ERROR_L3CE | \ + DPDMUX__ERROR_L3CV | \ + DPDMUX_ERROR_BLE | \ + DPDMUX_ERROR_PHE | \ + DPDMUX_ERROR_ISP | \ + DPDMUX_ERROR_PTE | \ + DPDMUX_ERROR_FPE | \ + DPDMUX_ERROR_FLE | \ + DPDMUX_ERROR_PIEE | \ + DPDMUX_ERROR_TIDE | \ + DPDMUX_ERROR_MNLE | \ + DPDMUX_ERROR_EOFHE | \ + DPDMUX_ERROR_KSE) + #define DPDMUX_ALL_ERRORS (DPDMUX__ERROR_L4CE | \ DPDMUX__ERROR_L4CV | \ DPDMUX__ERROR_L3CE | \ -- 2.25.1