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 1AA93A0506; Tue, 29 Mar 2022 16:01:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9C7540691; Tue, 29 Mar 2022 16:01:36 +0200 (CEST) Received: from smtp.tom.com (smtprz15.163.net [106.3.154.248]) by mails.dpdk.org (Postfix) with ESMTP id 6DE6D40141 for ; Tue, 29 Mar 2022 16:01:34 +0200 (CEST) Received: from my-app02.tom.com (my-app02.tom.com [127.0.0.1]) by freemail02.tom.com (Postfix) with ESMTP id 00B57B00D35 for ; Tue, 29 Mar 2022 22:01:33 +0800 (CST) Received: from my-app02.tom.com (HELO smtp.tom.com) ([127.0.0.1]) by my-app02 (TOM SMTP Server) with SMTP ID 684931056 for ; Tue, 29 Mar 2022 22:01:32 +0800 (CST) Received: from antispam1.tom.com (unknown [172.25.16.55]) by freemail02.tom.com (Postfix) with ESMTP id E1249B00CC2 for ; Tue, 29 Mar 2022 22:01:31 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tom.com; s=201807; t=1648562492; bh=E+j6wMSOmyOk5Z/W1rhtMoFzfRFmayeVP6ZkJgd9YiQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=48uixmyzA8X72yY/31o/cmPoPPKQBxoSn3X/sytfAVVyFGmlF4IVKpPqPP6F9N8Wt 4S3SoPzCFZlCSBZew3Zs8k2vhg7zNplzQBlQ3+4BPgv7Xzaudc/e1FgkHiibdWIKm0 dJ0xPRDzKaajd9jN4Vcw36R0pu5/MzG5YyR1hAlU= Received: from antispam1.tom.com (antispam1.tom.com [127.0.0.1]) by antispam1.tom.com (Postfix) with ESMTP id 7D399D415D1 for ; Tue, 29 Mar 2022 22:01:31 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at antispam1.tom.com Received: from antispam1.tom.com ([127.0.0.1]) by antispam1.tom.com (antispam1.tom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I0bXA9OdDn3j for ; Tue, 29 Mar 2022 22:01:30 +0800 (CST) Received: from localhost.localdomain (unknown [120.229.35.87]) by antispam1.tom.com (Postfix) with ESMTPA id CB242D415CD; Tue, 29 Mar 2022 22:01:27 +0800 (CST) From: Tianli Lai To: dev@dpdk.org Cc: hemant.agrawal@nxp.com, nipun.gupta@nxp.com, Sachin Saxena , Shreyansh Jain Subject: [PATCH v2] net/dpaa2: fix dpdmux default interface Date: Wed, 30 Mar 2022 06:01:07 +0800 Message-Id: <20220329220107.2523-1-laitianli@tom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220329202610.10786-1-laitianli@tom.com> References: <20220329202610.10786-1-laitianli@tom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 if dpdmux objects created by restool tools with the argument "--default-if=", this function would change it to 1 Fixes: 1def64c2d79e ("net/dpaa2: add dpdmux initialization and configuration") Cc: nipun.gupta@nxp.com Signed-off-by: Tianli Lai --- drivers/net/dpaa2/dpaa2_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index bd4596b891..e8689a7832 100644 --- a/drivers/net/dpaa2/dpaa2_mux.c +++ b/drivers/net/dpaa2/dpaa2_mux.c @@ -296,7 +296,7 @@ dpaa2_create_dpdmux_device(int vdev_fd __rte_unused, } ret = dpdmux_if_set_default(&dpdmux_dev->dpdmux, CMD_PRI_LOW, - dpdmux_dev->token, 1); + dpdmux_dev->token, attr.default_if); if (ret) { DPAA2_PMD_ERR("setting default interface failed in %s", __func__); -- 2.27.0