[dpdk-dev] [PATCH] i40e: fix the issue of cannot using more than 1 poor for VMDq

2015-11-11 Thread Helin Zhang
It fixes the issue of cannot using more than 1 poor for VMDq, according to the queues left. Fixes: 705b57f82054 ("i40e: enlarge the number of supported queues") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 36 ++-- 1 file c

[dpdk-dev] [PATCH] doc: update release notes

2015-11-12 Thread Helin Zhang
Updated release notes about adding X722 support. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_2_2.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5636aad..5811c2f 100644 --- a/doc

[dpdk-dev] [PATCH] i40e: fix the issue of trying more VSIs for VMDq than available

2015-11-12 Thread Helin Zhang
It fixes the issue of trying to allocate more VSIs for VMDq than hardware remaining. It adds a check of the hardware remaining before allocating VSIs for VMDq. Fixes: c80707a0fd9c ("i40e: fix VMDq pool limit") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 7 +

[dpdk-dev] [PATCH] i40e: skip any phy config as a workaround

2015-11-17 Thread Helin Zhang
As firmware does not support any link control from software driver side, any phy config should be ignored as a workaround. Otherwise the link might not be up again after binding back to kernel driver. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 61

[dpdk-dev] [PATCH] i40e: fix issue of reconfigure hash enable flags

2015-11-23 Thread Helin Zhang
It fixes the issue of not re-configuring hash enable flags (HENA) if there is no key. Fixes: d0a349409bd7 ("i40e: support AQ based RSS config") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/d

[dpdk-dev] [PATCH v2] i40e: fix issue of reconfigure hash enable flags

2015-11-23 Thread Helin Zhang
It fixes the issue of not re-configuring hash enable flags (HENA) if there is no key. Fixes: d0a349409bd7 ("i40e: support AQ based RSS config") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) v2 change

[dpdk-dev] [PATCH] i40evf: fix the issue of configuring rss key enable flags

2015-11-27 Thread Helin Zhang
It fixes the issue of not configuring rss key enable flags when there is no rss key available. Fixes: 647d1eaf758b ("i40evf: support AQ based RSS config") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 15 +++ 1 file changed, 11 insertions(+), 4

[dpdk-dev] [PATCH v10 00/19] unified packet type

2015-07-10 Thread Helin Zhang
. * Reworked newly added cxgbe driver and tep_termination example application to support unified packet type, which is disabled by default. v10 changes: * Fixed a compile error in tep_termination, when RTE_NEXT_ABI is enabled. Helin Zhang (19): mbuf: redefine packet_type in rte_mbuf mbuf: add defi

[dpdk-dev] [PATCH v10 02/19] mbuf: add definitions of unified packet types

2015-07-10 Thread Helin Zhang
type, inner L2 type, inner L3 type and inner L4 type fields, and can be stored in 'struct rte_mbuf' of 32 bits field 'packet_type'. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang

[dpdk-dev] [PATCH v10 03/19] e1000: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/e1000/

[dpdk-dev] [PATCH v10 01/19] mbuf: redefine packet_type in rte_mbuf

2015-07-10 Thread Helin Zhang
types (UDP, TCP and SCTP) are supported in vectorized ixgbe PMD. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Note that around 2% performance drop (64B) was observed of doing 4 ports (1 port per 82599 card) IO forwarding on t

[dpdk-dev] [PATCH v10 04/19] ixgbe: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
d of doing 4 ports (1 port per 82599 card) IO forwarding on the same SNB core. Signed-off-by: Helin Zhang --- drivers/net/ixgbe/ixgbe_rxtx.c | 163 + 1 file changed, 163 insertions(+) v2 changes: * Used redefined packet types and enlarged packet_type fie

[dpdk-dev] [PATCH v10 05/19] i40e: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/i40e/i

[dpdk-dev] [PATCH v10 09/19] cxgbe: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/cxgbe

[dpdk-dev] [PATCH v10 06/19] enic: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/enic/e

[dpdk-dev] [PATCH v10 11/19] app/testpmd: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang Signed-off-by: Jijiang Liu

[dpdk-dev] [PATCH v10 10/19] app/test-pipeline: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- app/tes

[dpdk-dev] [PATCH v10 12/19] app/test: Remove useless code

2015-07-10 Thread Helin Zhang
Severl useless code lines are added accidently, which blocks packet type unification. They should be deleted at all. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- app/test

[dpdk-dev] [PATCH v10 08/19] fm10k: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/fm10k/fm

[dpdk-dev] [PATCH v10 14/19] examples/ip_reassembly: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/ip_reassem

[dpdk-dev] [PATCH v10 15/19] examples/l3fwd-acl: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd-acl/m

[dpdk-dev] [PATCH v10 13/19] examples/ip_fragmentation: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/ip_fragmentat

[dpdk-dev] [PATCH v10 18/19] examples/tep_termination: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/tep_terminati

[dpdk-dev] [PATCH v10 16/19] examples/l3fwd-power: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd-power/

[dpdk-dev] [PATCH v10 17/19] examples/l3fwd: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd/ma

[dpdk-dev] [PATCH v10 19/19] mbuf: remove old packet type bit masks

2015-07-10 Thread Helin Zhang
As unified packet types are used instead, those old bit masks and the relevant macros for packet type indication need to be removed. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- lib

[dpdk-dev] [PATCH v10 07/19] vmxnet3: replace bit mask based packet type with unified packet type

2015-07-10 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/n

[dpdk-dev] [PATCH] eal: fix build

2015-07-29 Thread Helin Zhang
It fixes the build error of implicit declaration of function. Signed-off-by: Helin Zhang --- lib/librte_eal/common/include/rte_pci.h | 11 +++ lib/librte_eal/linuxapp/eal/eal_pci.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include

[dpdk-dev] [PATCH] i40e: fix the issue of wrongly reporting descriptor done

2015-07-30 Thread Helin Zhang
or done wrongly. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_rxtx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 891a221..a267b4d 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i

[dpdk-dev] [PATCH v6 00/18] unified packet type

2015-06-01 Thread Helin Zhang
v6 changes: * Disabled the code changes for unified packet type by default, to avoid breaking ABI compatibility. Helin Zhang (18): mbuf: redefine packet_type in rte_mbuf ixgbe: support unified packet type in vectorized PMD mbuf: add definitions of unified packet types e1000: replace bit mask ba

[dpdk-dev] [PATCH v6 01/18] mbuf: redefine packet_type in rte_mbuf

2015-06-01 Thread Helin Zhang
or KNI should be right mapped to 'struct rte_mbuf', it should be modified accordingly. In addition, Vector PMD of ixgbe is disabled by default, as 'struct rte_mbuf' changed. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is dis

[dpdk-dev] [PATCH v6 02/18] ixgbe: support unified packet type in vectorized PMD

2015-06-01 Thread Helin Zhang
that around 2% performance drop (64B) was observed of doing 4 ports (1 port per 82599 card) IO forwarding on the same SNB core. Signed-off-by: Cunming Liang Signed-off-by: Helin Zhang --- config/common_linuxapp | 2 +- drivers/net/ixgbe/ixgbe_rxtx_vec.c | 75

[dpdk-dev] [PATCH v6 03/18] mbuf: add definitions of unified packet types

2015-06-01 Thread Helin Zhang
type, inner L2 type, inner L3 type and inner L4 type fields, and can be stored in 'struct rte_mbuf' of 32 bits field 'packet_type'. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: H

[dpdk-dev] [PATCH v6 05/18] ixgbe: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
s observed of doing 4 ports (1 port per 82599 card) IO forwarding on the same SNB core. Signed-off-by: Helin Zhang --- drivers/net/ixgbe/ixgbe_rxtx.c | 163 + 1 file changed, 163 insertions(+) v2 changes: * Used redefined packet types and enlarged packet_typ

[dpdk-dev] [PATCH v6 04/18] e1000: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- drivers

[dpdk-dev] [PATCH v6 07/18] enic: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- driver

[dpdk-dev] [PATCH v6 08/18] vmxnet3: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/n

[dpdk-dev] [PATCH v6 10/18] app/test-pipeline: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- app/tes

[dpdk-dev] [PATCH v6 06/18] i40e: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- driver

[dpdk-dev] [PATCH v6 11/18] app/testpmd: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang Signed-off-by: J

[dpdk-dev] [PATCH v6 09/18] fm10k: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- drivers

[dpdk-dev] [PATCH v6 12/18] app/test: Remove useless code

2015-06-01 Thread Helin Zhang
Severl useless code lines are added accidently, which blocks packet type unification. They should be deleted at all. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- app/test

[dpdk-dev] [PATCH v6 14/18] examples/ip_reassembly: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- examples/ip_

[dpdk-dev] [PATCH v6 15/18] examples/l3fwd-acl: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- examples

[dpdk-dev] [PATCH v6 16/18] examples/l3fwd-power: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l

[dpdk-dev] [PATCH v6 18/18] mbuf: remove old packet type bit masks

2015-06-01 Thread Helin Zhang
As unified packet types are used instead, those old bit masks and the relevant macros for packet type indication need to be removed. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- lib

[dpdk-dev] [PATCH v6 13/18] examples/ip_fragmentation: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang ---

[dpdk-dev] [PATCH v6 17/18] examples/l3fwd: replace bit mask based packet type with unified packet type

2015-06-01 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_UNIFIED_PKT_TYPE, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3

[dpdk-dev] [PATCH v2 0/6] support i40e QinQ stripping and insertion

2015-06-02 Thread Helin Zhang
_multicast. Helin Zhang (6): ixgbe: remove a discarded source line mbuf: use the reserved 16 bits for double vlan i40e: support double vlan stripping and insertion i40evf: add supported offload capability flags app/testpmd: add test cases for qinq stripping and insertion examples/ipv4

[dpdk-dev] [PATCH v2 1/6] ixgbe: remove a discarded source line

2015-06-02 Thread Helin Zhang
Little endian to CPU order conversion had been added for reading vlan tag from RX descriptor, while its original source line was forgotten to delete. That's a discarded source line and should be deleted. Fixes: 23fcffe8ffac ("ixgbe: fix id and hash with flow director") Signed-off-

[dpdk-dev] [PATCH v2 2/6] mbuf: use the reserved 16 bits for double vlan

2015-06-02 Thread Helin Zhang
Use the reserved 16 bits in rte_mbuf structure for the outer vlan, also add QinQ offloading flags for both RX and TX sides. Signed-off-by: Helin Zhang --- lib/librte_mbuf/rte_mbuf.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) v2 changes: * Fixed a typo. diff --git a/lib

[dpdk-dev] [PATCH v2 3/6] i40e: support double vlan stripping and insertion

2015-06-02 Thread Helin Zhang
in mbufs, to trigger the hardware insertion of double vlan tags for each packets sent out. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c| 52 + drivers/net/i40e/i40e_ethdev_vf.c | 6 +++ drivers/net/i40e/i40e_rxtx.c | 81

[dpdk-dev] [PATCH v2 4/6] i40evf: add supported offload capability flags

2015-06-02 Thread Helin Zhang
Add checksum offload capability flags which have already been supported for a long time. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e

[dpdk-dev] [PATCH v2 5/6] app/testpmd: add test cases for qinq stripping and insertion

2015-06-02 Thread Helin Zhang
If double vlan is detected, its stripped flag and vlan tags can be printed on rxonly mode. Test command of 'tx_vlan set' is expanded to set both single and double vlan tags on TX side for each packets to be sent out. Signed-off-by: Helin Zhang --- app/test-pmd/cmdl

[dpdk-dev] [PATCH v2 6/6] examples/ipv4_multicast: support double vlan stripping and insertion

2015-06-02 Thread Helin Zhang
The outer vlan should be copied from source packet buffer to support double vlan stripping and insertion, as double vlan can be stripped or inserted by some of NIC hardware. Signed-off-by: Helin Zhang --- examples/ipv4_multicast/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[dpdk-dev] [PATCH 0/6] query hash key size in byte

2015-06-04 Thread Helin Zhang
As different hardware has different hash key size, querying it (in byte) per port was asked by users. Otherwise there is no convenient way to know the size of hash key should be prepared. Helin Zhang (6): ethdev: add an field for querying hash key size e1000: fill the hash key size fm10k

[dpdk-dev] [PATCH 1/6] ethdev: add an field for querying hash key size

2015-06-04 Thread Helin Zhang
To support querying hash key size per port, an new field of 'hash_key_size' was added in 'struct rte_eth_dev_info' for storing hash key size in bytes. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_ethdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_

[dpdk-dev] [PATCH 2/6] e1000: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/e1000/igb_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/ig

[dpdk-dev] [PATCH 3/6] fm10k: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/fm10k/fm10k_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10

[dpdk-dev] [PATCH 4/6] i40e: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c| 2 ++ drivers/net/i40e/i40e_ethdev_vf.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/driver

[dpdk-dev] [PATCH 6/6] app/testpmd: show the hash key size

2015-06-04 Thread Helin Zhang
As querying hash key size in byte was supported, it can be shown in testpmd after getting the device information if not zero. Signed-off-by: Helin Zhang --- app/test-pmd/config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index f788ed5

[dpdk-dev] [PATCH 5/6] ixgbe: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers

[dpdk-dev] [PATCH v3] i40evf: fix of supporting jumbo frame

2015-06-04 Thread Helin Zhang
It wouldn't check the configured maximum packet length, and then the scattered receiving function wouldn't be selected at all even if it wants to receive a jumbo frame. The fix is to select the correct RX function according to the configurations. Signed-off-by: Helin Zhang --- driver

[dpdk-dev] [PATCH v2 1/6] ethdev: add an field for querying hash key size

2015-06-04 Thread Helin Zhang
To support querying hash key size per port, an new field of 'hash_key_size' was added in 'struct rte_eth_dev_info' for storing hash key size in bytes. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_ethdev.h | 3 +++ 1 file changed, 3 insertions(+) v2 changes: * Disab

[dpdk-dev] [PATCH v2 3/6] fm10k: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/fm10k/fm10k_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) v2 changes: * Disabled the code changes by default, to avoid br

[dpdk-dev] [PATCH v2 4/6] i40e: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c| 4 drivers/net/i40e/i40e_ethdev_vf.c | 4 2 files changed, 8 insertions(+) v2 changes: * Di

[dpdk-dev] [PATCH v2 2/6] e1000: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/e1000/igb_ethdev.c | 5 + 1 file changed, 5 insertions(+) v2 changes: * Disabled the code changes by default, to avoid br

[dpdk-dev] [PATCH v2 5/6] ixgbe: fill the hash key size

2015-06-04 Thread Helin Zhang
The correct hash key size in bytes should be filled into the 'struct rte_eth_dev_info', to support querying it. Signed-off-by: Helin Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 + 1 file changed, 5 insertions(+) v2 changes: * Disabled the code changes by default, to avoid br

[dpdk-dev] [PATCH v2 6/6] app/testpmd: show the hash key size

2015-06-04 Thread Helin Zhang
As querying hash key size in byte was supported, it can be shown in testpmd after getting the device information if not zero. Signed-off-by: Helin Zhang --- app/test-pmd/config.c | 4 1 file changed, 4 insertions(+) v2 changes: * Disabled the code changes by default, to avoid breaking ABI

[dpdk-dev] [PATCH v2 0/6] query hash key size in byte

2015-06-04 Thread Helin Zhang
As different hardware has different hash key sizes, querying it (in byte) per port was asked by users. Otherwise there is no convenient way to know the size of hash key which should be prepared. v2 changes: * Disabled the code changes by default, to avoid breaking ABI compatibility. Helin Zhang

[dpdk-dev] [PATCH v3 0/2] i40e setting ether type of VLANs

2016-03-11 Thread Helin Zhang
ABI change for release 16.07. - Fixed a i40e overflow issue. Helin Zhang (2): ethdev: add vlan type for setting ether type i40e: fix the overflow issue app/test-pmd/cmdline.c | 30 +++- app/test-pmd/config.c | 9 ++--- app/test-pmd/testpmd.h

[dpdk-dev] [PATCH v3 1/2] ethdev: add vlan type for setting ether type

2016-03-11 Thread Helin Zhang
In order to set ether type of VLAN for single VLAN, inner and outer VLAN, the VLAN type as an input parameter is added to 'rte_eth_dev_set_vlan_ether_type()'. In addition, corresponding changes in e1000, ixgbe and i40e are also added. Signed-off-by: Helin Zhang --- app/test-pmd

[dpdk-dev] [PATCH v3 2/2] i40e: fix the overflow issue

2016-03-11 Thread Helin Zhang
The array 'ptype_table' was defined in depth of 'UINT8_MAX' which is 255, while the querying index could be from 0 to 255. The issue can be fixed with expanding the array to one more element. Fixes: 9571ea028489 ("i40e: replace some offload flags with unified packet typ

[dpdk-dev] [PATCH v4 0/2] i40e setting ether type of VLANs

2016-03-11 Thread Helin Zhang
ABI change issue. - Reworked the announcement of ABI change for release 16.07. - Fixed a i40e overflow issue. Helin Zhang (2): ethdev: add vlan type for setting ether type i40e: fix the overflow issue app/test-pmd/cmdline.c | 30 +- app/test-pmd/config.c

[dpdk-dev] [PATCH v4 1/2] ethdev: add vlan type for setting ether type

2016-03-11 Thread Helin Zhang
In order to set ether type of VLAN for single VLAN, inner and outer VLAN, the VLAN type as an input parameter is added to 'rte_eth_dev_set_vlan_ether_type()'. In addition, corresponding changes in e1000, ixgbe and i40e are also added. Signed-off-by: Helin Zhang Acked-by: Wenzhuo Lu

[dpdk-dev] [PATCH v4 2/2] i40e: fix the overflow issue

2016-03-11 Thread Helin Zhang
The array 'ptype_table' was defined in depth of 'UINT8_MAX' which is 255, while the querying index could be from 0 to 255. The issue can be fixed with expanding the array to one more element. Fixes: 9571ea028489 ("i40e: replace some offload flags with unified packet typ

[dpdk-dev] [PATCH v5 0/2] i40e setting ether type of VLANs

2016-03-12 Thread Helin Zhang
to avoid ABI issue. - Re-organized the patch set. v2: - Used RTE_NEXT_ABI to avoid ABI change issue. - Reworked the announcement of ABI change for release 16.07. - Fixed a i40e overflow issue. Helin Zhang (2): ethdev: add vlan type for setting ether type i40e: fix the overflow issue app

[dpdk-dev] [PATCH v5 1/2] ethdev: add vlan type for setting ether type

2016-03-12 Thread Helin Zhang
In order to set ether type of VLAN for single VLAN, inner and outer VLAN, the VLAN type as an input parameter is added to 'rte_eth_dev_set_vlan_ether_type()'. In addition, corresponding changes in e1000, ixgbe and i40e are also added. Signed-off-by: Helin Zhang Acked-by: Wenzhuo Lu

[dpdk-dev] [PATCH v5 2/2] i40e: fix the overflow issue

2016-03-12 Thread Helin Zhang
The array 'ptype_table' was defined in depth of 'UINT8_MAX' which is 255, while the querying index could be from 0 to 255. The issue can be fixed with expanding the array to one more element. Fixes: 9571ea028489 ("i40e: replace some offload flags with unified packet typ

[dpdk-dev] [PATCH 01/15] i40e/base: remove HMC AQ APIs

2016-05-05 Thread Helin Zhang
HMC AQ APIs were removed from the latest datasheet, and hence remove its implementations and relevant. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_adminq.c | 4 --- drivers/net/i40e/base/i40e_adminq_cmd.h | 25 -- drivers/net/i40e/base/i40e_common.c | 61

[dpdk-dev] [PATCH 02/15] i40e/base: refactor NVM update status info

2016-05-05 Thread Helin Zhang
It centralizes all NVM update status info in the same structure, for better management. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_adminq.c | 6 +++--- drivers/net/i40e/base/i40e_adminq.h | 1 - drivers/net/i40e/base/i40e_nvm.c| 12 ++-- drivers/net/i40e/base

[dpdk-dev] [PATCH 03/15] i40e/base: refactor NVM update event handling

2016-05-05 Thread Helin Zhang
It refactors the NVM update event handling, with specifying the AQ event opcode to wait on. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_adminq.c| 33 +-- drivers/net/i40e/base/i40e_nvm.c | 77 +++--- drivers/net/i40e/base

[dpdk-dev] [PATCH 04/15] i40e/base: code style fixes

2016-05-05 Thread Helin Zhang
It adds code style fixes. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_adminq.c | 52 +++-- drivers/net/i40e/base/i40e_adminq.h | 4 +-- drivers/net/i40e/base/i40e_adminq_cmd.h | 21 +++-- drivers/net/i40e/base/i40e_common.c | 5

[dpdk-dev] [PATCH 00/15] i40e base driver update

2016-05-05 Thread Helin Zhang
This is the i40e base driver update, which includes bug fixes, enhancements, refactoring, and new device enabling. Below are the details. Helin Zhang (15): i40e/base: remove HMC AQ APIs i40e/base: refactor NVM update status info i40e/base: refactor NVM update event handling i40e/base

[dpdk-dev] [PATCH 05/15] i40e/base: fixup Geneve VNI for HW use

2016-05-05 Thread Helin Zhang
The hardware doesn't layout the Geneve VNI quite the same as the VxLAN VNI, so it needs to adjust it before sending through the AQ commands as the workaround. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_common.c | 35 ++- drivers/net/i40e

[dpdk-dev] [PATCH 06/15] i40e/base: expose mirroring config

2016-05-05 Thread Helin Zhang
It exposes the configuration of mirroring or not egress traffic to VSIs in promiscuous mode, as latest firmware supports that from API version 1.5. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_common.c| 9 ++--- drivers/net/i40e/base/i40e_prototype.h | 4 ++-- drivers/net

[dpdk-dev] [PATCH 07/15] i40e/base: fix problematic mirror rule ID check

2016-05-05 Thread Helin Zhang
It removes the problematic mirror rule ID check. It returns an error if the mirror rule ID is 0, which is a valid value. Fixes: 0bf2dbbe077c ("i40e/base: support mirroring rules") Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_common.c | 5 + 1 file changed, 1 inser

[dpdk-dev] [PATCH 08/15] i40e/base: add new devices

2016-05-05 Thread Helin Zhang
It adds new device IDs of both X722 and XXV710, and new PHY types. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_adminq_cmd.h | 4 drivers/net/i40e/base/i40e_common.c | 4 drivers/net/i40e/base/i40e_devids.h | 4 lib/librte_eal/common

[dpdk-dev] [PATCH 09/15] i40e/base: fix the number of MSIX vector

2016-05-05 Thread Helin Zhang
It corrects the number of MSIX vector in a debug info. Fixes: 889bc9f0cd3a ("i40e/base: unify the capability function") Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_c

[dpdk-dev] [PATCH 10/15] i40e/base: fix debug output

2016-05-05 Thread Helin Zhang
It fixes the debug output messages. Fixes: f388b435bc33 ("i40e/base: clean adminq debug") Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net

[dpdk-dev] [PATCH 11/15] i40e/base: add more device capabilities

2016-05-05 Thread Helin Zhang
It adds more device capabilities for NVM management. - if update is available - if security check is needed Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_adminq_cmd.h | 1 + drivers/net/i40e/base/i40e_common.c | 6 ++ drivers/net/i40e/base/i40e_type.h | 5 + 3

[dpdk-dev] [PATCH 12/15] i40e/base: increase supported AQ API version

2016-05-05 Thread Helin Zhang
It increases the supported AQ API version to 1.5 for X722. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index 7ed3048..bc68b47 100644

[dpdk-dev] [PATCH 13/15] i40e/base: add input set mask definitions

2016-05-05 Thread Helin Zhang
It adds input set mask definitions for RSS, flow director and flex bytes. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_type.h | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base

[dpdk-dev] [PATCH 14/15] i40e/base: add RSS config to virtual channel

2016-05-05 Thread Helin Zhang
It add opcodes and structures to support RSS configuration by PF driver on behalf of the VF drivers. Signed-off-by: Helin Zhang --- drivers/net/i40e/base/i40e_virtchnl.h | 45 --- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH 15/15] i40e/base: add capability of disabling all link

2016-05-05 Thread Helin Zhang
It adds a flag, which can be used to tell the firmware to disable the link on all ports. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_16_07.rst | 7 +++ drivers/net/i40e/Makefile | 2 +- drivers/net/i40e/base/i40e_adminq_cmd.h | 3 +++ 3 files changed, 11

[dpdk-dev] [PATCH 0/2] i40e: RSS granularity configuration

2015-09-22 Thread Helin Zhang
modifications in testpmd to support the testing. Helin Zhang (2): i40e: add RSS granularity configuration app/testpmd: add test commands for RSS granularity app/test-pmd/cmdline.c | 106 +++ drivers/net/i40e/i40e_ethdev.c | 621 drivers

[dpdk-dev] [PATCH 1/2] i40e: add RSS granularity configuration

2015-09-22 Thread Helin Zhang
: Helin Zhang Signed-off-by: Andrey Chilikin --- drivers/net/i40e/i40e_ethdev.c | 621 drivers/net/i40e/i40e_ethdev.h | 6 + drivers/net/i40e/i40e_fdir.c| 31 ++ lib/librte_ether/rte_eth_ctrl.h | 106 ++- 4 files changed, 760 insertions(+), 4

[dpdk-dev] [PATCH 2/2] app/testpmd: add test commands for RSS granularity

2015-09-22 Thread Helin Zhang
Test commands are added to support clearing input set, or setting with new input set per different pctype. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- app/test-pmd/cmdline.c | 106 + 1 file changed, 106 insertions(+) diff --git

[dpdk-dev] [PATCH v2 0/2] i40e: RSS granularity configuration

2015-09-22 Thread Helin Zhang
modifications in testpmd to support the testing. v2 changes: Solved the compilation issues. Helin Zhang (2): i40e: add RSS granularity configuration app/testpmd: add test commands for RSS granularity app/test-pmd/cmdline.c | 106 +++ drivers/net/i40e/i40e_ethdev.c | 591

[dpdk-dev] [PATCH v2 1/2] i40e: add RSS granularity configuration

2015-09-22 Thread Helin Zhang
: Helin Zhang Signed-off-by: Andrey Chilikin --- drivers/net/i40e/i40e_ethdev.c | 591 drivers/net/i40e/i40e_ethdev.h | 6 + drivers/net/i40e/i40e_fdir.c| 31 +++ lib/librte_ether/rte_eth_ctrl.h | 106 ++- 4 files changed, 730 insertions(+), 4

<    3   4   5   6   7   8   9   10   >