numam-dpdk/drivers
Hyong Youb Kim 90d2eb059e net/bonding: avoid warning for invalid port
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: 2efb58cbab ("bond: new link bonding library")
Cc: stable@dpdk.org

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Acked-by: Chas Williams <chas3@att.com>
2019-02-21 14:32:44 +01:00
..
baseband bb/turbo_sw: update for FlexRAN 18.09 2018-12-19 11:19:10 +01:00
bus vfio: fix error message 2019-01-23 22:49:11 +01:00
common compress/qat: fix dequeue error counter 2018-12-19 11:19:10 +01:00
compress compress/isal: fix build with old library version 2019-01-19 00:07:52 +01:00
crypto crypto/qat: fix digest in wireless auth case 2019-01-27 23:48:34 +01:00
event fix global variable issues 2018-10-29 02:34:27 +01:00
mempool mempool/dpaa2: support saving context of buffer pool 2019-01-14 17:44:29 +01:00
net net/bonding: avoid warning for invalid port 2019-02-21 14:32:44 +01:00
raw raw/ifpga: fix memory leak 2019-01-19 00:07:52 +01:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build build: change default driver installation directory 2018-10-27 23:22:12 +02:00