[dpdk-dev] [PATCH v2 3/4] ixgbe: VF RSS reta/hash query and update

2015-10-16 Thread Wenzhuo Lu
VF NICs' behavior change without being noticed. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 23 +++ drivers/net/ixgbe/ixgbe_ethdev.h | 2 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 18 +++--- 3 files changed, 40 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH v2 4/4] doc: release notes update for RSS enhancement

2015-10-16 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_2.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5687676..d9d2a3d 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v3 0/7] Support new flow director modes on Intel x550 NIC

2015-10-22 Thread Wenzhuo Lu
to support per bit mask in future. Set default VxLAN port only when the NIC support VxLAN. Make the condition more strict when check the fdir mode for avoiding the code being broken with future expansion. Make mac mask more flexible. Add a new function for MAC VLAN and tunnel mask. Wenzhuo Lu (7

[dpdk-dev] [PATCH v3 1/7] lib/librte_ether: modify the structures for fdir new modes

2015-10-22 Thread Wenzhuo Lu
Define the new modes and modify the filter and mask structures for the mac vlan and tunnel modes. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_eth_ctrl.h | 69 ++--- 1 file changed, 51 insertions(+), 18 deletions(-) diff --git a/lib/librte_ether

[dpdk-dev] [PATCH v3 2/7] app/testpmd: initialize the new fields for fdir mask

2015-10-22 Thread Wenzhuo Lu
When a port is enabled, there're default values for the parameters of fdir mask. For the new parameters, the default values also need to be set. Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd

[dpdk-dev] [PATCH v3 4/7] app/testpmd: modify the output of the CLI show port fdir

2015-10-22 Thread Wenzhuo Lu
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the supported flow type is meaningless for mac vlan and tunnel modes. So, we output different thing for different mode. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH v3 3/7] app/testpmd: new fdir modes for testpmd parameter

2015-10-22 Thread Wenzhuo Lu
For testpmd CLI's parameter pkt-filter-mode, there're new values supported for fdir new modes, perfect-mac-vlan, perfect-tunnel. Signed-off-by: Wenzhuo Lu --- app/test-pmd/parameters.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/parameters.c b/app/test

[dpdk-dev] [PATCH v3 5/7] app/testpmd: modify and add fdir filter and mask CLIs for new modes

2015-10-22 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 293 ++--- 1 file changed, 278 insertions(+), 15 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0f8f48f..ac44ab0 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd

[dpdk-dev] [PATCH v3 7/7] doc: release notes update for flow director enhancement

2015-10-22 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_2.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index bc9b00f..9d0a4d7 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v2] ixgbe: Drop flow control frames from VFs

2015-10-22 Thread Wenzhuo Lu
This patch will drop flow control frames from being transmitted from VSIs. With this patch in place a malicious VF cannot send flow control or PFC packets out on the wire. V2: Reword the comments. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_pf.c | 43

[dpdk-dev] [PATCH v4 0/7] Support new flow director modes on Intel x550 NIC

2015-10-23 Thread Wenzhuo Lu
the enum rte_fdir_mode to resolve a compile issue. But after all this code change, there's no such issue. Move the enum back to its original place. Wenzhuo Lu (7): lib/librte_ether: modify the structures for fdir new modes app/testpmd: initialize the new fields for fdir mask app/testpmd: new

[dpdk-dev] [PATCH v4 1/7] lib/librte_ether: modify the structures for fdir new modes

2015-10-23 Thread Wenzhuo Lu
Define the new modes and modify the filter and mask structures for the mac vlan and tunnel modes. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_eth_ctrl.h | 51 + 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/lib/librte_ether

[dpdk-dev] [PATCH v4 2/7] app/testpmd: initialize the new fields for fdir mask

2015-10-23 Thread Wenzhuo Lu
When a port is enabled, there're default values for the parameters of fdir mask. For the new parameters, the default values also need to be set. Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd

[dpdk-dev] [PATCH v4 3/7] app/testpmd: new fdir modes for testpmd parameter

2015-10-23 Thread Wenzhuo Lu
For testpmd CLI's parameter pkt-filter-mode, there're new values supported for fdir new modes, perfect-mac-vlan, perfect-tunnel. Signed-off-by: Wenzhuo Lu --- app/test-pmd/parameters.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/parameters.c b/app/test

[dpdk-dev] [PATCH v4 4/7] app/testpmd: modify the output of the CLI show port fdir

2015-10-23 Thread Wenzhuo Lu
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the supported flow type is meaningless for mac vlan and tunnel modes. So, we output different thing for different mode. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH v4 5/7] app/testpmd: modify and add fdir filter and mask CLIs for new modes

2015-10-23 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 293 ++--- 1 file changed, 278 insertions(+), 15 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0f8f48f..ac44ab0 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd

[dpdk-dev] [PATCH v4 6/7] ixgbe: implementation for fdir new modes' config

2015-10-23 Thread Wenzhuo Lu
Implement the new CLIs for fdir mac vlan and tunnel modes, including flow_director_filter and flow_director_mask. Set the mask of fdir. Add, delete or update the entities of filter. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.h | 3 + drivers/net/ixgbe/ixgbe_fdir.c | 261

[dpdk-dev] [PATCH v4 7/7] doc: release notes update for flow director enhancement

2015-10-23 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_2.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index bc9b00f..9d0a4d7 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides

[dpdk-dev] [PATCH v3] ixgbe: Drop flow control frames from VFs

2015-10-23 Thread Wenzhuo Lu
an ethertype_filter entity without using it. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_pf.c | 47 1 file changed, 47 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c index fd1c4ca..1627030 100644

[dpdk-dev] [PATCH v4] ixgbe: Drop flow control frames from VFs

2015-10-23 Thread Wenzhuo Lu
an ethertype_filter entity without using it. V4: Remove the useless braces and return. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_pf.c | 44 1 file changed, 44 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe

[dpdk-dev] [PATCH v5 1/7] lib/librte_ether: modify the structures for fdir new modes

2015-10-26 Thread Wenzhuo Lu
Define the new modes and modify the filter and mask structures for the mac vlan and tunnel modes. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_eth_ctrl.h | 33 + 1 file changed, 33 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib

[dpdk-dev] [PATCH v5 2/7] app/testpmd: initialize the new fields for fdir mask

2015-10-26 Thread Wenzhuo Lu
When a port is enabled, there're default values for the parameters of fdir mask. For the new parameters, the default values also need to be set. Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd

[dpdk-dev] [PATCH v5 3/7] app/testpmd: new fdir modes for testpmd parameter

2015-10-26 Thread Wenzhuo Lu
For testpmd CLI's parameter pkt-filter-mode, there're new values supported for fdir new modes, perfect-mac-vlan, perfect-tunnel. Signed-off-by: Wenzhuo Lu --- app/test-pmd/parameters.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/parameters.c b/app/test

[dpdk-dev] [PATCH v5 4/7] app/testpmd: modify the output of the CLI show port fdir

2015-10-26 Thread Wenzhuo Lu
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the supported flow type is meaningless for mac vlan and tunnel modes. So, we output different thing for different mode. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH v5 0/7] Support new flow director modes on Intel x550 NIC

2015-10-26 Thread Wenzhuo Lu
the enum rte_fdir_mode to resolve a compile issue. But after all this code change, there's no such issue. Move the enum back to its original place. V5: Remove some blank spaces. Adjust the value of RTE_FDIR_TUNNEL_TYPE_UNKNOWN to 0. Wenzhuo Lu (7): lib/librte_ether: modify the structures

[dpdk-dev] [PATCH v5 5/7] app/testpmd: modify and add fdir filter and mask CLIs for new modes

2015-10-26 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 294 ++--- 1 file changed, 279 insertions(+), 15 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0f8f48f..b3c36f3 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd

[dpdk-dev] [PATCH] ixgbe: fix the wrong prompt for VF TSO

2015-09-11 Thread Wenzhuo Lu
When setting TSO on VF ixgbe NICs, for example, 82599, x550, the prompt that TSO is not supported will be printed. But TSO is supported by VF ixgbe NICs. We should add TSO to the capability flag, so, we will not see the wrong prompt. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe

[dpdk-dev] [PATCH 0/6] Support new flow director modes on Intel x550 NIC

2015-09-25 Thread Wenzhuo Lu
. Now, only x550 supports these 2 modes. We should not use the new mode on other NICs. If so, the ports will not be initialized successfully. Wenzhuo Lu (6): lib/librte_ether: modify the structures for fdir new modes app/testpmd: initialize the new fields for fdir mask app/testpmd: new fdir

[dpdk-dev] [PATCH 1/6] lib/librte_ether: modify the structures for fdir new modes

2015-09-25 Thread Wenzhuo Lu
Define the new modes and modify the filter and mask structure for the mac vlan and cloud modes. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_eth_ctrl.h | 68 ++--- 1 file changed, 50 insertions(+), 18 deletions(-) diff --git a/lib/librte_ether

[dpdk-dev] [PATCH 2/6] app/testpmd: initialize the new fields for fdir mask

2015-09-25 Thread Wenzhuo Lu
When a port is enabled, there're default values for the parameters of fdir mask. For the new parameters, the default values also need to be set. Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd

[dpdk-dev] [PATCH 3/6] app/testpmd: new fdir modes for testpmd parameter

2015-09-25 Thread Wenzhuo Lu
For testpmd CLI's parameter pkt-filter-mode, there're new values supported for fdir new modes, perfect-mac-vlan, perfect-cloud. The mac vlan and cloud modes can only be used in perfect match mode. Signed-off-by: Wenzhuo Lu --- app/test-pmd/parameters.c | 7 ++- 1 file changed, 6 insertions

[dpdk-dev] [PATCH 4/6] app/testpmd: modify the output of CLI, show port fdir

2015-09-25 Thread Wenzhuo Lu
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the supported flow type is meaningless for mac vlan and cloud modes. So, we output different info for different mode. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH 5/6] app/testpmd: modify and add fdir filter and mask CLIs for new modes

2015-09-25 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 293 ++--- 1 file changed, 278 insertions(+), 15 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0f8f48f..7fbd83b 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd

[dpdk-dev] [PATCH 6/6] ixgbe: implementation for fdir new modes' config

2015-09-25 Thread Wenzhuo Lu
Implement the new CLIs for fdir mac vlan and cloud modes, including flow_director_filter and flow_director_mask. Set the mask of fdir. Add, delete or update the entities of filter. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.h | 3 + drivers/net/ixgbe/ixgbe_fdir.c | 241

[dpdk-dev] [PATCH 0/4] RSS enhancement on Intel x550 NIC

2015-09-28 Thread Wenzhuo Lu
This patch set implements the RSS enhancement on x550. The enhancement includes, the PF RSS redirection table is enlarged from 128 entries to 512 entries, the VF doesn't share the same registers with PF and per VF RSS redirection table is provided. Wenzhuo Lu (4): ixgbe: 512 entries RSS table

[dpdk-dev] [PATCH 1/4] ixgbe: 512 entries RSS table on x550

2015-09-28 Thread Wenzhuo Lu
. This patch configs the entries beyond 128 on x550 to let RSS work well, and also update the query and update functions to support 512 entries. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 106 ++- drivers/net/ixgbe/ixgbe_rxtx.c | 18

[dpdk-dev] [PATCH 2/4] ixgbe: VF RSS config on x550

2015-09-28 Thread Wenzhuo Lu
-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_rxtx.c | 111 +++-- 1 file changed, 108 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index a746ae7..4a2d24a 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers

[dpdk-dev] [PATCH 3/4] ixgbe: VF RSS hash query and update

2015-09-28 Thread Wenzhuo Lu
' behavior change without being noticed. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 + drivers/net/ixgbe/ixgbe_ethdev.h | 6 +++ drivers/net/ixgbe/ixgbe_rxtx.c | 95 3 files changed, 103 insertions(+) diff --git a/drivers/net/ixgbe

[dpdk-dev] [PATCH 4/4] ixgbe: VF RSS reta query and update

2015-09-28 Thread Wenzhuo Lu
and other VF NICs' behavior change without being noticed. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 103 +++ 1 file changed, 103 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 5e50ee6

[dpdk-dev] [PATCH v2 0/6] Support new flow director modes on Intel x550 NIC

2015-09-29 Thread Wenzhuo Lu
masked. Now, only x550 supports these 2 modes. We should not use the new mode on other NICs. If so, the ports will not be initialized successfully. V2: Change the word 'cloud' to 'tunnel' change 'tni_vni' to 'tunnel_id' Wenzhuo Lu (6): lib/librte_ether: modify the structures for fdir new modes app

[dpdk-dev] [PATCH v2 1/6] lib/librte_ether: modify the structures for fdir new modes

2015-09-29 Thread Wenzhuo Lu
Define the new modes and modify the filter and mask structures for the mac vlan and tunnel modes. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_eth_ctrl.h | 69 ++--- 1 file changed, 51 insertions(+), 18 deletions(-) diff --git a/lib/librte_ether

[dpdk-dev] [PATCH v2 2/6] app/testpmd: initialize the new fields for fdir mask

2015-09-29 Thread Wenzhuo Lu
When a port is enabled, there're default values for the parameters of fdir mask. For the new parameters, the default values also need to be set. Signed-off-by: Wenzhuo Lu --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd

[dpdk-dev] [PATCH v2 3/6] app/testpmd: new fdir modes for testpmd parameter

2015-09-29 Thread Wenzhuo Lu
For testpmd CLI's parameter pkt-filter-mode, there're new values supported for fdir new modes, perfect-mac-vlan, perfect-tunnel. Signed-off-by: Wenzhuo Lu --- app/test-pmd/parameters.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/parameters.c b/app/test

[dpdk-dev] [PATCH v2 4/6] app/testpmd: modify the output of the CLI show port fdir

2015-09-29 Thread Wenzhuo Lu
There're fdir mask and supported flow type in the output of the CLI, show port fdir. But not every parameter has meaning for all the fdir modes, and the supported flow type is meaningless for mac vlan and tunnel modes. So, we output different thing for different mode. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH v2 5/6] app/testpmd: modify and add fdir filter and mask CLIs for new modes

2015-09-29 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 293 ++--- 1 file changed, 278 insertions(+), 15 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0f8f48f..864b479 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd

[dpdk-dev] [PATCH] doc: update release notes for e1000 base code update

2015-11-02 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_2.rst | 110 +++ 1 file changed, 110 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index cf510e9..dc03905 100644 --- a/doc/guides/rel_notes

[dpdk-dev] [PATCH] app/testpmd: fix wrong fdir help and doc

2015-11-06 Thread Wenzhuo Lu
After implementing the fdir new modes for x550, the CLIs are modified. Forgot to update the related help info and doc. Fixes: 53b2bb9b7ea7 ("app/testpmd: new flow director commands") Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 35 +++

[dpdk-dev] [PATCH 00/17] Update ixgbe base code

2015-11-20 Thread Wenzhuo Lu
is not updated for the target of this patch is R2.3. Send these patchs in case someone may hit related issues on new platforms. Wenzhuo Lu (17): ixgbe/base: update README ixgbe/base: avoid needless PHY access on copper phys ixgbe/base: do not wait for signature rule addition ixgbe/base

[dpdk-dev] [PATCH 02/17] ixgbe/base: avoid needless PHY access on copper phys

2015-11-20 Thread Wenzhuo Lu
Avoid a needless PHY access on copper phys to save the 10ms wait time for each PHY access. A helper function is introduced to actually do the register access and process the contents. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.c | 72

[dpdk-dev] [PATCH 01/17] ixgbe/base: update README

2015-11-20 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README index cec48a6..5d66f86 100644 --- a/drivers/net/ixgbe/base/README +++ b/drivers/net/ixgbe/base/README

[dpdk-dev] [PATCH 03/17] ixgbe/base: do not wait for signature rule addition

2015-11-20 Thread Wenzhuo Lu
the return of the function to void, since it has no meaningful return value. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_82599.c | 19 ++- drivers/net/ixgbe/base/ixgbe_api.h | 8 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH 04/17] ixgbe/base: use mvals values instead of defines

2015-11-20 Thread Wenzhuo Lu
This patch changes code to use registers offsets stored in mvals table instead of values defined statically. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_82599.c | 4 +-- drivers/net/ixgbe/base/ixgbe_common.c | 58 +-- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 05/17] ixgbe/base: add Single-port Sage Pond device ID

2015-11-20 Thread Wenzhuo Lu
Adds a new Sage Pond device X550T1. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_api.c| 1 + drivers/net/ixgbe/base/ixgbe_common.c | 1 + drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 4 ++-- 4 files changed, 5 insertions(+), 2 deletions

[dpdk-dev] [PATCH 06/17] ixgbe/base: remove driver config of KX4 PHY

2015-11-20 Thread Wenzhuo Lu
The KX4 PHY will be configured by the NVM image. The driver had been overwriting this config. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.c | 2 +- drivers/net/ixgbe/base/ixgbe_type.h | 11 --- drivers/net/ixgbe/base/ixgbe_x550.c | 39

[dpdk-dev] [PATCH 07/17] ixgbe/base: add Flow Control Ethertype to ETQF filter list

2015-11-20 Thread Wenzhuo Lu
This patch adds the flow control ethertype to the defines for the ETQF filter list. This only adds the define. Each driver can add this ethertype to the filter. This is needed to prevent denial of service by malicious VFs sending out flow control packets. Signed-off-by: Wenzhuo Lu --- drivers

[dpdk-dev] [PATCH 14/17] ixgbe/base: add new iXFI configuration helper function

2015-11-20 Thread Wenzhuo Lu
This patch should allow native SPI SFP+ to work as we understand it now. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 86 ++--- 1 file changed, 52 insertions(+), 34 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers

[dpdk-dev] [PATCH 15/17] ixgbe/base: prevent KR PHY reset in init

2015-11-20 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 79 +++-- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 6b27234..4ca7998 100644 --- a/drivers

[dpdk-dev] [PATCH 16/17] ixgbe/base: new defines for FW

2015-11-20 Thread Wenzhuo Lu
This patch addes some new defines for FW, and includes some minor change. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_common.c | 5 + drivers/net/ixgbe/base/ixgbe_phy.c| 4 +--- drivers/net/ixgbe/base/ixgbe_type.h | 39 +++ drivers/net

[dpdk-dev] [PATCH] e1000: fix VF mac address issue

2015-11-27 Thread Wenzhuo Lu
If use DPDK PF + DPDK VF on igb NICs, we find the MAC address of VF port is always 0. Because we forget to give it a value if this MAC address is not assigned by PF. This patch'll assign a random MAC address to igb VF port as ixgbe does. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000

[dpdk-dev] [PATCH] ixgbe: workaround for Security issue in SR-IOV mode

2015-10-10 Thread Wenzhuo Lu
In SR-IOV mode a VF sending LFC or PFC would throttle the entire port. The workaround is to add a filter to drop pause frames from VFs from sending pause frames. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_pf.c | 43 +++ 1 file changed, 43

[dpdk-dev] [PATCH v3] ixgbe: support link speed auto-neg on x550em_x

2016-02-26 Thread Wenzhuo Lu
-by: Wenzhuo Lu Acked-by: Shaopeng He --- doc/guides/rel_notes/release_16_04.rst | 8 +++ drivers/net/ixgbe/ixgbe_ethdev.c | 38 ++ drivers/net/ixgbe/ixgbe_ethdev.h | 1 + 3 files changed, 47 insertions(+) diff --git a/doc/guides/rel_notes/release_16_04.rst

[dpdk-dev] [PATCH v2] doc: Malicious Driver Detection not supported by ixgbe

2016-02-26 Thread Wenzhuo Lu
Announce that Malicious Driver Detection is not supported. V2: *Rework the words. Signed-off-by: Wenzhuo Lu --- doc/guides/nics/ixgbe.rst | 20 doc/guides/rel_notes/release_16_04.rst | 23 +++ 2 files changed, 43 insertions(+) diff --git

[dpdk-dev] [PATCH v4 0/5] Support VxLAN & NVGRE checksum off-load on X550

2016-02-26 Thread Wenzhuo Lu
KSUM_BAD but not add a new one. * Correct the tunnel len for TX, and remove the useless out_l2_len. * Don't set the tunnel type for TX, and remove the unused ol_flag_nvgre. V4: * Fix the issue that not setting the MAC length correctly. Wenzhuo Lu (5): lib/librte_ether: change function name o

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

2016-02-26 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. Signed-off-by: Wenzhuo Lu --- do

[dpdk-dev] [PATCH] ixgbe: support multicast promiscuous mode on VF

2016-01-04 Thread Wenzhuo Lu
promiscuous mode. If use dpdk PF + dpdk VF, better make sure PF driver is the same version as VF. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_mbx.h | 4 +++ drivers/net/ixgbe/ixgbe_ethdev.c | 66 ++ drivers/net/ixgbe/ixgbe_pf.c | 65

[dpdk-dev] [PATCH 0/4] Support VxLAN & NVGRE checksum off-load on X550

2016-01-11 Thread Wenzhuo Lu
This patch set add the VxLAN & NVGRE checksum off-load support. Both RX and TX checksum off-load can be used for VxLAN & NVGRE. And the VxLAN port can be set, it's implemented in this patch set either. Wenzhuo Lu (4): ixgbe: support UDP tunnel add/del ixgbe: support VxLAN & NVGRE

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

2016-01-11 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 --- drivers/net/ixgbe/ixgbe_rxtx.c | 11 ++- lib/librte_mbuf/rte_mbuf.c | 1 + lib/librte_mbuf/rte_mbuf.h | 1 + 3 files changed

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

2016-01-11 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. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_rxtx.c | 52 ++ dri

[dpdk-dev] [PATCH 4/4] doc: update release note for VxLAN & NVGRE checksum off-load support

2016-01-11 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_3.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index 99de186..8a8f878 100644 --- a/doc/guides/rel_notes/release_2_3.rst +++ b/doc/guides

[dpdk-dev] [PATCH 1/4] ixgbe: support UDP tunnel add/del

2016-01-11 Thread Wenzhuo Lu
VxLAN off-load. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 93 1 file changed, 93 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 4c4c6df..381cbad 100644 --- a/drivers/net/ixgbe

[dpdk-dev] [PATCH v2 0/6] Support VxLAN & NVGRE checksum off-load on X550

2016-01-14 Thread Wenzhuo Lu
This patch set add the VxLAN & NVGRE checksum off-load support. Both RX and TX checksum off-load can be used for VxLAN & NVGRE. And the VxLAN port can be set, it's implemented in this patch set either. Wenzhuo Lu (6): lib/librte_ether: change function name of tunnel port config i40e

[dpdk-dev] [PATCH v2 1/6] lib/librte_ether: change function name of tunnel port config

2016-01-14 Thread Wenzhuo Lu
release after an ABI change announcement. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 6 +++-- examples/tep_termination/vxlan_setup.c | 2 +- lib/librte_ether/rte_ethdev.c | 45 ++ lib/librte_ether/rte_ethdev.h | 18

[dpdk-dev] [PATCH v2 2/6] i40e: rename the tunnel port config functions

2016-01-14 Thread Wenzhuo Lu
As the names of tunnel port config functions are not accurate, change them from tunnel_add/del to tunnel_port_add/del. And support both the old and new rte ops. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c | 22 -- 1 file changed, 12 insertions(+), 10

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

2016-01-14 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 --- drivers/net/ixgbe/ixgbe_rxtx.c | 11 ++- lib/librte_mbuf/rte_mbuf.c | 1 + lib/librte_mbuf/rte_mbuf.h | 1 + 3 files changed

[dpdk-dev] [PATCH v2 3/6] ixgbe: support UDP tunnel port config

2016-01-14 Thread Wenzhuo Lu
using VxLAN off-load. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 95 1 file changed, 95 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 4c4c6df..c04edde 100644 --- a/drivers/net/ixgbe

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

2016-01-14 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. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_rxtx.c | 52 ++ dri

[dpdk-dev] [PATCH v2 6/6] doc: update release note for VxLAN & NVGRE checksum off-load support

2016-01-14 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_3.rst | 8 1 file changed, 8 insertions(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index 99de186..5dce7fb 100644 --- a/doc/guides/rel_notes/release_2_3.rst +++ b/doc/guides

[dpdk-dev] [PATCH 00/12] update ixgbe base driver

2016-01-19 Thread Wenzhuo Lu
speed-setting *use link instead of I2C combined abstraction Wenzhuo Lu (12): ixgbe/base: update readme ixgbe/base: add new devices and mac type ixgeb/base: use PHY token for X550EM_a ixgbe/base: set VF mac address only when acked by PF ixgbe/base: always turn PHY power on when requested

[dpdk-dev] [PATCH 01/12] ixgbe/base: update readme

2016-01-19 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README index 5d66f86..caa2664 100644 --- a/drivers/net/ixgbe/base/README +++ b/drivers/net/ixgbe/base/README

[dpdk-dev] [PATCH 02/12] ixgbe/base: add new devices and mac type

2016-01-19 Thread Wenzhuo Lu
Add new X550EM_a devices and their mac types, X550EM_a and X550EM_a_vf. Update the code to use the new devices and mac types. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_82599.c | 4 +- drivers/net/ixgbe/base/ixgbe_api.c| 23 + drivers/net/ixgbe/base/ixgbe_common.c

[dpdk-dev] [PATCH 03/12] ixgeb/base: use PHY token for X550EM_a

2016-01-19 Thread Wenzhuo Lu
Use the PHY token for PHY access on X550EM_a. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 114 drivers/net/ixgbe/base/ixgbe_x550.h | 2 + 2 files changed, 116 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b

[dpdk-dev] [PATCH 04/12] ixgbe/base: set VF mac address only when acked by PF

2016-01-19 Thread Wenzhuo Lu
This patch resolves an issue where VF mac address is zeroed out in cases where the VF driver is loaded while the PF interface is down. The solution is to only set it when we get an ACK from the PF. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_vf.c | 4 +++- 1 file changed, 3

[dpdk-dev] [PATCH 05/12] ixgbe/base: always turn PHY power on when requested

2016-01-19 Thread Wenzhuo Lu
Instead of not defining the callback for set_phy_power when manageability is enabled, put the check in the set_phy_power function so that only turning the power off is conditional on management, but not turning the PHY on. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.c | 3

[dpdk-dev] [PATCH 06/12] ixgbe/base: add definition of a register for mac SGMII busy

2016-01-19 Thread Wenzhuo Lu
to map out which reads need to wait for which writes. So we should wait when anything is marked as "busy". Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ix

[dpdk-dev] [PATCH 08/12] ixgbe/base: remove duplicate setting for fdir no match drop

2016-01-19 Thread Wenzhuo Lu
behavior. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_82599.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_82599.c b/drivers/net/ixgbe/base/ixgbe_82599.c index 85114e9..154c1f1 100644 --- a/drivers/net/ixgbe/base/ixgbe_82599.c +++ b/drivers/net

[dpdk-dev] [PATCH 09/12] ixgbe/base: consolidate MDIO speed-setting

2016-01-19 Thread Wenzhuo Lu
than one place, make a function for it so it will always be done correctly. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 35 --- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net

[dpdk-dev] [PATCH 11/12] ixgbe: support new devices and mac types

2016-01-19 Thread Wenzhuo Lu
Add the support for new devices and mac types. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_bypass_api.h| 1 + drivers/net/ixgbe/ixgbe_ethdev.c| 12 ++-- drivers/net/ixgbe/ixgbe_fdir.c | 10 +++--- drivers/net/ixgbe/ixgbe_pf.c

[dpdk-dev] [PATCH 07/12] ixgbe/base: support fuse for both x550em_x V1 and V2

2016-01-19 Thread Wenzhuo Lu
Only x550em_x V1 was supported before. Now V2 is supported. A mask for V1 and V2 is defined and used to support both. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- drivers/net/ixgbe/base/ixgbe_x550.c | 19 +++ 2 files changed, 12 insertions(+), 9

[dpdk-dev] [PATCH 12/12] doc: update release note for ixgbe base code update

2016-01-19 Thread Wenzhuo Lu
Update the release note. Also include the update for the last time of the ixgbe base code update. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_3.rst | 54 1 file changed, 54 insertions(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b

[dpdk-dev] [PATCH 10/12] ixgbe/base: use link instead of I2C combined abstraction

2016-01-19 Thread Wenzhuo Lu
ons involved in combined I2C accesses were moved from ixgbe_phy.c to ixgbe_x550.c. The underlying functions that carry out the combined I2C accesses were left in ixgbe_phy.c because they share some functions with other I2C methods. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe

[dpdk-dev] [PATCH 0/8] support E-tag offloading and forwarding on Intel X550 NIC

2016-01-29 Thread Wenzhuo Lu
This patch set adds the support of E-tag offloading and forwarding on X550. The offloading means E-tag can be inserted and stripped by HW. And E-tag packets can be recognized and forwarded to specific pools based on GRP and E-CID_base in E-tag. Wenzhuo Lu (8): ixgbe: select pool by MAC when

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

2016-01-29 Thread Wenzhuo Lu
On X550, as required by datasheet, E-tag packets are not expected when double VLAN are used. So modify the register PFVTCTL after enabling double VLAN to select pool by MAC but not MAC or E-tag. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 10 ++ 1 file changed, 10

[dpdk-dev] [PATCH 2/8] lib/librte_ether: support l2 tunnel config

2016-01-29 Thread Wenzhuo Lu
. Enabling/disabling a tunnel support means enabling/disabling the ability of parsing the specific type of tunnel. This ability should be enabled before we enable filtering, forwarding, offloading for this specific type of tunnel. Only support e-tag tunnel now. Signed-off-by: Wenzhuo Lu --- lib

[dpdk-dev] [PATCH 3/8] ixgbe: support l2 tunnel config

2016-01-29 Thread Wenzhuo Lu
Add support of l2 tunnel configuration. Support modifying ether type of a type of l2 tunnel. Support enabling and disabling the support of a type of l2 tunnel. Only E-tag tunnel is supported now. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 140

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

2016-01-29 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 --- app/test-pmd/cmdline.c | 259 + 1 file changed, 259 insertions(+) diff --git a/app/test-pmd

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

2016-01-29 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 --- app/test-pmd/cmdline.c | 340 + 1 file changed

[dpdk-dev] [PATCH 8/8] doc: add release note for E-tag

2016-01-29 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_3.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index 99de186..16bd80b 100644 --- a/doc/guides/rel_notes/release_2_3.rst +++ b/doc/guides

[dpdk-dev] [PATCH 5/8] lib/librte_ether: support new l2 tunnel operation

2016-01-29 Thread Wenzhuo Lu
Add functions to support the new l2 tunnel operation. 1, Insertion and stripping for l2 tunnel tag. 2, Forwarding the packets to a pool based on l2 tunnel tag. Signed-off-by: Wenzhuo Lu --- lib/librte_ether/rte_ethdev.c | 178 lib/librte_ether/rte_ethdev.h

[dpdk-dev] [PATCH 6/8] ixgbe: support l2 tunnel operation

2016-01-29 Thread Wenzhuo Lu
Add support of l2 tunnel operation. Support enabling/disabling l2 tunnel tag insertion/stripping. Support enabling/disabling l2 tunnel packets forwarding. Support adding/deleting forwarding rules for l2 tunnel packets. Only support E-tag now. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe

[dpdk-dev] [PATCH] ixgbe: fix x550 VF tx issue

2016-01-29 Thread Wenzhuo Lu
e's another way, disabling MDD in PF kernel driver. Like this, >insmod ixgbe.ko MDD=0,0 Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_3.rst | 12 drivers/net/ixgbe/ixgbe_rxtx.c | 16 ++-- drivers/net/ixgbe/ixgbe_rxtx.h | 3 ++- lib/librte_ethe

<    1   2   3   4   5   >