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 096DCA0508; Tue, 29 Mar 2022 14:26:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 942C141151; Tue, 29 Mar 2022 14:26:31 +0200 (CEST) Received: from smtp.tom.com (smtprz14.163.net [106.3.154.247]) by mails.dpdk.org (Postfix) with ESMTP id 5BBD740691 for ; Tue, 29 Mar 2022 14:26:30 +0200 (CEST) Received: from my-app01.tom.com (my-app01.tom.com [127.0.0.1]) by freemail01.tom.com (Postfix) with ESMTP id CA3041EA006D for ; Tue, 29 Mar 2022 20:26:28 +0800 (CST) Received: from my-app01.tom.com (HELO smtp.tom.com) ([127.0.0.1]) by my-app01 (TOM SMTP Server) with SMTP ID -502567202 for ; Tue, 29 Mar 2022 20:26:28 +0800 (CST) Received: from antispam3.tom.com (unknown [172.25.16.54]) by freemail01.tom.com (Postfix) with ESMTP id BF28D1EA0065 for ; Tue, 29 Mar 2022 20:26:28 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tom.com; s=201807; t=1648556788; bh=Nkp/oT+58qDjiag/cColDMA/teiKPB2Deg9nPPUMQu0=; h=From:To:Cc:Subject:Date:From; b=MC+xJx1PnsBzsgkPimNHQwciQe92nz04lAVyrU0FQfSyKdJzIaqNjuzIS0cBnxWz6 QRALbh37huSke+uEm2jEX8eb8RuqpZQIqpTTiH7y8aBLNd4Lt1Z57oXx8kGfNEygS0 7Au1dn9z9TrDZfDu2uCGDjKmcTilAX1CCgglt7zc= Received: from antispam3.tom.com (antispam3.tom.com [127.0.0.1]) by antispam3.tom.com (Postfix) with ESMTP id 6D1EC9C1CAA for ; Tue, 29 Mar 2022 20:26:28 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at antispam3.tom.com Received: from antispam3.tom.com ([127.0.0.1]) by antispam3.tom.com (antispam3.tom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IYJJIVyJvbz7 for ; Tue, 29 Mar 2022 20:26:27 +0800 (CST) Received: from localhost.localdomain (unknown [113.81.208.191]) by antispam3.tom.com (Postfix) with ESMTPA id 77DE49C107D; Tue, 29 Mar 2022 20:26:27 +0800 (CST) From: Tianli Lai To: dev@dpdk.org Cc: Hemant Agrawal , Sachin Saxena Subject: [PATCH] net/dpaa2: fix dpdmux default interface Date: Wed, 30 Mar 2022 04:26:10 +0800 Message-Id: <20220329202610.10786-1-laitianli@tom.com> X-Mailer: git-send-email 2.27.0 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 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