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 AC459A00C2 for ; Wed, 28 Sep 2022 07:25:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B8A1042B77; Wed, 28 Sep 2022 07:25:46 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60053.outbound.protection.outlook.com [40.107.6.53]) by mails.dpdk.org (Postfix) with ESMTP id 98D5942B70; Wed, 28 Sep 2022 07:25:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=duiwybNnl5b8Sn2XDwq5jvo2fgmUPAiZMxcE7Z5ImCFZPWDr8peRvXw+zDFj8GW2Ih3qmEJauP6iOz+ZPzaM0Qg5Xv7xLZ2eEtioGRajLFg+ZIO/Tb5GulR01+7eJrCYoH90om1BYDAPCFHg4OdZtOLq8ZihC/gCbowj8lAA+E3yVcsxmOcQ5Tickn6Pr1bfZGZT60hFsJTI4YpV6St1315Lvn+xupoVJh3tVcsY9OAZZ60ZKmsUy9MliDo0m1ESz6NWHykGjSiL9IOy2kBOJu6LygDqpyaQiaNRgiVbbTRrfyl9ZC+WXA+JB9qS3IjhqL42wf8DD1U4wEQ1+RaYzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ESUF2L0RR1TA3oIqpjadIKt2uFaV1MB87D8Sm68bj+U=; b=PQsSXh3NTra5UxsVvg/vPlLMCWYQEaGmoBBR88B9ZfZSxr7eoaCVJORxTYM1nGVuw9YtXWuocGtceHt9PbR/Jvv73YnfENmPlKDIwXP89PhVMrdVLC7gxvuHQ9tZz9D3yE4kO0XUreTTPlDOzNKg1gt3E1NCd3CsKihvOT7DWi5a7SHzuLWERalmsjy9pE7IhsW443E+bmfWRfVbyALPZfnrV6Bxr+8QNzh+QIk3A2UP4fYfx7Kek88t65Py7wHUdj5GcJxQRO5C+VjJONQ0Hkioxh54FTBL5u54XASj9pQF5eq4ejfkF+8kWrD64oIXk6UCzfQLEetXsSmP/HEYjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ESUF2L0RR1TA3oIqpjadIKt2uFaV1MB87D8Sm68bj+U=; b=rY2D6dXJx1s6XspE0AQOhTpNLBLnfButrMf17uFoGXG5oivBDwZnYZ8FE8gOpUYXHp3M4bnqDp5QWIBfxiSPsxhe3X8WZmsbvXMy0sR8BD/vGwMrMdAAwLUqkd8P/lhzYUEgIlaXQKejD6K8ZVHm6TCpNjgqAV3K5QnUguD1LOo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by PA4PR04MB7504.eurprd04.prod.outlook.com (2603:10a6:102:e6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Wed, 28 Sep 2022 05:25:43 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::14d0:4458:d6ec:b8b1]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::14d0:4458:d6ec:b8b1%7]) with mapi id 15.20.5676.017; Wed, 28 Sep 2022 05:25:43 +0000 From: Gagandeep Singh To: ferruh.yigit@amd.com, dev@dpdk.org Cc: Vanshika Shukla , stable@dpdk.org Subject: [PATCH 04/15] net/dpaa2: fix dpdmux configuration for error behaviour Date: Wed, 28 Sep 2022 10:55:05 +0530 Message-Id: <20220928052516.1279442-5-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928052516.1279442-1-g.singh@nxp.com> References: <20220928052516.1279442-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGBP274CA0015.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::27) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8198:EE_|PA4PR04MB7504:EE_ X-MS-Office365-Filtering-Correlation-Id: 4dd16bea-8207-442c-7191-08daa111e3c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wo6lkCtRu6X7bjuaUtZsFs9YPbLdKJJwYPWlA7rxEmduIYs17uRgGRSBdgLptrXoWhCAv9Tpw9E1wCv3HYL/ANIPWVvZUFmf0avShs/f/mAxy6DD0TQBz+POHRvEoQKMCx3y8hXIa79vNkO/1+wVWJjFza20iUddki5jfrx3J642Zq/4Kb5V+Z/zFQYIF6s+Wcxxc955xtPgRMifqqfmxltMAQmY2zMQ/gigD06VjJwLG/fodYppjcopxZyOhqM9H1H+LBGHSeyBBybZAe9TqmriJ8jvdXL8nUNDugHjxqbQ3X4pQDp6OTpnllxNxnEFhnlDHRVbKEOHaYJQqYmUHUOrEPESofR0lfnXe7XVWfIjD6RRx3Af4GL8RdsXp3AsZvjleWAC6WWmwuZVG81PQRrHbPxkqZDdgLFSnUA8WvTXeSgrFkVIu61gW5akgzuDR7B9b47262ATYjMl8U1EOsTKvUwwS02jFXUQC9QHrmXNQQBKX41GJxHmWxGWRW8kZGp+rFnPbKsC8BtXmiAIoA4+0r5DcOJacRI6/N+tGQ4Cd9ZzTRROA0hC85Ua3j724v6ojxGwNhGEA8MX446vfaR5JhZIASzr/jbbfGDKAuEzBrBYPVOtO0cC3vjBbGg6dlFJuWI04V1shcNpmuL7+enoG9RC2F+cl9STCMMhgtJmr8TzCuow+yzqDqrdF1JcsUV12RhuI3wRj/5a7sunLpFWy5SWP/z7DxKoOnusnNqVlK7I1fzlyNDVZxWnSIwosy3CySTyxauUzK6ssPbrvA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(366004)(376002)(396003)(136003)(39860400002)(451199015)(1076003)(186003)(2616005)(8676002)(83380400001)(38350700002)(8936002)(6506007)(38100700002)(26005)(86362001)(6512007)(6666004)(2906002)(5660300002)(52116002)(478600001)(66556008)(66476007)(66946007)(316002)(36756003)(41300700001)(4326008)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?x58prHgfaPeq0V3dEb/cLf2Ot5CsdCKH916yKxRFev1eNVVn5poyHvqC3EMA?= =?us-ascii?Q?rxvWYFL9Bz3MF/NMTnsQ3U5JXTAK6ZqiXOw/TigGYjIrJEsLc5WBVtOscImf?= =?us-ascii?Q?RW6DCAJ7nD+vfvuUpHE/Xk3YBzfvgHa660iPlSlk8eaSFLEiZ1S/w7w8ZT6J?= =?us-ascii?Q?EeSuJ4/aPoYXKf2XYqfT+fTFusp8qVk8y1ChPxD+xKGdeSjva9q9oMIwo+np?= =?us-ascii?Q?T+B28qLpcBEztn0hYVg6MBetEObzvQVB/s3QjyeeLe6aqyMCfR5erQV1DO/B?= =?us-ascii?Q?mptKXh22E1HbKBYsCoJ9LoM2rc5NSdF661JYlVglzOvh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zlgB3jdD5QgWi/LYLdcNBqyHIqt5zkvd5YxQLG?= =?us-ascii?Q?q8FRzIE/kYMXNUX4x4uLjedJ0cgAUCptC8OdwnaIF+bP3ev5MEwoTJrmAkJe?= =?us-ascii?Q?rT0VEPeKZqf3AU4oNc2W44FAgUufJJpINNUXxxSQ2qJkK0EiIAmNXCuITGPf?= =?us-ascii?Q?EvZcHWB8dq3ZNB1sDnXvNh7PZ8qGdq8HtOgpmvIjwRcy1OrvXfL6Maq+X6tl?= =?us-ascii?Q?DxRxA0k43GJTrX9MaVzcePslauxZFcKYUGDqJDzWEHPqXWHPJZyv3k24LqZB?= =?us-ascii?Q?0BjoAWFDt32vbhpNt4ZnZHgcF9zJiAoytnN37mDY+vYa8wqePRoupL34veIZ?= =?us-ascii?Q?ELEyT9WgB2kFhE4afF1/xpZTTMJgfY+2JpGEzwW3?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4dd16bea-8207-442c-7191-08daa111e3c7 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2022 05:25:43.8266 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yospu2VClv/kx8wYhEK/Qayc66Mbht8bJTK//Rc85ez6eWCyXNPHQyT8jOIrcyUA X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7504 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Vanshika Shukla Driver is giving the wrong interface ID while setting the error behaviour. This patch fixes the issue by passing the correct MAC interface index value to the API. Fixes: 3d43972b1b42 ("net/dpaa2: do not drop parse error packets by dpdmux") Cc: stable@dpdk.org Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/dpaa2_ethdev.h | 3 +++ drivers/net/dpaa2/dpaa2_mux.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.h b/drivers/net/dpaa2/dpaa2_ethdev.h index f69df95253..32ae762e4a 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.h +++ b/drivers/net/dpaa2/dpaa2_ethdev.h @@ -66,6 +66,9 @@ /* Tx confirmation enabled */ #define DPAA2_TX_CONF_ENABLE 0x06 +/* DPDMUX index for DPMAC */ +#define DPAA2_DPDMUX_DPMAC_IDX 0 + /* HW loopback the egress traffic to self ingress*/ #define DPAA2_TX_MAC_LOOPBACK_MODE 0x20 diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index 3289f388e1..7456f43f42 100644 --- a/drivers/net/dpaa2/dpaa2_mux.c +++ b/drivers/net/dpaa2/dpaa2_mux.c @@ -336,7 +336,7 @@ dpaa2_create_dpdmux_device(int vdev_fd __rte_unused, ret = dpdmux_if_set_errors_behavior(&dpdmux_dev->dpdmux, CMD_PRI_LOW, - dpdmux_dev->token, dpdmux_id, + dpdmux_dev->token, DPAA2_DPDMUX_DPMAC_IDX, &mux_err_cfg); if (ret) { DPAA2_PMD_ERR("dpdmux_if_set_errors_behavior %s err %d", -- 2.25.1