numam-dpdk/drivers/net/bonding
RongQing Li 97602faa9e net/bonding: fix possible unbalanced packet receiving
Current Rx round robin policy for the slaves has two issue:

1. active_slave in bond_dev_private is shared by multiple PMDS which
   maybe cause some slave Rx hungry, for example, there is two PMD and
   two slave port, both PMDs start to receive, and see that active_slave
   is 0, and receive from slave 0, after complete, they increase
   active_slave by one, totally active_slave are increased by two, next
   time, they will start to receive from slave 0 again, at last, slave 1
   maybe drop packets during to not be polled by PMD

2. active_slave is shared and written by multiple PMD in RX path for
   every time RX, this is a kind of cache false share, low performance.

So move active_slave from bond_dev_private to bond_rx_queue make it as
per queue variable

Fixes: ae2a04864a ("net/bonding: reduce slave starvation on Rx poll")
Cc: stable@dpdk.org

Signed-off-by: RongQing Li <lirongqing@baidu.com>
Signed-off-by: Dongsheng Rong <rongdongsheng@baidu.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
2020-10-16 19:18:47 +02:00
..
eth_bond_8023ad_private.h net/bonding: change state machine to defaulted 2020-07-21 13:54:54 +02:00
eth_bond_private.h net/bonding: fix possible unbalanced packet receiving 2020-10-16 19:18:47 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_eth_bond_8023ad.c net/bonding: change state machine to defaulted 2020-07-21 13:54:54 +02:00
rte_eth_bond_8023ad.h replace packed attributes 2020-04-16 18:16:46 +02:00
rte_eth_bond_alb.c rename private header files 2019-10-27 22:03:06 +01:00
rte_eth_bond_alb.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
rte_eth_bond_api.c net/bonding: fix possible unbalanced packet receiving 2020-10-16 19:18:47 +02:00
rte_eth_bond_args.c rename private header files 2019-10-27 22:03:06 +01:00
rte_eth_bond_flow.c rename private header files 2019-10-27 22:03:06 +01:00
rte_eth_bond_pmd.c net/bonding: fix possible unbalanced packet receiving 2020-10-16 19:18:47 +02:00
rte_eth_bond.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
rte_pmd_bond_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00