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 724F7A0471 for ; Fri, 19 Jul 2019 10:55:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0E688DE3; Fri, 19 Jul 2019 10:55:16 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3AF4FDE3 for ; Fri, 19 Jul 2019 10:55:13 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2019 01:55:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,281,1559545200"; d="scan'208,223";a="170844730" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga003.jf.intel.com with ESMTP; 19 Jul 2019 01:55:11 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX153.ger.corp.intel.com (163.33.192.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 19 Jul 2019 09:55:10 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.229]) by irsmsx111.ger.corp.intel.com ([169.254.2.65]) with mapi id 14.03.0439.000; Fri, 19 Jul 2019 09:55:10 +0100 From: "Rybalchenko, Kirill" To: Yongseok Koh CC: "stable@dpdk.org" Thread-Topic: [dpdk-stable][PATCH 17.11] test/bonding: assign non-zero MAC to null devices Thread-Index: AdU+D6LWgOeienecQ42KyHt4QZzEaQ== Date: Fri, 19 Jul 2019 08:55:09 +0000 Message-ID: <696B43C21188DF4F9C9091AAE4789B8260FFEB2E@IRSMSX108.ger.corp.intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWY2ZWUwZjItNmVkZi00YWRiLWE1OTQtMTg3Yjk1MzJkNjAzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiN1YxN0JaYmQ4dnhvSENGQ25qVzFoK1UzdTMyZGFWMkN6THIyZE9jMm9mRW92N0lnemN3T002WUhoVlJCVStRcyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [163.33.239.182] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-stable] [PATCH 17.11] test/bonding: assign non-zero MAC to null devices X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" From: Radu Nicolau [backported from upstream commit e8df563bac263e55b7dd9d45a00417aa92ef66cb] Prevent failure in rte_eth_dev_default_mac_addr_set() that results in bonding add slave failure. Fixes: aa7791ba8de0 ("net/bonding: fix setting slave MAC addresses") Signed-off-by: Radu Nicolau Reviewed-by: Ferruh Yigit --- test/test/test_link_bonding_rssconf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test/test_link_bonding_rssconf.c b/test/test/test_link_bo= nding_rssconf.c index 54cbf12..a637453 100644 --- a/test/test/test_link_bonding_rssconf.c +++ b/test/test/test_link_bonding_rssconf.c @@ -534,6 +534,7 @@ test_setup(void) int port_id; char name[256]; struct slave_conf *port; + struct ether_addr mac_addr =3D {0}; =20 if (test_params.mbuf_pool =3D=3D NULL) { =20 @@ -565,6 +566,10 @@ test_setup(void) TEST_ASSERT_SUCCESS(retval, "Failed to configure virtual ethdev %s\n", name); =20 + /* assign a non-zero MAC */ + mac_addr.addr_bytes[5] =3D 0x10 + port->port_id; + rte_eth_dev_default_mac_addr_set(port->port_id, &mac_addr); + rte_eth_dev_info_get(port->port_id, &port->dev_info); } =20 --=20 2.7.4