[dpdk-dev] [PATCH v4] net/iavf: fix adding multicast MAC address

2020-10-15 Thread Guinan Sun
t;net/iavf: support multicast configuration") Signed-off-by: Guinan Sun Tested-by: Peng Yuan Acked-by: Beilei Xing --- v4: * modify commit message * add Acked-by v3: * modify commit message v2: * modify the variable name --- drivers/net/iavf/iavf_ethdev.c | 30 ++---

[dpdk-dev] [PATCH v3] net/iavf: fix adding multicast MAC address

2020-10-15 Thread Guinan Sun
("net/iavf: support multicast configuration") Signed-off-by: Guinan Sun Tested-by: Peng Yuan --- v3: * modify commit message v2: * modify the variable name --- drivers/net/iavf/iavf_ethdev.c | 30 ++ drivers/net/iavf/iavf_vchnl.c | 3 --- 2 files c

[dpdk-dev] [PATCH v2] net/iavf: fix adding multicast MAC address

2020-10-15 Thread Guinan Sun
pport multicast configuration") Signed-off-by: Guinan Sun Tested-by: Peng Yuan --- v2: * modify the variable name --- drivers/net/iavf/iavf_ethdev.c | 30 ++ drivers/net/iavf/iavf_vchnl.c | 3 --- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/driver

[dpdk-dev] [PATCH] net/iavf: fix adding multicast MAC address

2020-10-14 Thread Guinan Sun
pport multicast configuration") Signed-off-by: Guinan Sun --- drivers/net/iavf/iavf_ethdev.c | 30 ++ drivers/net/iavf/iavf_vchnl.c | 3 --- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethd

[dpdk-dev] [PATCH] net/i40e: fix recreate a flexible FDIR rule failed

2020-09-15 Thread Guinan Sun
This patch fixes the failure of recreate flexible fdir rule. The root cause is that the flex_mask_flag is not reset during flow destroy and flow flush. Fixes: 6ced3dd72f5f ("net/i40e: support flexible payload parsing for FDIR") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun --- driver

[dpdk-dev] [PATCH v2 6/7] net/i40e/base: fix PHY config param when enabling EEE

2020-09-11 Thread Guinan Sun
. Fixes: c61bcb0fe1b0 ("net/i40e/base: support Energy Efficient Ethernet") Cc: sta...@dpdk.org Signed-off-by: Galazka Krzysztof Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/d

[dpdk-dev] [PATCH v2 7/7] net/i40e/base: update version

2020-09-11 Thread Guinan Sun
Update base code version in readme. Signed-off-by: Guinan Sun --- drivers/net/i40e/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/README b/drivers/net/i40e/base/README index 58174d472..6af299311 100644 --- a/drivers/net/i40e/base/README

[dpdk-dev] [PATCH v2 5/7] net/i40e/base: add EEE LPI status check for X722 adapters

2020-09-11 Thread Guinan Sun
Add reading LPI (low power idle) status for supported X722 devices. If adapter's PHY supports EEE in current mode (device ID + link speed), LPI status is read from PHY Clause 45 PCS status register. Signed-off-by: Dawid Lukwinski Signed-off-by: Guinan Sun --- drivers/net/i40e

[dpdk-dev] [PATCH v2 4/7] net/i40e/base: fix Rx only for unicast promisc on VLAN

2020-09-11 Thread Guinan Sun
other VFs could listen to unicast tx traffic of other VFs. Fixes: 8db9e2a1b232 ("i40e: base driver") Cc: sta...@dpdk.org Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 2 +- drivers/net/i40e/base/i40e_common.

[dpdk-dev] [PATCH v2 3/7] net/i40e/base: add support for minimum rollback revision

2020-09-11 Thread Guinan Sun
Add support for minimum rollback revision. Signed-off-by: Przemyslaw Ciesielski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 18 +++ drivers/net/i40e/base/i40e_common.c | 29 + drivers/net/i40e/base/i40e_prototype.h | 4

[dpdk-dev] [PATCH v2 1/7] net/i40e/base: update FW API version

2020-09-11 Thread Guinan Sun
Update FW increment API version for: -NVM FW Lockdown Feature for legacy devices -Security Version Opt-In Signed-off-by: Jacek Naczyk Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH v2 2/7] net/i40e/base: fix missing function header arguments

2020-09-11 Thread Guinan Sun
Fix them by adding the argument descriptions. Fixes: 0d9d27bb8684 ("i40e/base: prepare local LLDP MIB in TLV") Cc: sta...@dpdk.org Signed-off-by: Jesse Brandeburg Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_dcb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[dpdk-dev] [PATCH v2 0/7] update i40e base code

2020-09-11 Thread Guinan Sun
90e9acd ("i40e-shared: enable pipe monitor thresholds") Acked-by: Qi Zhang --- v2: * Remove two useless patches for dpdk. * Modify commit message. Guinan Sun (7): net/i40e/base: update FW API version net/i40e/base: fix missing function header arguments net/i40e/base: add support

[dpdk-dev] [PATCH v2] net/ice: fix flow validation for unsupported patterns

2020-09-07 Thread Guinan Sun
rrects the parser selection issue. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun --- v2: * Add parser selector in pipline-mode. --- drivers/net/ice/ice_switch_filter.c | 100 ++-- 1 file changed, 81 inserti

[dpdk-dev] [PATCH 9/9] net/i40e/base: update version

2020-09-04 Thread Guinan Sun
Update base code version in readme. Signed-off-by: Guinan Sun --- drivers/net/i40e/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/README b/drivers/net/i40e/base/README index 58174d472..6af299311 100644 --- a/drivers/net/i40e/base/README

[dpdk-dev] [PATCH 5/9] net/i40e/base: add support for minimum rollback revision

2020-09-04 Thread Guinan Sun
Add support for minimum rollback revision. Signed-off-by: Przemyslaw Ciesielski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 18 +++ drivers/net/i40e/base/i40e_common.c | 29 + drivers/net/i40e/base/i40e_prototype.h | 4

[dpdk-dev] [PATCH 8/9] net/i40e/base: fix PHY config param when enabling EEE

2020-09-04 Thread Guinan Sun
. Fixes: c61bcb0fe1b0 ("net/i40e/base: support Energy Efficient Ethernet") Cc: sta...@dpdk.org Signed-off-by: Galazka Krzysztof Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/d

[dpdk-dev] [PATCH 6/9] net/i40e/base: fix Rx only for unicast promisc on VLAN

2020-09-04 Thread Guinan Sun
other VFs could listen to unicast tx traffic of other VFs. Fixes: 8db9e2a1b232 ("i40e: base driver") Cc: sta...@dpdk.org Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 2 +- drivers/net/i40e/base/i40e_common.

[dpdk-dev] [PATCH 7/9] net/i40e/base: add EEE LPI status check for X722 adapters

2020-09-04 Thread Guinan Sun
Add reading LPI (low power idle) status for supported X722 devices. If adapter's PHY supports EEE in current mode (device ID + link speed), LPI status is read from PHY Clause 45 PCS status register. Signed-off-by: Dawid Lukwinski Signed-off-by: Guinan Sun --- drivers/net/i40e

[dpdk-dev] [PATCH 3/9] net/i40e/base: enable pipe monitor thresholds

2020-09-04 Thread Guinan Sun
Enable several registers and defines for software controlled DCB, particularly around the receive pipe monitor configuration which is necessary to help ports achieve the right throughput under load in several different configurations. Signed-off-by: Jesse Brandeburg Signed-off-by: Guinan Sun

[dpdk-dev] [PATCH 2/9] net/i40e/base: update FW API version

2020-09-04 Thread Guinan Sun
Update FW increment API version. Signed-off-by: Jacek Naczyk Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h index

[dpdk-dev] [PATCH 1/9] net/i40e/base: add VLAN field for input set

2020-09-04 Thread Guinan Sun
Add VLAN bit used during flow director programming, as a part of input set for HW. Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e

[dpdk-dev] [PATCH 4/9] net/i40e/base: fix missing function header arguments

2020-09-04 Thread Guinan Sun
Fix them by adding the argument descriptions. Fixes: 0d9d27bb8684 ("i40e/base: prepare local LLDP MIB in TLV") Cc: sta...@dpdk.org Signed-off-by: Jesse Brandeburg Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_dcb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[dpdk-dev] [PATCH 0/9] update i40e base code

2020-09-04 Thread Guinan Sun
PHY configuration parameters when enabling EEE") The following commits are ignored. 5b7d5a698092 ("i40e-shared: use linux packing style") f16fa495c503 ("i40e-shared: Fix compilation issue with __packed") Guinan Sun (9): net/i40e/base: add VLAN field for input set net/i40e/

[dpdk-dev] [PATCH v5] net/i40e: fix link status

2020-09-03 Thread Guinan Sun
If the PF driver supports the new speed reporting capabilities then use link_event_adv instead of link_event to get the speed. Fixes: 2a73125b7041 ("i40evf: fix link info update") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun Acked-by: Jeff Guo Tested-by: Jiaqi Min --- v5: * code

[dpdk-dev] [PATCH v3 15/15] net/i40e/base: update version

2020-09-02 Thread Guinan Sun
Update base code version in readme. Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/README b/drivers/net/i40e/base/README index 6baca4360..6af299311 100644 --- a/drivers/net

[dpdk-dev] [PATCH v3 14/15] net/i40e/base: fix PHY config param when enabling EEE

2020-09-02 Thread Guinan Sun
. Fixes: c61bcb0fe1b0 ("net/i40e/base: support Energy Efficient Ethernet") Cc: sta...@dpdk.org Signed-off-by: Galazka Krzysztof Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/base/i40e_common.c b/d

[dpdk-dev] [PATCH v3 11/15] net/i40e/base: add support for Minimum Rollback Revision

2020-09-02 Thread Guinan Sun
add support for Minimum Rollback Revision. Signed-off-by: Przemyslaw Ciesielski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 18 +++ drivers/net/i40e/base/i40e_common.c | 29 + drivers/net/i40e/base/i40e_prototype.h | 4

[dpdk-dev] [PATCH v3 13/15] net/i40e/base: add EEE LPI status check for X722 adapters

2020-09-02 Thread Guinan Sun
Add reading LPI (low power idle) status for supported X722 devices. If adapter's PHY supports EEE in current mode (device ID + link speed), LPI status is read from PHY Clause 45 PCS status register. Signed-off-by: Dawid Lukwinski Signed-off-by: Guinan Sun --- drivers/net/i40e

[dpdk-dev] [PATCH v3 12/15] net/i40e/base: fix Rx only mode for unicast promisc on VLAN

2020-09-02 Thread Guinan Sun
other VFs could listen to unicast tx traffic of other VFs. Fixes: 8db9e2a1b232 ("i40e: base driver") Cc: sta...@dpdk.org Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 2 +- drivers/net/i40e/base/i40e_common.

[dpdk-dev] [PATCH v3 09/15] net/i40e/base: enable pipe monitor thresholds

2020-09-02 Thread Guinan Sun
Enable several registers and defines for software controlled DCB, particularly around the receive pipe monitor configuration which is necessary to help ports achieve the right throughput under load in several different configurations. Signed-off-by: Jesse Brandeburg Signed-off-by: Guinan Sun

[dpdk-dev] [PATCH v3 08/15] net/i40e/base: add VLAN field for input set

2020-09-02 Thread Guinan Sun
Add VLAN bit used during flow director programming, as a part of input set for HW. Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e

[dpdk-dev] [PATCH v3 10/15] net/i40e/base: fix missing function header arguments

2020-09-02 Thread Guinan Sun
Some arguments in function headers were forgotten, and found by automated testing. Fix them by adding the argument descriptions. Fixes: 0d9d27bb8684 ("i40e/base: prepare local LLDP MIB in TLV") Cc: sta...@dpdk.org Signed-off-by: Jesse Brandeburg Signed-off-by: Guinan Sun --- driver

[dpdk-dev] [PATCH v3 07/15] net/i40e/base: replace AQ command for NVM update

2020-09-02 Thread Guinan Sun
Add AQ command "NVM update in process" to replace the original AQ command "NVM progress". Signed-off-by: Jaroslaw Ilgiewicz Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base/i40e_adminq_cmd.h | 12 +- drivers/net/i40e/base/i4

[dpdk-dev] [PATCH v3 05/15] net/i40e/base: fix possible uninitialized variable

2020-09-02 Thread Guinan Sun
Fix possible uninitialized variable in i40e in the i40e_get_lpi_counters function. Fixes: 429bdc0cd967 ("net/i40e/base: add function to read LPI counters") Cc: sta...@dpdk.org Signed-off-by: Adam Ludkiewicz Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base/i40

[dpdk-dev] [PATCH v3 06/15] net/i40e/base: support unused ports disabling

2020-09-02 Thread Guinan Sun
This patch adds support for disabling unused ports. Signed-off-by: Damian Milosek Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base/i40e_adminq_cmd.h | 1 + drivers/net/i40e/base/i40e_common.c | 6 ++ drivers/net/i40e/base/i40e_type.h | 1 + 3 files changed

[dpdk-dev] [PATCH v3 04/15] net/i40e/base: update FW API version to 1.12

2020-09-02 Thread Guinan Sun
Upcoming FW increment API version to 1.12 due to new bit and new fields in the Replace Cloud Filters AQ command. Signed-off-by: Jacek Naczyk Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base/i40e_adminq_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH v3 03/15] net/i40e/base: add new custom cloud filter types

2020-09-02 Thread Guinan Sun
This patch adds the new filter types needed for custom cloud filters. These custom cloud filters will route traffic to VFs based on the dst IP for both tunneled and non-tunneled packets. Signed-off-by: Harshitha Ramamurthy Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base

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

2020-09-02 Thread Guinan Sun
shared: use linux packing style") f16fa495c503 ("i40e-shared: Fix compilation issue with __packed") Guinan Sun (15): net/i40e/base: enable FEC on/off flag setting for X722 net/i40e/base: add PTYPE definition net/i40e/base: add new custom cloud filter types net/i40e/base: upda

[dpdk-dev] [PATCH v3 01/15] net/i40e/base: enable FEC on/off flag setting for X722

2020-09-02 Thread Guinan Sun
Starting with API version 1.10 firmware for X722 devices has ability to change FEC settings in PHY. Code added in this patch checks API version and sets appropriate capability flag. Signed-off-by: Dawid Lukwinski Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base

[dpdk-dev] [PATCH v3 02/15] net/i40e/base: add PTYPE definition

2020-09-02 Thread Guinan Sun
Add I40E_RX_PTYPE_PARSER_ABORTED definition, so i40e driver will know opcode for parser aborted packets. Without this definition driver would have to rely on magic numbers. Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- drivers/net/i40e/base/i40e_type.h

[dpdk-dev] [PATCH v4] net/i40e: fix link status

2020-09-02 Thread Guinan Sun
If the PF driver supports the new speed reporting capabilities then use link_event_adv instead of link_event to get the speed. Fixes: 2a73125b7041 ("i40evf: fix link info update") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun Tested-by: Shougang Wang --- v4: * fix compilation issu

[dpdk-dev] [PATCH] net/ice: fix flow validation for unsupported patterns

2020-08-27 Thread Guinan Sun
rrects the parser selection issue. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun --- drivers/net/ice/ice_switch_filter.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/ice_switch_filter.

[dpdk-dev] [PATCH 7/7] net/ice: support Flex Rx desc and flow mark in SSE path

2020-08-26 Thread Guinan Sun
Support Flow Director mark ID parsing from Flex Rx descriptor in SSE path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_rxtx_vec_sse.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/net/ice/ice_rxtx_vec_sse.c b/drivers/net/ice

[dpdk-dev] [PATCH 6/7] net/ice: support Flex Rx desc and flow mark in AVX path

2020-08-26 Thread Guinan Sun
Support Flow Director mark ID parsing from Flex Rx descriptor in AVX path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_rxtx_vec_avx2.c | 64 - 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx_vec_avx2.c b/drivers/net/ice

[dpdk-dev] [PATCH 4/7] net/ice: remove devargs flow-mark-support

2020-08-26 Thread Guinan Sun
Remove devargs "flow-mark-support". Signed-off-by: Guinan Sun --- doc/guides/nics/ice.rst | 12 drivers/net/ice/ice_ethdev.c | 10 +- drivers/net/ice/ice_ethdev.h | 1 - drivers/net/ice/ice_rxtx_vec_common.h | 6 -- 4 files

[dpdk-dev] [PATCH 5/7] net/ice: add flow director enabled switch value

2020-08-26 Thread Guinan Sun
The commit adds fdir_enabled flag into ice_adapter structure to identify if fdir id is active. Rx data path can be benefit if fdir id parsing is not needed, especially in vector path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_ethdev.h | 2 ++ drivers/net/ice/ice_fdir_filter.c | 9

[dpdk-dev] [PATCH 1/7] net/ice: change RSS hash parsing in AVX path

2020-08-26 Thread Guinan Sun
From: Junyu Jiang Change RSS hash parsing from Flex Rx descriptor in AVX data path. Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_rxtx_vec_avx2.c | 98 +++-- 1 file changed, 94 insertions(+), 4 deletions(-) diff --git a/drivers/net/ice/ice_rxtx_vec_avx2.c b/drive

[dpdk-dev] [PATCH 2/7] net/ice: change RSS hash parsing in SSE path

2020-08-26 Thread Guinan Sun
From: Junyu Jiang Change RSS hash parsing from Flex Rx descriptor in SSE data path. Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_rxtx_vec_sse.c | 89 -- 1 file changed, 73 insertions(+), 16 deletions(-) diff --git a/drivers/net/ice/ice_rxtx_vec_sse.c b/drive

[dpdk-dev] [PATCH 0/7] support RXDID22 and FDID22

2020-08-26 Thread Guinan Sun
Support flexible descriptor RXDID22 and FDID offload in vPMD. Remove devargs flow-mark-support. Guinan Sun (4): net/ice: remove devargs flow-mark-support net/ice: add flow director enabled switch value net/ice: support Flex Rx desc and flow mark in AVX path net/ice: support Flex Rx desc

[dpdk-dev] [PATCH 3/7] net/ice: support flexible descriptor RxDID #22

2020-08-26 Thread Guinan Sun
From: Junyu Jiang Add structure and macro definition for flex Rx descriptor RxDID #22, and support flex Rx descriptor RxDID #22 format in normal path. Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_rxtx.c | 16 --- drivers/net/ice/ice_rxtx.h | 42 +++

[dpdk-dev] [PATCH v3] net/i40e: fix link status

2020-08-06 Thread Guinan Sun
If the PF driver supports the new speed reporting capabilities then use link_event_adv instead of link_event to get the speed. Fixes: 2a73125b7041 ("i40evf: fix link info update") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun --- v3: * request the capability for i40evf v2: * modify

[dpdk-dev] [PATCH v2] net/i40e: fix link status

2020-07-30 Thread Guinan Sun
If the PF driver supports the new speed reporting capabilities then use link_event_adv instead of link_event to get the speed. Fixes: 2a73125b7041 ("i40evf: fix link info update") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun --- v2: * Modify commit log. * Add code comments. * Dele

[dpdk-dev] [PATCH] net/i40e: fix link status

2020-07-30 Thread Guinan Sun
link status down problem occurs. This patch is used for type replacement between speed types. Fixes: 2a73125b7041 ("i40evf: fix link info update") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun --- drivers/net/i40e/base/virtchnl.h | 8 +- drivers/net/i40e/i40e_ethdev

[dpdk-dev] [PATCH v2 6/8] net/i40e/base: support unused ports disabling

2020-07-26 Thread Guinan Sun
This patch adds support for disabling unused ports. Signed-off-by: Damian Milosek Signed-off-by: Guinan Sun --- V2: * Modifiy title and message --- drivers/net/i40e/base/i40e_adminq_cmd.h | 1 + drivers/net/i40e/base/i40e_common.c | 6 ++ drivers/net/i40e/base/i40e_type.h | 1

[dpdk-dev] [PATCH v2 7/8] net/i40e/base: replace AQ command for NVM update

2020-07-26 Thread Guinan Sun
Add AQ command "NVM update in process" to replace the original AQ command "NVM progress". Signed-off-by: Jaroslaw Ilgiewicz Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- V2: * Add Acked-by --- drivers/net/i40e/base/i40e_adminq_cmd.h | 12 +- drivers/net/i40e/base/i4

[dpdk-dev] [PATCH v2 8/8] net/i40e/base: update version

2020-07-26 Thread Guinan Sun
Update base code version in readme. Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- V2: * Add Acked-by --- drivers/net/i40e/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/README b/drivers/net/i40e/base/README index 6baca4360..58174d472

[dpdk-dev] [PATCH v2 1/8] net/i40e/base: enable FEC on/off flag setting for X722

2020-07-26 Thread Guinan Sun
Starting with API version 1.10 firmware for X722 devices has ability to change FEC settings in PHY. Code added in this patch checks API version and sets appropriate capability flag. Signed-off-by: Dawid Lukwinski Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- V2: * Add Acked-by --- drivers

[dpdk-dev] [PATCH v2 3/8] net/i40e/base: add new custom cloud filter types

2020-07-26 Thread Guinan Sun
This patch adds the new filter types needed for custom cloud filters. These custom cloud filters will route traffic to VFs based on the dst IP for both tunneled and non-tunneled packets. Signed-off-by: Harshitha Ramamurthy Signed-off-by: Guinan Sun --- V2: * Modify the title. --- drivers/net

[dpdk-dev] [PATCH v2 4/8] net/i40e/base: update FW API version to 1.11

2020-07-26 Thread Guinan Sun
Upcoming FW increment API version to 1.11 due to new bit and new fields in the Replace Cloud Filters AQ command. Signed-off-by: Jacek Naczyk Signed-off-by: Guinan Sun --- V2: * Modify commit message. --- drivers/net/i40e/base/i40e_adminq_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[dpdk-dev] [PATCH v2 2/8] net/i40e/base: add PTYPE definition

2020-07-26 Thread Guinan Sun
Add I40E_RX_PTYPE_PARSER_ABORTED definition, so i40e driver will know opcode for parser aborted packets. Without this definition driver would have to rely on magic numbers. Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun Acked-by: Jeff Guo --- V2: * Add Acked-by --- drivers/net

[dpdk-dev] [PATCH v2 5/8] net/i40e/base: fix possible uninitialized variable

2020-07-26 Thread Guinan Sun
Fix possible uninitialized variable in i40e in the i40e_get_lpi_counters function. Fixes: 429bdc0cd967 ("net/i40e/base: add function to read LPI counters") Cc: sta...@dpdk.org Signed-off-by: Adam Ludkiewicz Signed-off-by: Guinan Sun --- V2: * Modify commit message. --- drivers/net

[dpdk-dev] [PATCH v2 0/8] update i40e base code

2020-07-26 Thread Guinan Sun
d in atomic context") a204afdc1cad ("i40e-shared: Send uc/mc commands in atomic context") d22f8cb2a111 ("i40e-shared: Send commands in atomic context") 136a7d931a45 ("i40e-shared: Fix improper preprocessor conditional") Guinan Sun (8): net/i40e/base: enable FEC on/o

[dpdk-dev] [PATCH 8/8] net/i40e/base: update version

2020-07-21 Thread Guinan Sun
Update base code version in readme. Signed-off-by: Guinan Sun --- drivers/net/i40e/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/README b/drivers/net/i40e/base/README index 6baca4360..58174d472 100644 --- a/drivers/net/i40e/base/README

[dpdk-dev] [PATCH 7/8] net/i40e/base: replace AQ command for NVM update

2020-07-21 Thread Guinan Sun
Add AQ command "NVM update in process" to replace the original AQ command "NVM progress". Signed-off-by: Jaroslaw Ilgiewicz Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 12 +- drivers/net/i40e/base/i40e_common.c | 53 +++---

[dpdk-dev] [PATCH 3/8] net/i40e/base: enable new custom cloud filters

2020-07-21 Thread Guinan Sun
This patch adds the new filter types needed for custom cloud filters. These custom cloud filters will route traffic to VFs based on the dst IP for both tunneled and non-tunneled packets. Signed-off-by: Harshitha Ramamurthy Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h

[dpdk-dev] [PATCH 4/8] net/i40e/base: update FVL FW API version to 1.11

2020-07-21 Thread Guinan Sun
Upcoming FVL FW increment API version to 1.11 due to new bit and new fields in the Replace Cloud Filters AQ command. Signed-off-by: Jacek Naczyk Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

[dpdk-dev] [PATCH 6/8] net/i40e/base: add disable unused ports capability

2020-07-21 Thread Guinan Sun
This patch adds support for "Disable Unused Ports" functionality. Signed-off-by: Damian Milosek Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq_cmd.h | 1 + drivers/net/i40e/base/i40e_common.c | 6 ++ drivers/net/i40e/base/i40e_type.h | 1 + 3 files

[dpdk-dev] [PATCH 2/8] net/i40e/base: add PTYPE definition

2020-07-21 Thread Guinan Sun
Add I40E_RX_PTYPE_PARSER_ABORTED definition, so i40e driver will know opcode for parser aborted packets. Without this definition driver would have to rely on magic numbers. Signed-off-by: Przemyslaw Patynowski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_type.h | 3 ++- 1 file

[dpdk-dev] [PATCH 1/8] net/i40e/base: enable FEC on/off flag setting for X722

2020-07-21 Thread Guinan Sun
Starting with API version 1.10 firmware for X722 devices has ability to change FEC settings in PHY. Code added in this patch checks API version and sets appropriate capability flag. Signed-off-by: Dawid Lukwinski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq.c | 6

[dpdk-dev] [PATCH 5/8] net/i40e/base: check return value of DNL admin command

2020-07-21 Thread Guinan Sun
Check return value of running DNL admin command. Signed-off-by: Adam Ludkiewicz Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index

[dpdk-dev] [PATCH 0/8] update i40e base code

2020-07-21 Thread Guinan Sun
d in atomic context") a204afdc1cad ("i40e-shared: Send uc/mc commands in atomic context") d22f8cb2a111 ("i40e-shared: Send commands in atomic context") 136a7d931a45 ("i40e-shared: Fix improper preprocessor conditional") Guinan Sun (8): net/i40e/base: enable FEC

[dpdk-dev] [PATCH 1/8] net/i40e/base: enable FEC on/off flag setting for X722

2020-07-20 Thread Guinan Sun
Starting with API version 1.10 firmware for X722 devices has ability to change FEC settings in PHY. Code added in this patch checks API version and sets appropriate capability flag. Signed-off-by: Dawid Lukwinski Signed-off-by: Guinan Sun --- drivers/net/i40e/base/i40e_adminq.c | 6

[dpdk-dev] [PATCH 0/8] update i40e base code

2020-07-20 Thread Guinan Sun
red: Send rx ctl write command in atomic context") a204afdc1cad ("i40e-shared: Send uc/mc commands in atomic context") d22f8cb2a111 ("i40e-shared: Send commands in atomic context") 136a7d931a45 ("i40e-shared: Fix improper preprocessor conditional") Guinan Sun (8):

[dpdk-dev] [PATCH v3 18/19] net/ixgbe/base: cleanup pre-processor tags

2020-07-09 Thread Guinan Sun
The codes has been exposed correctly, so remove pre-processor tags. Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_common.c | 8 drivers/net/ixgbe/base/ixgbe_phy.h| 2 -- drivers/net/ixgbe/base/ixgbe_type.h | 10 -- drivers/net/ixgbe

[dpdk-dev] [PATCH v3 19/19] net/ixgbe/base: update version

2020-07-09 Thread Guinan Sun
Update base code version in readme. Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- 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 a48b14ed2..2c7469392 100644 --- a

[dpdk-dev] [PATCH v3 17/19] net/ixgbe/base: check host interface return status

2020-07-09 Thread Guinan Sun
Writing to read-only fields returns a non-OK Return Status for shadow RAM write command for X550. This information was previously discarded. Signed-off-by: Stanislaw Grzeszczak Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_x550.c | 13 - 1 file

[dpdk-dev] [PATCH v3 15/19] net/ixgbe/base: add ipv6 mask for FDIR feature

2020-07-09 Thread Guinan Sun
Write FDIRIP6M register to allow flow director filter to set ipv6 rules without setting ipv6 source/destination address. Signed-off-by: Piotr Skajewski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_82599.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[dpdk-dev] [PATCH v3 16/19] net/ixgbe/base: remove default advertising for x550 2.5G/5G

2020-07-09 Thread Guinan Sun
We are seeing interoperability issues with switches when 2.5G and 5G in x550 are advertised by default, so default to off. Signed-off-by: Todd Fujinaka Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 1 file changed, 4 deletions(-) diff --git a

[dpdk-dev] [PATCH v3 12/19] net/ixgbe/base: remove unnecessary log message FC autonego

2020-07-09 Thread Guinan Sun
-Jundzillo Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_common.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 4e5d909ca..927877b6a 100644 --- a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH v3 13/19] net/ixgbe/base: initialize data field in struct buffer

2020-07-09 Thread Guinan Sun
: Piotr Pietruszewski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index d3363ff1d..8343efbc2 100644 --- a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH v3 14/19] net/ixgbe/base: improve log about autonego being disabled

2020-07-09 Thread Guinan Sun
On ESXi OS, when user disables auto negotiation, the following log appears: "(unsupported) Flow control autoneg is disabled". It is true that auto negotiation is disabled but it is not necessarily true that it is not supported. Signed-off-by: Jakub Chylkowski Signed-off-by: Guinan Sun

[dpdk-dev] [PATCH v3 09/19] net/ixgbe/base: create dedicated func to restart auto nego

2020-07-09 Thread Guinan Sun
This patch is for restarting auto negotiation on PHY. Signed-off-by: Jakub Chylkowski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_phy.c | 48 ++ drivers/net/ixgbe/base/ixgbe_phy.h | 1 + 2 files changed, 23 insertions(+), 26

[dpdk-dev] [PATCH v3 11/19] net/ixgbe/base: remove unnecessary return value check

2020-07-09 Thread Guinan Sun
Remove unnecessary return value check. Signed-off-by: Jakub Chylkowski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_82599.c | 4 +--- drivers/net/ixgbe/base/ixgbe_common.c | 4 +--- drivers/net/ixgbe/base/ixgbe_common.h | 2 +- drivers/net/ixgbe/base

[dpdk-dev] [PATCH v3 10/19] net/ixgbe/base: add typecast for type mismatch

2020-07-09 Thread Guinan Sun
Add typecast for type mismatch. Signed-off-by: Jakub Chylkowski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_82599.c | 8 drivers/net/ixgbe/base/ixgbe_common.c| 2 +- drivers/net/ixgbe/base/ixgbe_dcb_82598.c | 2 +- drivers/net/ixgbe/base

[dpdk-dev] [PATCH v3 08/19] net/ixgbe/base: move increments after evaluations

2020-07-09 Thread Guinan Sun
The retry variable was being incremented before it was evaluated by the subsequent conditional against the maximum retries to figure out which message to print. So we'll move the increment op to the end. Signed-off-by: Jeb Cramer Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- dr

[dpdk-dev] [PATCH v3 05/19] net/ixgbe/base: added register definitions for NVM update

2020-07-09 Thread Guinan Sun
Added additional register for X550 and above device family. Signed-off-by: Piotr Skajewski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe

[dpdk-dev] [PATCH v3 06/19] net/ixgbe/base: cleanup spelling mistakes in comments

2020-07-09 Thread Guinan Sun
the spelling mistakes that will be detected first. This way, it is easier to verify the mechanical transformation done by sed in the following patch. Signed-off-by: Jacob Keller Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_mbx.c | 4 ++-- drivers/net/ixgbe

[dpdk-dev] [PATCH v3 02/19] net/ixgbe/base: change flow for "Apply Update" command

2020-07-09 Thread Guinan Sun
For the "Apply Update" command the firmware does not given an response. For this command, success should be return. Signed-off-by: Mateusz Kowalski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_common.c | 9 - 1 file changed, 8 insert

[dpdk-dev] [PATCH v3 04/19] net/ixgbe/base: resolve infinite recursion on PCIe link down

2020-07-09 Thread Guinan Sun
oing to be equal to the value previously written, so this patch is expected not to cause any regressions. Signed-off-by: Robert Konklewski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH v3 03/19] net/ixgbe/base: fix x550em 10G NIC link status report

2020-07-09 Thread Guinan Sun
X550") Cc: sta...@dpdk.org Signed-off-by: Piotr Skajewski Signed-off-by: Guinan Sun Reviewed-by: Wei Zhao --- drivers/net/ixgbe/base/ixgbe_x550.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x5

[dpdk-dev] [PATCH v3 00/19] update ixgbe base code

2020-07-09 Thread Guinan Sun
y commit messages. * Split some patch to two patches and Merge some patches to one patch. * Update README. Guinan Sun (19): net/ixgbe/base: fix host interface shadow RAM read net/ixgbe/base: change flow for "Apply Update" command net/ixgbe/base: fix x550em 10G NIC link status report

[dpdk-dev] [PATCH v3 01/19] net/ixgbe/base: fix host interface shadow RAM read

2020-07-09 Thread Guinan Sun
Host interface Shadow RAM Read (0x31) command response buffer length should be stored in two bytes, instead of one byte. This patch fixes it. Fixes: e6102361b1d4 ("net/ixgbe/base: use 2 bytes for flash read command") Cc: sta...@dpdk.org Signed-off-by: Mateusz Kowalski Signed-off-by:

[dpdk-dev] [PATCH v6] net/i40e: support cloud filter with L4 port

2020-07-08 Thread Guinan Sun
This patch enables cloud filter for IPv4/6_UDP/TCP/SCTP with SRC port only or DST port only. This supports different filter types for the same packet type. E.g. one IPv4_UDP rules with SRC port only and another IPv4_UDP rule with DST port only. Signed-off-by: Guinan Sun --- v6: * Modify commit

[dpdk-dev] [PATCH v5] net/i40e: support cloud filter with L4 port

2020-07-07 Thread Guinan Sun
-by: Guinan Sun --- v5: * Add IPv6 to release_20_08.rst and i40e.rst. * Fixed the variable assignment. v4: * Modify release_20_08.rst and i40e.rst. * Rename L4 port filter. * Modify commit log. * Fixed the variable assignment. v3: * Add limitation to i40e.rst. * Rename variables. * Fixed the variable

[dpdk-dev] [PATCH v4] net/i40e: support cloud filter with L4 port

2020-07-07 Thread Guinan Sun
This patch enables cloud filter for IPv4_UDP/IPv4_TCP/IPv4_SCTP with SRC port only or DST port only. This supports different filter types for the same packet type. E.g. one IPv4_UDP rules with SRC port only and another IPv4_UDP rule with DST port only. Signed-off-by: Guinan Sun --- v4: * Modify

[dpdk-dev] [PATCH v3] net/i40e: support cloud filter with L4 port

2020-07-06 Thread Guinan Sun
This patch enables the filter that supports to create following two rules for the same packet type: One is to select source port only as input set and the other is for destination port only. And the supported packet types are UDP/TCP/SCTP. Signed-off-by: Guinan Sun --- v3: * Add limitation to

[dpdk-dev] [PATCH v3 26/27] net/e1000/base: modify copyright

2020-07-06 Thread Guinan Sun
Modify the copyright of the file header. Signed-off-by: Guinan Sun --- drivers/net/e1000/base/e1000_80003es2lan.c | 2 +- drivers/net/e1000/base/e1000_80003es2lan.h | 2 +- drivers/net/e1000/base/e1000_82540.c | 2 +- drivers/net/e1000/base/e1000_82541.c | 2 +- drivers/net/e1000

[dpdk-dev] [PATCH v3 27/27] net/e1000/base: update version

2020-07-06 Thread Guinan Sun
Update base code version in readme. Signed-off-by: Guinan Sun --- 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 56738d001..b84ee5ad6 100644 --- a/drivers/net/e1000/base

[dpdk-dev] [PATCH v3 25/27] net/e1000/base: cleanup pre-processor tags

2020-07-06 Thread Guinan Sun
The codes has been exposed correctly, so remove pre-processor tags. Signed-off-by: Guinan Sun --- drivers/net/e1000/base/e1000_82575.h | 2 -- drivers/net/e1000/base/e1000_defines.h | 9 + drivers/net/e1000/base/e1000_hw.h | 4 drivers/net/e1000/base/e1000_ich8lan.c | 19

  1   2   3   4   >