From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5B7B7A04B4; Tue, 25 Aug 2020 05:44:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCF901BEBA; Tue, 25 Aug 2020 05:44:42 +0200 (CEST) Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.217.80.70]) by dpdk.org (Postfix) with ESMTP id 612691B94F for ; Tue, 25 Aug 2020 05:44:41 +0200 (CEST) Received: from mse-fl1.zte.com.cn (unknown [10.30.14.238]) by Forcepoint Email with ESMTPS id 40FC2BEDE5D5911FB4CE; Tue, 25 Aug 2020 11:44:40 +0800 (CST) Received: from notes_smtp.zte.com.cn (notes_smtp.zte.com.cn [10.30.1.239]) by mse-fl1.zte.com.cn with ESMTP id 07P3iRC2081698; Tue, 25 Aug 2020 11:44:27 +0800 (GMT-8) (envelope-from han.li1@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.43.166.165]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2020082511443850-4732830 ; Tue, 25 Aug 2020 11:44:38 +0800 From: Li Han To: jingjing.wu@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, Li Han Date: Tue, 25 Aug 2020 11:00:44 +0800 Message-Id: <1598324444-24734-1-git-send-email-han.li1@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2020-08-25 11:44:38, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2020-08-25 11:44:29, Serialize complete at 2020-08-25 11:44:29 X-MAIL: mse-fl1.zte.com.cn 07P3iRC2081698 Subject: [dpdk-dev] [PATCH] net/iavf: fix default mac set fail issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" rte_is_valid_assigned_ether_addr retrun true if the given ethernet address is valid. Signed-off-by: Li Han --- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index c3aa4cd..18ce809 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -973,7 +973,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev *dev, return 0; /* If the MAC address is configured by host, skip the setting */ - if (rte_is_valid_assigned_ether_addr(perm_addr)) + if (!rte_is_valid_assigned_ether_addr(perm_addr)) return -EPERM; ret = iavf_add_del_eth_addr(adapter, old_addr, false); -- 1.8.3.1