[dpdk-dev] [PATCH] net/i40e: fix segment num in reassemble process

2017-01-08 Thread Chenghu Yao
When freeing up last mbuf, start->nb_segs should be decremented by one. See also ixgbe process. Signed-off-by: Chenghu Yao --- drivers/net/i40e/i40e_rxtx_vec_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/i40e_rxtx_vec_common.h b/drivers/net/i

[dpdk-dev] [PATCH] net/fm10k/base: add a break statement

2016-12-20 Thread Chenghu Yao
In function fm10k_mbx_create_reply(), the last case branch has no break statement. Signed-off-by: Chenghu Yao --- drivers/net/fm10k/base/fm10k_mbx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fm10k/base/fm10k_mbx.c b/drivers/net/fm10k/base/fm10k_mbx.c index 2e70434

[dpdk-dev] [PATCH v2] net/ixgbe/base: clear redundant macro define

2016-12-20 Thread Chenghu Yao
In head file "ixgbe_mbx.h", macro define IXGBE_VF_API_NEGOTIATE and IXGBE_VF_GET_QUEUES appear two times with the same name, value, and notes. Version 2.0 VF requests can inherit the two macro defines in previous version 1.0 and 1.1. Otherwise, maybe cause confusion. Signed-off-by: C

[dpdk-dev] [PATCH] net/ixgbe/base: clear redundant macro define

2016-12-20 Thread Chenghu Yao
In head file "ixgbe_mbx.h", macro define IXGBE_VF_API_NEGOTIATE and IXGBE_VF_GET_QUEUES appears two times with the same name,value, and notes. Version 2.0 VF requests can inherit the two macro defines in previous version 1.0 and 1.1. Otherwise, may be cause confusion. Signed-off-by: C