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 CC53145B4C; Tue, 22 Oct 2024 21:16:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A09140E32; Tue, 22 Oct 2024 21:15:11 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id A598140DFD for ; Tue, 22 Oct 2024 21:13:13 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8AC871A11A0; Tue, 22 Oct 2024 21:13:13 +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 40DB21A1BD6; Tue, 22 Oct 2024 21:13:13 +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 A1D4C183DC02; Wed, 23 Oct 2024 03:13:12 +0800 (+08) From: vanshika.shukla@nxp.com To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena Subject: [v4 37/42] net/dpaa2: improve DPDMUX error behavior settings Date: Wed, 23 Oct 2024 00:42:50 +0530 Message-Id: <20241022191256.516818-38-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: Sachin Saxena compatible with MC v10.36 or later Signed-off-by: Sachin Saxena --- drivers/net/dpaa2/dpaa2_mux.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index f4b8d481af..13de7d5783 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 NXP + * Copyright 2018-2021,2023 NXP */ #include @@ -448,13 +448,12 @@ dpaa2_create_dpdmux_device(int vdev_fd __rte_unused, struct dpdmux_error_cfg mux_err_cfg; memset(&mux_err_cfg, 0, sizeof(mux_err_cfg)); + /* Note: Discarded flag(DPDMUX_ERROR_DISC) has effect only when + * ERROR_ACTION is set to DPNI_ERROR_ACTION_SEND_TO_ERROR_QUEUE. + */ + mux_err_cfg.errors = DPDMUX_ALL_ERRORS; mux_err_cfg.error_action = DPDMUX_ERROR_ACTION_CONTINUE; - if (attr.method != DPDMUX_METHOD_C_VLAN_MAC) - mux_err_cfg.errors = DPDMUX_ERROR_DISC; - else - mux_err_cfg.errors = DPDMUX_ALL_ERRORS; - ret = dpdmux_if_set_errors_behavior(&dpdmux_dev->dpdmux, CMD_PRI_LOW, dpdmux_dev->token, DPAA2_DPDMUX_DPMAC_IDX, -- 2.25.1