[dpdk-dev] [PATCH 31/31] i40e: enhance in sanity check of mac

2016-12-02 Thread Wenzhuo Lu
When VF sends request to add a new mac address, PF host will check if it's a non-zero or uncast address, or it will return with error. In fact, VF still can set multicast address. This change remove to check if it's a unicast address. Signed-off-by: Chen Jing D(Mark) ---

[dpdk-dev] [PATCH 28/31] net/i40e: return correct vsi_id

2016-12-02 Thread Wenzhuo Lu
PF host didn't return correct VSI id to VF. This change fix it. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_pf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index

[dpdk-dev] [PATCH 20/31] app/testpmd: use VFD APIs on i40e

2016-12-02 Thread Wenzhuo Lu
The new VF Daemon (VFD) APIs is implemented on i40e. Change testpmd code to use them, inlcuding VF MAC anti-spoofing, VF VLAN anti-spoofing, TX loopback, VF VLAN strip, VF VLAN insert. Signed-off-by: Wenzhuo Lu <wenzhuo...@intel.com> Signed-off-by: Chen Jing D(Mark) <jing.d.c...@intel.co

[dpdk-dev] [PATCH 12/31] net/i40e: set VF MAC from PF support

2016-12-02 Thread Wenzhuo Lu
Support setting VF MAC address from PF. User can call the API on PF to set a speific VF's MAC address. Signed-off-by: Ferruh Yigit --- app/test/Makefile | 8 +++ app/test/test_pmd_i40e.c | 96 +++

[dpdk-dev] [PATCH 07/31] net/i40e: set VF multicast promisc mode from PF

2016-12-02 Thread Wenzhuo Lu
Support enabling/disabling VF multicast promicscuous mode from PF. User can call the API on PF to enable/disable a specific VF's multicast promiscuous mode. Signed-off-by: Wenzhuo Lu <wenzhuo...@intel.com> --- drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH 02/31] net/i40e: add callback to user on VF to PF mbox msg

2016-12-02 Thread Wenzhuo Lu
The callback asks the user application if it is allowed to perform the mailbox messages. If the return value from user is RTE_PMD_I40E_MB_EVENT_PROCEED then continue. If ACK or NACK, do nothing and send not_supported to VF. Signed-off-by: Wenzhuo Lu <wenzhuo...@intel.com> --- drivers/ne

[dpdk-dev] [PATCH] e1000/base: announce supported NICs

2016-11-27 Thread Wenzhuo Lu
Announce the support of I219 NICs. Also add all the other supported NICs. Add Intel I219 NICs support in release note too. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_17_02.rst | 4 drivers/net/e1000/base/README | 21 + 2 files changed, 25

[dpdk-dev] [PATCH 16/16] e1000: add new i219 devices

2016-11-23 Thread Wenzhuo Lu
Enable the new i219 devices. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/em_ethdev.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index aee3d34..6a4cf2b 100644

[dpdk-dev] [PATCH 15/16] e1000/base: update readme

2016-11-23 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/e1000/base/README b/drivers/net/e1000/base/README index 8d48135..6cdd9b3 100644 --- a/drivers/net/e1000/base/README +++ b/drivers/net/e1000/base/README

[dpdk-dev] [PATCH 14/16] e1000/base: support more i219 devices

2016-11-23 Thread Wenzhuo Lu
Add the support of more new i219 devices. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_api.c | 7 +++ drivers/net/e1000/base/e1000_hw.h | 5 + drivers/net/e1000/base/e1000_ich8lan.c | 7 +++ 3 files changed, 19 insertions(+) diff --git a/drivers/net/e1000

[dpdk-dev] [PATCH 13/16] e1000/base: ability to force K1-off disabled

2016-11-23 Thread Wenzhuo Lu
MAC-PHY desync may occur causing misdetection of link up event. Disabling K1-off feature can work around the problem. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_hw.h | 1 + drivers/net/e1000/base/e1000_ich8lan.c | 3 +++ 2 files changed, 4 insertions(+) diff --git

[dpdk-dev] [PATCH 12/16] e1000/base: always request clock during K1 at 1G link speed

2016-11-23 Thread Wenzhuo Lu
This works around a possible stalled packet issue, which may occur due to clock recovery from the PCH being too slow, when the LAN is transitioning from K1 at 1G link speed. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 10 ++ drivers/net/e1000/base

[dpdk-dev] [PATCH 11/16] e1000/base: enable new i219 devices

2016-11-23 Thread Wenzhuo Lu
Enable the support of new i219 devices. Also define some registers for future usage. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_api.c | 12 + drivers/net/e1000/base/e1000_defines.h | 7 + drivers/net/e1000/base/e1000_hw.h | 15 +- drivers/net/e1000/base

[dpdk-dev] [PATCH 10/16] e1000/base: workaround for ULP entry flow

2016-11-23 Thread Wenzhuo Lu
For i217 revision 6, when entering Ultra Low Power (ULP) we need to enable Low Power Link Up (LPLU) and disable Gig speed to make it work. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 30 ++ 1 file changed, 30 insertions(+) diff --git

[dpdk-dev] [PATCH 09/16] e1000/base: increase LANPHYPC low duration

2016-11-23 Thread Wenzhuo Lu
LANPHYPC low duration of 10 usec was too low for some corner cases causing interface mismatches during Ultra Low Power (ULP) exit. This patch increases the duration to 1 msec which should be enough. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 2 +- 1 file changed, 1

[dpdk-dev] [PATCH 08/16] e1000/base: clear ULP configuration register on ULP exit

2016-11-23 Thread Wenzhuo Lu
handle that. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 2 ++ drivers/net/e1000/base/e1000_ich8lan.h | 4 2 files changed, 6 insertions(+) diff --git a/drivers/net/e1000/base/e1000_ich8lan.c b/drivers/net/e1000/base/e1000_ich8lan.c index 4d893d2..212526f 100644

[dpdk-dev] [PATCH 07/16] e1000/base: restore link speed after ULP exit

2016-11-23 Thread Wenzhuo Lu
After cable reconnect with Ultra Low Power (ULP) enabled, the Client PHY needs to be set up for link configuration. Previously this was only done in auto-negotiate mode. This fixes that and calls e1000_setup_copper_link_generic if autoneg is disabled. Signed-off-by: Wenzhuo Lu --- drivers/net

[dpdk-dev] [PATCH 06/16] e1000/base: add max RX jumbo frame define

2016-11-23 Thread Wenzhuo Lu
Add a define for MAX_RX_JUMBO_FRAME_SIZE to be used by igb as all igb parts (82575 and newer) have 9.5K max jumbo frame as per the datasheet. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_defines.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/e1000/base

[dpdk-dev] [PATCH 05/16] e1000/base: expose e1000_write_vfta_i350

2016-11-23 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_82575.c | 1 - drivers/net/e1000/base/e1000_82575.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e1000/base/e1000_82575.c b/drivers/net/e1000/base/e1000_82575.c index 723885d..c6400bd 100644

[dpdk-dev] [PATCH] lib/ip_frag: fix IP reassembly not working issue

2016-11-06 Thread Wenzhuo Lu
-by: Wenzhuo Lu --- lib/librte_ip_frag/rte_ip_frag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h index 69596ab..6708906 100644 --- a/lib/librte_ip_frag/rte_ip_frag.h +++ b/lib/librte_ip_frag/rte_ip_frag.h

[dpdk-dev] [PATCH] ixgbe: fix wrong RX DMA registers

2016-11-06 Thread Wenzhuo Lu
Some VF RX DMA registers are using PF's addresses by mistake. Although some of them are sharing the same addresses, we should use the right ones. Fixes: 0198848a47f5 ("ixgbe: add access to specific device info") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_r

[dpdk-dev] [PATCH] ixgbe: correct the VF general registers

2016-11-06 Thread Wenzhuo Lu
Some VF registers are using PF's name by mistake. Although the addresses of the VF's and PF's are the same, we should use the right names. Fixes: 0198848a47f5 ("ixgbe: add access to specific device info") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_regs.h | 6 +++--- 1 fi

[dpdk-dev] [PATCH] ixgbe: fix wrong VF TX registers

2016-11-06 Thread Wenzhuo Lu
The VF TX registers are using PF's addresses by mistake, correct them. Fixes: 0198848a47f5 ("ixgbe: add access to specific device info") Reported-by: Xuekun Hu Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_regs.h | 16 1 file changed, 8 insertions(+), 8

[dpdk-dev] [PATCH v3 3/3] app/testpmd: fix flow director endian issue

2016-10-19 Thread Wenzhuo Lu
: 7c554b4f0484 ("app/testpmd: update display of flow director information") Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Wenzhuo Lu Acked-by: Pablo de Lara --- app/test-pmd/cmdline.c | 6 +++--- app/test-pmd/config.c | 34 +--

[dpdk-dev] [PATCH v3 2/3] app/testpmd: fix wrong flow director mask

2016-10-19 Thread Wenzhuo Lu
In mac-vlan mode, MAC address mask is not supported by HW. The MAC address mask should not be set in mac-vlan mode. Remove this parameter from the CLI. Remove MAC address from mask print too. Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Wenzhuo

[dpdk-dev] [PATCH v3 1/3] ixgbe: fix wrong flow director mask

2016-10-19 Thread Wenzhuo Lu
In mac-vlan mode, MAC address mask is not supported by HW. The MAC address mask should not be set in mac-vlan mode. Instead, only set it in tunnel mode. Fixes: 82fb702077f6 ("ixgbe: support new flow director modes for X550") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_f

[dpdk-dev] [PATCH v3 0/3] fix flow director mask issues

2016-10-19 Thread Wenzhuo Lu
change. v3: - Reword the commit log. Wenzhuo Lu (3): ixgbe: fix wrong flow director mask app/testpmd: fix wrong flow director mask app/testpmd: fix flow director endian issue app/test-pmd/cmdline.c | 11 +++- app/test-pmd/config.c | 43

[dpdk-dev] [PATCH v2] app/testpmd: fix PF/VF check of flow director

2016-10-19 Thread Wenzhuo Lu
;) Signed-off-by: Wenzhuo Lu Acked-by: Pablo de Lara --- v2: - Reword the title and commit log. app/test-pmd/cmdline.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index a1da8b8..6e95ca2 100644

[dpdk-dev] [PATCH v2 3/3] app/testpmd: fix flow director endian issue

2016-10-12 Thread Wenzhuo Lu
: 7c554b4f0484 ("app/testpmd: update display of flow director information") Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 6 +++--- app/test-pmd/config.c | 34 +- 2 files changed,

[dpdk-dev] [PATCH v2 2/3] app/testpmd: fix wrong flow director mask

2016-10-12 Thread Wenzhuo Lu
In mac-vlan mode, MAC address mask is not supported by HW. The MAC address mask should not be set in mac-vlan mode. Remove this parameter from the CLI. Remove MAC address from mask print too. Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Wenzhuo Lu ---

[dpdk-dev] [PATCH v2 1/3] ixgbe: fix wrong flow director mask

2016-10-12 Thread Wenzhuo Lu
In mac-vlan mode, MAC address mask is not supported by HW. The MAC address mask should not be set in mac-vlan mode. Instead, only set it in tunnel mode. Fixes: 82fb702077f6 ("ixgbe: support new flow director modes for X550") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_f

[dpdk-dev] [PATCH v2 0/3] fix flow director mask issues

2016-10-12 Thread Wenzhuo Lu
change. Wenzhuo Lu (3): ixgbe: fix wrong flow director mask app/testpmd: fix wrong flow director mask app/testpmd: fix flow director endian issue app/test-pmd/cmdline.c | 11 +++- app/test-pmd/config.c | 43 + doc/guides

[dpdk-dev] [PATCH 3/3] app/testpmd: fix wrong flow director mask

2016-10-10 Thread Wenzhuo Lu
In mac-vlan mode, MAC address mask is not supported by HW. The MAC address mask should not be set in mac-vlan mode. Remove this parameter from the CLI. Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH 2/3] app/testpmd: fix flow director endian issue

2016-10-10 Thread Wenzhuo Lu
The vlan mask and tunnel id mask of flow director are defined as big endian. So they should be converted. When the mask is printed, the parameters are not converted either. Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdl

[dpdk-dev] [PATCH 1/3] ixgbe: fix wrong flow director mask

2016-10-10 Thread Wenzhuo Lu
In mac-vlan mode, MAC address mask is not supported by HW. The MAC address mask should not be set in mac-vlan mode. Instead, only set it in tunnel mode. Fixes: 82fb702077f6 ("ixgbe: support new flow director modes for X550") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_f

[dpdk-dev] [PATCH 0/3] fix flow director mask issues

2016-10-10 Thread Wenzhuo Lu
There're 2 issues about flow director mask. 1, MAC address mask is not supported in mac-vlan mode. 2, All the parameter are defined as big endian, but they're not treated approriately. This patch set is used to fix these 2 issues. Wenzhuo Lu (3): ixgbe: fix wrong flow director mask app

[dpdk-dev] [PATCH] app/testpmd: fix pf/vf check of flow director

2016-10-10 Thread Wenzhuo Lu
t;) Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index f90befc..2580f27 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -85

[dpdk-dev] [PATCH] app/testpmd: fix DCB config issue on ixgbe

2016-08-05 Thread Wenzhuo Lu
info can be got depending on the configuration. Fixes: 96c0450dff86 (ixgbe: fix dropping packets from unsupported Tx queues) Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 39 +-- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v2] app/testpmd: bypass code cleanup

2016-07-11 Thread Wenzhuo Lu
*. Suggested-by: Jingjing Wu Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 39 --- 1 file changed, 39 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index b6b61ad..f90befc 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test

[dpdk-dev] [PATCH] lib/librte_ether: bypass code cleanup

2016-07-11 Thread Wenzhuo Lu
In testpmd code, device id is used directly to check if bypass is supported. But APP should not know the details of HW, the NIC specific info should not be exposed here. This patch adds a new rte API to check if bypass is supported. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v6 4/4] i40e: implement device reset on VF

2016-06-20 Thread Wenzhuo Lu
Implement the device reset function. This reset function will detach device then attach device, reconfigure dev, re-setup the Rx/Tx queues. Signed-off-by: Zhe Tao --- doc/guides/rel_notes/release_16_07.rst | 4 ++ drivers/net/i40e/i40e_ethdev.h | 4 ++

[dpdk-dev] [PATCH v6 3/4] igb: implement device reset on VF

2016-06-20 Thread Wenzhuo Lu
Implement the device reset function. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 2 +- drivers/net/e1000/igb_ethdev.c | 59 ++ 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_16_07

[dpdk-dev] [PATCH v6 2/4] ixgbe: implement device reset on VF

2016-06-20 Thread Wenzhuo Lu
Implement the device reset function. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 9 + drivers/net/ixgbe/ixgbe_ethdev.c | 64 +- drivers/net/ixgbe/ixgbe_ethdev.h | 2 +- drivers/net/ixgbe/ixgbe_rxtx.c | 12

[dpdk-dev] [PATCH v6 1/4] lib/librte_ether: support device reset

2016-06-20 Thread Wenzhuo Lu
ice, then reset the device, then recover the device and rx/tx. Signed-off-by: Wenzhuo Lu --- doc/guides/nics/overview.rst | 1 + lib/librte_ether/rte_ethdev.c | 17 + lib/librte_ether/rte_ethdev.h | 24 lib/librte_et

[dpdk-dev] [PATCH v6 0/4] support reset of VF link

2016-06-20 Thread Wenzhuo Lu
recovery on ixgbe/igb VF*, and it's base on the patch set *support mailbox interruption on ixgbe/igb VF*. Wenzhuo Lu (3): lib/librte_ether: support device reset ixgbe: implement device reset on VF igb: implement device reset on VF Zhe Tao (1): i40e: implement device reset on VF v1: - Added

[dpdk-dev] [PATCH v5 4/4] i40e: implement device reset on VF

2016-06-15 Thread Wenzhuo Lu
Implement the device reset function. This reset function will detach device then attach device, reconfigure dev, re-setup the Rx/Tx queues. Signed-off-by: Zhe Tao --- doc/guides/rel_notes/release_16_07.rst | 4 ++ drivers/net/i40e/i40e_ethdev.h | 4 ++

[dpdk-dev] [PATCH v5 3/4] igb: implement device reset on VF

2016-06-15 Thread Wenzhuo Lu
Implement the device reset function. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 2 +- drivers/net/e1000/igb_ethdev.c | 59 ++ 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_16_07

[dpdk-dev] [PATCH v5 2/4] ixgbe: implement device reset on VF

2016-06-15 Thread Wenzhuo Lu
Implement the device reset function. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 9 + drivers/net/ixgbe/ixgbe_ethdev.c | 64 +- drivers/net/ixgbe/ixgbe_ethdev.h | 2 +- drivers/net/ixgbe/ixgbe_rxtx.c | 12

[dpdk-dev] [PATCH v5 1/4] lib/librte_ether: support device reset

2016-06-15 Thread Wenzhuo Lu
ice, then reset the device, then recover the device and rx/tx. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_ethdev.c | 17 + lib/librte_ether/rte_ethdev.h | 14 ++ lib/librte_ether/rte_ether_version.map | 7 +++ 3 files changed, 38 inserti

[dpdk-dev] [PATCH v5 0/4] support reset of VF link

2016-06-15 Thread Wenzhuo Lu
recovery on ixgbe/igb VF*, and it's base on the patch set *support mailbox interruption on ixgbe/igb VF*. Wenzhuo Lu (3): lib/librte_ether: support device reset ixgbe: implement device reset on VF igb: implement device reset on VF Zhe Tao (1): i40e: implement device reset on VF v1: - Added

[dpdk-dev] [PATCH] examples: add a new example for link reset

2016-06-06 Thread Wenzhuo Lu
Add a new example to show when the PF is down and up, VF port can be reset and recover. Signed-off-by: Wenzhuo Lu --- MAINTAINERS | 4 + doc/guides/sample_app_ug/link_reset.rst | 177 examples/link_reset/Makefile| 50 +++ examples/link_reset

[dpdk-dev] [PATCH] an example for VF link reset

2016-06-06 Thread Wenzhuo Lu
Add a new example to show how to handle the reset event on VF when PF link down/up. PS: This patch set is base on the patch set *support reset of VF link*. Wenzhuo Lu (1): examples: add a new example for link reset MAINTAINERS | 4 + doc/guides/sample_app_ug

[dpdk-dev] [PATCH 8/8] i40e: implement device reset on VF

2016-06-06 Thread Wenzhuo Lu
Implement the device reset function. 1, Add the fake RX/TX functions. 2, The reset function tries to stop RX/TX by replacing the RX/TX functions with the fake ones and getting the locks to make sure the regular RX/TX finished. 3, After the RX/TX stopped, reset the VF port, and then

[dpdk-dev] [PATCH 7/8] i40e:RX/TX with lock on VF

2016-06-06 Thread Wenzhuo Lu
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by: Zhe Tao ---

[dpdk-dev] [PATCH 6/8] igb: implement device reset on VF

2016-06-06 Thread Wenzhuo Lu
, and then release the locks and restore the RX/TX functions. BTW: The definition of some structures are moved from .c file to .h file. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 2 +- drivers/net/e1000/e1000_ethdev.h | 116 ++ drivers/net/e1000

[dpdk-dev] [PATCH 5/8] igb: RX/TX with lock on VF

2016-06-06 Thread Wenzhuo Lu
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH 4/8] ixgbe: implement device reset on VF

2016-06-06 Thread Wenzhuo Lu
, and then release the locks and restore the RX/TX functions. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 9 +++ drivers/net/ixgbe/ixgbe_ethdev.c | 108 - drivers/net/ixgbe/ixgbe_ethdev.h | 12 +++- drivers/net/ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH 3/8] ixgbe: RX/TX with lock on VF

2016-06-06 Thread Wenzhuo Lu
Add RX/TX paths with lock for VF. It's used when the function of link reset on VF is needed. When the lock for RX/TX is added, the RX/TX can be stopped. Then we have a chance to reset the VF link. Please be aware there's performence drop if the lock path is chosen. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH 2/8] lib/librte_ether: defind RX/TX lock mode

2016-06-06 Thread Wenzhuo Lu
-by: Wenzhuo Lu Signed-off-by: Zhe Tao --- lib/librte_ether/rte_ethdev.h | 62 +++ 1 file changed, 62 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 74e895f..4efb5e9 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b

[dpdk-dev] [PATCH 1/8] lib/librte_ether: support device reset

2016-06-06 Thread Wenzhuo Lu
Add an API to reset the device. It's for VF device in this scenario, kernel PF + DPDK VF. When the PF port down/up, APP should call this API to reset VF port. Most likely, APP should call it in its management thread and guarantee the thread safe. Signed-off-by: Wenzhuo Lu --- lib/librte_ether

[dpdk-dev] [PATCH v2 2/2] igb: VF supports mailbox interruption for PF link up/down

2016-06-01 Thread Wenzhuo Lu
change. This patch enables the support of the mailbox interruption, so VF can receive the message of link up/down. After VF receives this message, VF port need to be reset to recover. So the handler of this message registers a reset callback to let APP reset the VF port. Signed-off-by: Wenz

[dpdk-dev] [PATCH v2 1/2] ixgbe: VF supports mailbox interruption for PF link up/down

2016-06-01 Thread Wenzhuo Lu
change. This patch enables the support of the mailbox interruption, so VF can receive the message of link up/down. After VF receives this message, VF port need to be reset to recover. So the handler of this message registers a reset callback to let APP reset the VF port. Signed-off-by: Wenz

[dpdk-dev] [PATCH v2 0/2] support mailbox interruption on ixgbe/igb VF

2016-06-01 Thread Wenzhuo Lu
log and add more details. - Rebase the patches on the latest code. Wenzhuo Lu (2): ixgbe: VF supports mailbox interruption for PF link up/down igb: VF supports mailbox interruption for PF link up/down doc/guides/rel_notes/release_16_07.rst | 6 ++ drivers/net/e1000/igb_ethdev.c

[dpdk-dev] [PATCH 2/2] igb: VF supports mailbox interruption for PF link up/down

2016-05-24 Thread Wenzhuo Lu
In this scenario, kernel PF + DPDK VF, when PF finds the link state is changed, up -> down or down -> up, it will send a mailbox message to VF. This patch enables the support of the interruption of mailbox, so VF can receive the message for link up/down. Signed-off-by: Wenzhuo Lu --- doc/

[dpdk-dev] [PATCH 1/2] ixgbe: VF supports mailbox interruption for PF link up/down

2016-05-24 Thread Wenzhuo Lu
In this scenario, kernel PF + DPDK VF, when PF finds the link state is changed, up -> down or down -> up, it will send a mailbox message to VF. This patch enables the support of the interruption of mailbox, so VF can receive the message for link up/down. Signed-off-by: Wenzhuo Lu --- doc/

[dpdk-dev] [PATCH 0/2] support mailbox interruption on ixgbe/igb VF

2016-05-24 Thread Wenzhuo Lu
This patch set addes the support of the mailbox interruption on VF. So, VF can receice the messges for physical link down/up. PS: This patch set is splitted from a previous patch set, *automatic link recovery on ixgbe/igb VF*. Wenzhuo Lu (2): ixgbe: VF supports mailbox interruption for PF link

[dpdk-dev] [PATCH v3] ethdev: fix DCB config issue on ixgbe

2016-05-06 Thread Wenzhuo Lu
queue number. Fixes: 96c0450dff86 (ixgbe: fix dropping packets from unsupported Tx queues) Signed-off-by: Wenzhuo Lu --- v2: - Changed the release to 16.07. v3: - Changed the title prefix to ethdev. - Reworded the commit log. app/test-pmd/testpmd.c | 40 +++

[dpdk-dev] [PATCH v2] lib: fix DCB config issue on ixgbe

2016-05-05 Thread Wenzhuo Lu
number. v2: - Changed the release to 16.07. Fixes: 96c0450dff86 (ixgbe: fix dropping packets from unsupported Tx queues) Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 40 +++--- lib/librte_ether/rte_ethdev.c | 17 +++ lib/

[dpdk-dev] [PATCH 4/4] igb: automatic link recovery on VF

2016-05-05 Thread Wenzhuo Lu
, it will replace the RX/TX and operation functions with fake ones to stop RX/TX and any future operation. Then reset the VF port. After successfully resetting the port, recover the RX/TX and operation functions. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 2 +- drivers/net

[dpdk-dev] [PATCH 3/4] ixgbe: automatic link recovery on VF

2016-05-05 Thread Wenzhuo Lu
, it will replace the RX/TX and operation functions with fake ones to stop RX/TX and any future operation. Then reset the VF port. After successfully resetting the port, recover the RX/TX and operation functions. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_16_07.rst | 5 ++ drivers/net

[dpdk-dev] [PATCH 2/4] igb: VF supports mailbox interruption for PF link up/down

2016-05-05 Thread Wenzhuo Lu
In this scenario, kernel PF + DPDK VF, when PF finds the link state is changed, up -> down or down -> up, it will send a mailbox message to VF. This patch enables the support of the interruption of mailbox, so VF can receive the message for link up/down. Signed-off-by: Wenzhuo Lu --- doc/

[dpdk-dev] [PATCH 1/4] ixgbe: VF supports mailbox interruption for PF link up/down

2016-05-05 Thread Wenzhuo Lu
In this scenario, kernel PF + DPDK VF, when PF finds the link state is changed, up -> down or down -> up, it will send a mailbox message to VF. This patch enables the support of the interruption of mailbox, so VF can receive the message for link up/down. Signed-off-by: Wenzhuo Lu --- doc/

[dpdk-dev] [PATCH 0/4] automatic link recovery on ixgbe/igb VF

2016-05-05 Thread Wenzhuo Lu
automatically. Wenzhuo Lu (4): ixgbe: VF supports mailbox interruption for PF link up/down igb: VF supports mailbox interruption for PF link up/down ixgbe: automatic link recovery on VF igb: automatic link recovery on VF doc/guides/rel_notes/release_16_07.rst | 11 ++ drivers/net/e1000

[dpdk-dev] [PATCH] lib: fix DCB config issue on ixgbe

2016-04-11 Thread Wenzhuo Lu
mber. Fixes: 96c0450dff86 (ixgbe: fix dropping packets from unsupported Tx queues) Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 40 +++--- lib/librte_ether/rte_ethdev.c | 17 +++ lib/librte_ether/rte_ethdev.h

[dpdk-dev] [PATCH] ixgbe: fix wrong packet type for VxLAN & NVGRE

2016-04-08 Thread Wenzhuo Lu
der. This patch implement the support of packet type for VxLAN & NVGRE. And it fixes the wrong packet type issue either. BTW: It doesn't fix any existing commit as although it resolve an issue it's more like a new feature but not a fix. Reported-by: Konstantin Ananyev Signed-off-by: Wenzhuo

[dpdk-dev] [PATCH] doc: announce per queue stats support for ixgbe

2016-04-07 Thread Wenzhuo Lu
Fixes: 83a4a15404ef (doc: fill nics features matrix for e1000/igb and ixgbe) Reported-by: Thomas Monjalon Signed-off-by: Wenzhuo Lu --- doc/guides/nics/overview.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/nics/overview.rst b/doc/guides/nics/overview.rst

[dpdk-dev] [PATCH v2] doc: update overview

2016-04-05 Thread Wenzhuo Lu
Update the overview.rst for e1000, igb, ixgbe. v2: - Some "X"s are put in the wrong place, correct it. Signed-off-by: Wenzhuo Lu --- doc/guides/nics/overview.rst | 94 ++-- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/doc/g

[dpdk-dev] [PATCH v2] igb: fix i350 VF RX issue

2016-04-05 Thread Wenzhuo Lu
checks the RX wthresh when setting up the RX queue, and forces it to be 1, so every packet can be handled immediately. v2: - Add missed signoff. Fixes: 4a41c17dba18 (igb: set default thresholds based on MAC type) Signed-off-by: Wenzhuo Lu Acked-by: Konstantin Ananyev --- drivers/net/e1000

[dpdk-dev] [PATCH] doc: update overview

2016-04-01 Thread Wenzhuo Lu
Update the overview.rst for e1000, igb, ixgbe. Signed-off-by: Wenzhuo Lu --- doc/guides/nics/overview.rst | 94 ++-- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/doc/guides/nics/overview.rst b/doc/guides/nics/overview.rst index 542479a

[dpdk-dev] [PATCH] igb: fix i350 VF RX issue

2016-04-01 Thread Wenzhuo Lu
A problem is found on i350 VF. We found TX will happen once per 4 packets. If only 1~3 packets are received, they will not be forwarded. But the real problem is on RX side. The reason is the default RX write-back threshold is changed to 4, so every first 3 packets may be hung there. This patch

[dpdk-dev] [PATCH] igb: change default RX wthresh back

2016-03-31 Thread Wenzhuo Lu
: 4a41c17dba18 (igb: set default thresholds based on MAC type) Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/igb_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index bd0ae26..34120ae 100644 --- a/drivers/net/e1000

[dpdk-dev] [PATCH] ixgbe/base: fix VF multi-queue failure

2016-03-30 Thread Wenzhuo Lu
romiscuous mode on VF") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_vf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base/ixgbe_vf.c b/drivers/net/ixgbe/base/ixgbe_vf.c index dbb5194..40dc1c8 100644 --- a/drivers/net/ixgbe/base/ixgbe_vf.c +++ b/dr

[dpdk-dev] [PATCH] ixgbe: support mac type x550em_a

2016-03-25 Thread Wenzhuo Lu
rt L2 tunnel operations") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 42 ++-- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index d4d883a..5521

[dpdk-dev] [PATCH] ixgbe: extend the timer support to x550em

2016-03-25 Thread Wenzhuo Lu
An issue is found on x550em NICs, that ieee1588 is not working, the time always be 0. The root cause is the timer is only supported by x550, it's not extended to x550em_x and x550em_a. Fixes: a7740dc1303a("ixgbe: support new devices and MAC types") Signed-off-by: Wenzhuo Lu --- d

[dpdk-dev] [PATCH v2 2/2] igb: fix the wrong address of device data pointer

2016-03-24 Thread Wenzhuo Lu
In the function set_rx_mode, the pointer of device data points to the wrong address as found in ixgbe code. Fixes: be2d648a2dd3("igb: add PF support") Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/igb_pf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v2 1/2] ixgbe: fix the wrong address of device data pointer

2016-03-24 Thread Wenzhuo Lu
dd PF support") Signed-off-by: Wenzhuo Lu Reported-by: Bernard Iremonger --- drivers/net/ixgbe/ixgbe_pf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c index b854c72..a540343 100644 --- a/drivers/net/ixgbe/

[dpdk-dev] [PATCH v2 0/2] fix the wrong address of device data pointer

2016-03-24 Thread Wenzhuo Lu
In the function set_rx_mode, the pointer of device data points to the wrong address. v2: - Remove the unnecessary cast. Wenzhuo Lu (2): ixgbe: fix the wrong address of device data pointer igb: fix the wrong address of device data pointer drivers/net/e1000/igb_pf.c | 3 +-- drivers/net

[dpdk-dev] [PATCH 2/2] igb: fix the wrong address of device data pointer

2016-03-24 Thread Wenzhuo Lu
In the function set_rx_mode, the pointer of device data points to the wrong address as found in ixgbe code. Fixes: be2d648a2dd3("igb: add PF support") Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/igb_pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [PATCH 1/2] ixgbe: fix the wrong address of device data pointer

2016-03-24 Thread Wenzhuo Lu
dd PF support") Signed-off-by: Wenzhuo Lu Reported-by: Bernard Iremonger --- drivers/net/ixgbe/ixgbe_pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c index b854c72..0f8ad55 100644 --- a/drivers/net/ixgbe/ixgbe_

[dpdk-dev] [PATCH 0/2] fix the wrong address of device data pointer

2016-03-24 Thread Wenzhuo Lu
In the function set_rx_mode, the pointer of device data points to the wrong address. Wenzhuo Lu (2): ixgbe: fix the wrong address of device data pointer igb: fix the wrong address of device data pointer drivers/net/e1000/igb_pf.c | 2 +- drivers/net/ixgbe/ixgbe_pf.c | 2 +- 2 files

[dpdk-dev] [PATCH] ixgbe: add TX queue number check

2016-03-22 Thread Wenzhuo Lu
than 64 during device configuration, so the user can know the problem as early as possible. Signed-off-by: Wenzhuo Lu Reported-by: Antonio Fischetti --- drivers/net/ixgbe/ixgbe_ethdev.c | 11 ++- drivers/net/ixgbe/ixgbe_ethdev.h | 1 + 2 files changed, 11 insertions(+), 1 deletion

[dpdk-dev] [PATCH v8 5/5] app/testpmd: add CLIs for E-tag operation

2016-03-11 Thread Wenzhuo Lu
Add the CLIs to support the E-tag operation. 1, Offloading of E-tag insertion and stripping. 2, Forwarding the E-tag packets to pools based on the GRP and E-CID_base. Signed-off-by: Wenzhuo Lu Acked-by: Shaopeng He Acked-by: Jingjing Wu Tested-by: Yong Liu --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v8 4/5] app/testpmd: add CLIs for l2 tunnel config

2016-03-11 Thread Wenzhuo Lu
Add CLIs to config ether type of l2 tunnel, and to enable/disable a type of l2 tunnel. Now only e-tag tunnel is supported. Signed-off-by: Wenzhuo Lu Acked-by: Shaopeng He Acked-by: Jingjing Wu Tested-by: Yong Liu --- app/test-pmd/cmdline.c | 278

[dpdk-dev] [PATCH v8 3/5] ixgbe: support l2 tunnel operations

2016-03-11 Thread Wenzhuo Lu
forwarding. 5, Support adding/deleting forwarding rules for l2 tunnel packets. Only support E-tag now. Also update the release note. Signed-off-by: Wenzhuo Lu Acked-by: Shaopeng He Acked-by: Jingjing Wu Tested-by: Yong Liu --- doc/guides/rel_notes/release_16_04.rst | 21 ++ drivers/net/ixgbe

[dpdk-dev] [PATCH v8 2/5] lib/librte_ether: support l2 tunnel operations

2016-03-11 Thread Wenzhuo Lu
tunnel tag. Only support e-tag tunnel now. Signed-off-by: Wenzhuo Lu Acked-by: Shaopeng He Acked-by: Jingjing Wu Tested-by: Yong Liu --- lib/librte_ether/rte_eth_ctrl.h| 13 ++ lib/librte_ether/rte_ethdev.c | 54 lib/librte_ether/rte_ethdev.h

[dpdk-dev] [PATCH v8 1/5] ixgbe: select pool by MAC when using double VLAN

2016-03-11 Thread Wenzhuo Lu
to identify the VM channel and the virtual port. Signed-off-by: Wenzhuo Lu Acked-by: Shaopeng He Acked-by: Jingjing Wu Tested-by: Yong Liu --- drivers/net/ixgbe/ixgbe_ethdev.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe

[dpdk-dev] [PATCH v8 0/5] support E-tag offloading and forwarding on X550

2016-03-11 Thread Wenzhuo Lu
entry. - Update the release note to add some info about how to use this feature. v5: - Use macro for return value. - Correct print info. v6: - Merge some rte ops. v7: - Squash the l2 tunnel filter ops to filter ctrl ops. v8: - Merge the rte_eth_l2_tunnel_type to rte_eth_tunnel_type. Wenzhuo Lu (5

[dpdk-dev] [PATCH v9 5/5] ixgbe: support VxLAN & NVGRE TX checksum off-load

2016-03-10 Thread Wenzhuo Lu
The patch add VxLAN & NVGRE TX checksum off-load. When the flag of outer IP header checksum offload is set, we'll set the context descriptor to enable this checksum off-load. Also update release note for VxLAN & NVGRE checksum off-load support and ABI change. Signed-off-by: Wenzhuo L

[dpdk-dev] [PATCH v9 4/5] ixgbe: support VxLAN & NVGRE RX checksum off-load

2016-03-10 Thread Wenzhuo Lu
X550 will do VxLAN & NVGRE RX checksum off-load automatically. This patch exposes the result of the checksum off-load. Signed-off-by: Wenzhuo Lu Acked-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_rxtx.c | 11 ++- lib/librte_e

[dpdk-dev] [PATCH v9 3/5] ixgbe: support UDP tunnel port config

2016-03-10 Thread Wenzhuo Lu
is 0. So please set it when using VxLAN off-load. Signed-off-by: Wenzhuo Lu Acked-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 123 +++ 1 file changed, 123 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe

  1   2   3   4   5   >