[dpdk-dev] [PATCH] net/bonding: fix double fetch for active_slave_count

2018-11-28 Thread Haifeng Lin
1. when memcpy slaves the internals->active_slave_count 1 2. return internals->active_slave_count is 2 3. the slaves[1] would be a random invalid value Signed-off-by: Haifeng Lin --- drivers/net/bonding/rte_eth_bond_api.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH] net/bonding: fix double fetch for active_slave_count

2018-11-28 Thread Haifeng Lin
1. when memcpy slaves the internals->active_slave_count 1 2. return internals->active_slave_count is 2 3. the slaves[1] would be a random invalid value --- drivers/net/bonding/rte_eth_bond_api.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/bonding/rte_eth

[dpdk-dev] [PATCH v2] vhost: fix add_guest_pages bug

2016-12-01 Thread Haifeng Lin
When reg_size < page_size the function read in rte_mem_virt2phy would not return, becausue host_user_addr is invalid. Signed-off-by: Haifeng Lin --- v2: fix TYPO_SPELLING warning --- lib/librte_vhost/vhost_user.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/

[dpdk-dev] [PATCH] vhost: fix add_guest_pages bug

2016-12-01 Thread Haifeng Lin
When reg_size < page_size the function read in rte_mem_virt2phy would not return, becasue gpa is invalid. Signed-off-by: Haifeng Lin --- lib/librte_vhost/vhost_user.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vh

[dpdk-dev] [PATCH] net/bonding: improve non-ip packets RSS

2016-11-18 Thread Haifeng Lin
: slave_qid = (bond_qid + slave_id) % queue_num Signed-off-by: Haifeng Lin --- drivers/net/bonding/rte_eth_bond_pmd.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 09ce7bf..8ad843a