From: Ferruh Yigit Subject: Re: [PATCH 1/2] net/bonding: do not set promisc on non-existent primary port Date: Thu, 21 Feb 2019 14:38:50 +0000 Message-ID: <698c7da0-f2d5-76db-6227-ee30c5a654ef@intel.com> References: <20190110102235.1238-1-hyonkim@cisco.com> <20190110102235.1238-2-hyonkim@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, stable@dpdk.org To: Chas Williams <3chas3@gmail.com>, Hyong Youb Kim , Declan Doherty , Chas Williams Return-path: In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2/9/2019 1:16 PM, Chas Williams wrote: > > > On 1/10/19 5:22 AM, Hyong Youb Kim wrote: >> For active-backup, tlb, and alb mode, >> bond_ethdev_promiscuous_{enable,disable} tries to set promisc mode on >> the primary port, even when there are no slaves. It is harmless, as >> rte_eth_promiscuous_{enable,disable} does nothing if the port number >> is invalid. But, it does print a warning message. Here is an example >> from testpmd. >> >> testpmd> create bonded device 5 0 >> Created new bonded device net_bonding_testpmd_0 on (port 4). >> Invalid port_id=33 >> testpmd> set promisc 4 off >> Invalid port_id=33 >> >> 33 in this case is RTE_MAX_ETHPORTS + 1, the invalid primary port >> number used within the bonding driver. This warning message is >> harmless but can be confusing to the user. So do not try to set >> promisc on a primary port when we know it does not exist (i.e. no >> slaves). >> >> Fixes: 2efb58cbab6e ("bond: new link bonding library") >> Cc: stable@dpdk.org >> >> Signed-off-by: Hyong Youb Kim > > Acked-by: Chas Williams Applied to dpdk-next-net/master, thanks.