From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B6613316B for ; Thu, 13 Apr 2017 15:55:02 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Apr 2017 06:55:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,194,1488873600"; d="scan'208";a="88694281" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga006.fm.intel.com with ESMTP; 13 Apr 2017 06:54:58 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.12]) by IRSMSX154.ger.corp.intel.com ([169.254.12.233]) with mapi id 14.03.0319.002; Thu, 13 Apr 2017 14:54:57 +0100 From: "Ananyev, Konstantin" To: "Dai, Wei" , "thomas.monjalon@6wind.com" , "harish.patil@cavium.com" , "rasesh.mody@cavium.com" , "stephen.hurd@broadcom.com" , "ajit.khaparde@broadcom.com" , "Lu, Wenzhuo" , "Zhang, Helin" , "Wu, Jingjing" , "Chen, Jing D" , "adrien.mazarguil@6wind.com" , "nelio.laranjeiro@6wind.com" , "Richardson, Bruce" , "yuanhan.liu@linux.intel.com" , "maxime.coquelin@redhat.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH v4 0/3] MAC address fail to be added shouldn't be stored Thread-Index: AQHStDAguLoaqNZQbUKVf/eXrMGJhqHDUn8Q Date: Thu, 13 Apr 2017 13:54:55 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772583FAE8E02@IRSMSX109.ger.corp.intel.com> References: <1491987746-10155-1-git-send-email-wei.dai@intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 0/3] MAC address fail to be added shouldn't be stored 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: , X-List-Received-Date: Thu, 13 Apr 2017 13:55:03 -0000 >=20 > Current ethdev always stores MAC address even it fails to be added. > Other function may regard the failed MAC address valid and lead to > some errors. So There is a need to check if the addr is added > successfully or not and discard it if it fails. >=20 > In 3rd patch, add a command "add_more_mac_addr port_id base_mac_addr coun= t" > to add more than one MAC address one time. > This command can simplify the test for the first patch. > Normally a MAC address may fails to be added only after many MAC > addresses have been added. > Without this command, a tester may only trigger failed MAC address > by running many times of testpmd command 'mac_addr add' . >=20 > --- > Changes > v4: > 1. rebase master branch > 2. follow code style >=20 > v3: > 1. Change return value for some specific NIC according to feedbacks > from the community; > 2. Add ABI change in release note; > 3. Add more detailed commit message. >=20 > v2: > fix warnings and erros from check-git-log.sh and checkpatch.pl >=20 > Wei Dai (3): > ethdev: fix adding invalid MAC addr > doc: change type of return value of adding MAC addr > app/testpmd: add a command to add many MAC addrs >=20 > app/test-pmd/cmdline.c | 55 ++++++++++++++++++++++++++++= ++++++ > doc/guides/rel_notes/release_17_05.rst | 7 +++++ > drivers/net/bnx2x/bnx2x_ethdev.c | 7 +++-- > drivers/net/bnxt/bnxt_ethdev.c | 12 ++++---- > drivers/net/e1000/base/e1000_api.c | 2 +- > drivers/net/e1000/em_ethdev.c | 6 ++-- > drivers/net/e1000/igb_ethdev.c | 5 ++-- > drivers/net/enic/enic.h | 2 +- > drivers/net/enic/enic_ethdev.c | 4 +-- > drivers/net/enic/enic_main.c | 6 ++-- > drivers/net/fm10k/fm10k_ethdev.c | 3 +- > drivers/net/i40e/i40e_ethdev.c | 11 +++---- > drivers/net/i40e/i40e_ethdev_vf.c | 8 ++--- > drivers/net/ixgbe/ixgbe_ethdev.c | 27 +++++++++++------ > drivers/net/mlx4/mlx4.c | 18 ++++++----- > drivers/net/mlx5/mlx5.h | 4 +-- > drivers/net/mlx5/mlx5_mac.c | 16 ++++++---- > drivers/net/qede/qede_ethdev.c | 6 ++-- > drivers/net/ring/rte_eth_ring.c | 3 +- > drivers/net/virtio/virtio_ethdev.c | 13 ++++---- > lib/librte_ether/rte_ethdev.c | 15 ++++++---- > lib/librte_ether/rte_ethdev.h | 2 +- > 22 files changed, 162 insertions(+), 70 deletions(-) >=20 > -- Acked-by: Konstantin Ananyev > 2.7.4