[dpdk-dev] [PATCH v3] Add in_flight_bitmask so as to use full 32 bits of tag.

2014-11-10 Thread Qinglai Xiao
now removed. Compile time check is added to ensure the RTE_DISTRIB_MAX_WORKERS is less than or equal to size of double-word. Signed-off-by: Qinglai Xiao --- lib/librte_distributor/rte_distributor.c | 64 ++ lib/librte_distributor/rte_distributor.h |4 ++ 2 files

[dpdk-dev] [PATCH v2 2/2] Add in_flight_bitmask so as to use full 32 bits of tag.

2014-11-10 Thread Qinglai Xiao
the algorithm of finding matched tag must be revised. Signed-off-by: Qinglai Xiao --- lib/librte_distributor/rte_distributor.c | 45 ++ lib/librte_distributor/rte_distributor.h |4 ++ 2 files changed, 37 insertions(+), 12 deletions(-) diff --git a/lib

[dpdk-dev] [PATCH v2 1/2] Add new union field usr in mbuf->hash.

2014-11-10 Thread Qinglai Xiao
This field is added for librte_distributor. User of librte_distributor is advocated to set value of mbuf->hash.usr before calling rte_distributor_process. The value of usr is the tag which stands as identifier of flow. Signed-off-by: Qinglai Xiao --- app/test/test_distributo

[dpdk-dev] [PATCH v2 0/2] Add in_flight_bitmask so as to use full 32 bits of tag

2014-11-10 Thread Qinglai Xiao
for each mbuf before calling the distributor process rte_distributor_process. Qinglai Xiao (2): Add new union field usr in mbuf->hash. Add in_flight_bitmask so as to use full 32 bits of tag. app/test/test_distributor.c | 18 ++-- app/test/test_distributor_per

[dpdk-dev] [PATCH] Add in_flight_bitmask so as to use full 32 bits of tag.

2014-11-10 Thread Qinglai Xiao
tly librte_distributor supports up to 64 worker threads. If more workers are needed, the size of in_flight_bitmask and the algorithm of finding matched tag must be revised. Signed-off-by: Qinglai Xiao --- app/test/test_distributor.c | 18 ++-- app/test/test_distributor_per

[dpdk-dev] 答复: [PATCH] Add user defined tag calculation callback tolibrte_distributor.

2014-11-06 Thread Qinglai Xiao
Hi Bruce, There is a subtle case in which tag values are 2 and 3, respectively. Then these two tags cannot be distinguished. There should be a better way so as to handle this situation. thx & rgds -qinglai -- ???: "Thomas Monjalon" : ?2014/?11/?6 12:36 ???: "Bruce Richardson"

[dpdk-dev] [PATCH] Add user defined tag calculation callback to librte_distributor.

2014-11-05 Thread Qinglai Xiao
User defined tag calculation has access to mbuf. Default tag is RSS hash result. Signed-off-by: Qinglai Xiao --- app/test/test_distributor.c |6 +++--- app/test/test_distributor_perf.c |2 +- lib/librte_distributor/rte_distributor.c | 12 ++-- lib

[dpdk-dev] [PATCH] ixgbe 82599: Query assignment of queues to Virtual Function

2013-10-21 Thread Qinglai Xiao
routine for IXGBE_VF_GET_QUEUES must be fixed, otherwise PF always return 1 as Tx/Rx queue number. [1] See section 7.2.1.2.1, 7.1.2.2 and 7.10.2.7.2 of Intel 82599 10 Gbe Controller Datasheet. Signed-off-by: Qinglai Xiao --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 19 +++ 1

[dpdk-dev] [PATCH] ixgbe 82599: Query assignment of queues to Virtual Function.

2013-10-21 Thread Qinglai Xiao
routine for IXGBE_VF_GET_QUEUES must be fixed, otherwise PF always return 1 as Tx/Rx queue number. [1] See section 7.2.1.2.1, 7.1.2.2 and 7.10.2.7.2 of Intel 82599 10 Gbe Controller Datasheet. Signed-off-by: Qinglai Xiao --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 32

[dpdk-dev] [PATCH] ixgbe: TCP/UDP segment offload support on 82599.

2013-10-04 Thread Qinglai Xiao
Add support for TCP/UDP segment offload on 82599. User can turn on TSO by setting MSS in the first frame. Meantime, the L2 and L3 len, together with offload flags must be set in the first frame accordingly. Otherwise the driver will cease the sending. --- lib/librte_mbuf/rte_mbuf.h|6 +

[dpdk-dev] [PATCH] Request for comments on ixgbe TSO support

2013-10-04 Thread Qinglai Xiao
; uint32_t tx_mss; } misc; It is gonna be a major change coz it affects the core data structure. Any comments will be appreciated. Qinglai Xiao (1): ixgbe: TCP/UDP segment offload support on 82599. lib/librte_mbuf/rte_mbuf.h|6 +- lib/librte_pmd_ixgbe

[dpdk-dev] [PATCH] Add support for Tx->Rx loopback mode for 82599.

2013-09-26 Thread Qinglai Xiao
_ethdev.h for valid values of 82599 loopback mode. Signed-off-by: Qinglai Xiao --- lib/librte_ether/rte_ethdev.h |5 + lib/librte_pmd_ixgbe/ixgbe_ethdev.c |7 ++ lib/librte_pmd_ixgbe/ixgbe_ethdev.h |5 + lib/librte_pmd_ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH] Add support for 82599 Tx->Rx loopback operation.

2013-09-23 Thread Qinglai Xiao
Signed-off-by: Qinglai Xiao --- lib/librte_ether/rte_ethdev.h|1 + lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c | 122 +- lib/librte_pmd_ixgbe/ixgbe/ixgbe_type.h |7 ++ lib/librte_pmd_ixgbe/ixgbe_ethdev.c |8 ++ lib/librte_pmd_ixgbe