[dpdk-dev] [PATCH 0/7] update ixgbe shared code to version 2017-01-05

2017-01-10 Thread Wei Dai
some debug traces to help debugging. Wei Dai (7): net/ixgbe/base: support Broadwell-DE XFI backplane net/ixgbe/base: remove a compiler warning net/ixgbe/base: configure speeds for KR/KX backplane net/ixgbe/base: support Marvell 1000BASE-T PHYs net/ixgbe/base: use clause 22 MDIO functions for

[dpdk-dev] [PATCH 1/7] net/ixgbe/base: support Broadwell-DE XFI backplane

2017-01-10 Thread Wei Dai
This patch adds initial support for a Braodwell-DE XFI backplane interface. The XFI backplane requires a custom tuned link. Hardware/Firmware owns the link config for XF backplane and software must not interfere with it. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_api.c | 1

[dpdk-dev] [PATCH 5/7] net/ixgbe/base: use clause 22 MDIO functions for Marvell PHYs

2017-01-10 Thread Wei Dai
This patch sets the MDIO(Management Data Input/Output Interface) read/write function ponters for Broadwell+Marvell PHYs to use the clause 22 functions. Marvell PHYs do not support clause 45. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 4 1 file changed, 4 insertions

[dpdk-dev] [PATCH 6/7] net/ixgbe/base: add some debug traces

2017-01-10 Thread Wei Dai
This patch adds some traces in the reset_hw logic and semaphore acquisition logic to help debugging. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 7 - drivers/net/ixgbe/base/ixgbe_phy.c| 16 +--- drivers/net/ixgbe/base/ixgbe_x540.c | 11 ++-- drivers

[dpdk-dev] [PATCH 2/7] net/ixgbe/base: remove a compiler warning

2017-01-10 Thread Wei Dai
This patch fixes a compiler warning. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 18bb18c..0dd33b8 100644 --- a/drivers

[dpdk-dev] [PATCH 3/7] net/ixgbe/base: configure speeds for KR/KX backplane

2017-01-10 Thread Wei Dai
2.5G configurations. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 2f7f446..b23d479 100644 --- a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 7/7] net/ixgbe/base: update version of shared code

2017-01-10 Thread Wei Dai
update version of shared code to 2017-01-05 in README. Signed-off-by: Wei Dai --- 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 1936191..0a6054f 100644 --- a/drivers/net/ixgbe

[dpdk-dev] [PATCH 4/7] net/ixgbe/base: support Marvell 1000BASE-T PHYs

2017-01-10 Thread Wei Dai
This patch adds initial support for Marvell 1000BASE-T PHYs on Broadwell-DE. Firmware owns the link config for Marvell PHYs on Broadwell-DE, software should not touch it. Also Broadwell-DE is not capable of speeds lower than 1Gb. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c

[dpdk-dev] [PATCH v2 0/7] update ixgbe shared code to version 2017-01-05

2017-01-12 Thread Wei Dai
also add some debug traces to help debugging. Wei Dai (7): net/ixgbe/base: support XFI backplane for X550 net/ixgbe/base: remove a compiler warning net/ixgbe/base: configure speeds for KR/KX backplane net/ixgbe/base: support Marvell 1000BASE-T PHYs net/ixgbe/base: use clause 22 MDIO

[dpdk-dev] [PATCH v2 1/7] net/ixgbe/base: support XFI backplane for X550

2017-01-12 Thread Wei Dai
This patch adds initial support for a XFI backplane interface on some future new platforms. The XFI backplane requires a custom tuned link. Hardware/Firmware owns the link config for XF backplane and software must not interfere with it. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 2/7] net/ixgbe/base: remove a compiler warning

2017-01-12 Thread Wei Dai
This patch fixes a compiler warning. In ixgbe_init_led_link_act_generic() of drivers/net/ixgbe/base/ixgbe_common.c, u16 i will make some C compiler generate a warning for the line mac->led_link_act = i where led_link_act is u8 . Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_commo

[dpdk-dev] [PATCH v2 3/7] net/ixgbe/base: configure speeds for KR/KX backplane

2017-01-12 Thread Wei Dai
2.5G configurations. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 2f7f446..b23d479 100644 --- a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 5/7] net/ixgbe/base: use clause 22 MDIO functions for Marvell PHYs

2017-01-12 Thread Wei Dai
This patch sets the MDIO(Management Data Input/Output Interface) read/write function ponters for Marvell PHYs on some X550 platforms to use the clause 22 functions. Marvell PHYs do not support clause 45. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 4 1 file changed, 4

[dpdk-dev] [PATCH v2 7/7] net/ixgbe/base: update version of shared code

2017-01-12 Thread Wei Dai
update version of shared code to 2017-01-05 in README. Signed-off-by: Wei Dai --- 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 1936191..0a6054f 100644 --- a/drivers/net/ixgbe

[dpdk-dev] [PATCH v2 4/7] net/ixgbe/base: support Marvell 1000BASE-T PHYs

2017-01-12 Thread Wei Dai
This patch adds initial support for Marvell 1000BASE-T PHYs on some X550 platforms. Firmware owns the link config for Marvell PHYs on these platforms, software should not touch it. Also these platforms are not capable of speeds lower than 1Gb. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 6/7] net/ixgbe/base: add some debug traces

2017-01-12 Thread Wei Dai
This patch adds some traces in the reset_hw logic and semaphore acquisition logic to help debugging. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 7 - drivers/net/ixgbe/base/ixgbe_phy.c| 16 +--- drivers/net/ixgbe/base/ixgbe_x540.c | 11 ++-- drivers

[dpdk-dev] [PATCH] net/ixgbe: correct error when SFP not present

2017-01-24 Thread Wei Dai
Ignore the error=IXGBE_ERR_SFP_NOT_PRESENT when SFP is not present. If it is not ignored, testpmd will in the NIC initialization process. Ixgbe kernel driver ignores this error and works well. So DPDK does same thing. Signed-off-by: Wei Dai Signed-off-by: Helin Zhang Tested-by: Yuan Peng

[dpdk-dev] [PATCH] net/ixgbe: output details on failure to configure filter

2017-02-04 Thread Wei Dai
Add more details when the filter mode can't be successfully configured. These details tell user what filter configuration is right. Reported-by: Yulong Pei Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_fdir.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH] net/ixgbe: output details on failure to configure filter

2017-02-04 Thread Wei Dai
Add more details when the filter mode can't be successfully configured. These details tell user what filter configuration is right. Reported-by: Yulong Pei Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_fdir.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH 01/29] net/ixgbe/base: fix check for PHY reset

2016-12-03 Thread Wei Dai
The previously generic PHY reset check is not sufficient for the PHY type = ixgbe_phy_x550em_ext_t. This patch fixes it. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 29 - 1 file changed, 24

[dpdk-dev] [PATCH 03/29] net/ixgbe/base: use fast MDIO for non-10G MDIO devices

2016-12-03 Thread Wei Dai
Devices that cannot go 10G can safely select a faster MDIO speed than those devices that can possibly connect at 10G. So select the higher speed for those devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH 02/29] net/ixgbe/base: fix condition to clear RAR entry

2016-12-03 Thread Wei Dai
Specifically the RAR entry for the SAN MAC address is being cleared when the VMDq pool bits are cleared. In order to prevent this we need to add an extra check to protect the SAN MAC from being cleared. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- drivers

[dpdk-dev] [PATCH 04/29] net/ixgbe/base: fix PHY identification

2016-12-03 Thread Wei Dai
previous method to identify the CS4223/CS4227 is incorrect and unreliable. This patch provide a new register to differentiate between these PHY SKUs. Fixes: fc0559bdb5e3 ("net/ixgbe/base: add link MAC setup for X550a SFP+") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_

[dpdk-dev] [PATCH 07/29] net/ixgbe/base: add support to store LED link active

2016-12-03 Thread Wei Dai
This patch adds support to get the LED link active via the LEDCTL register. If the LEDCTL register does not have LED link active (LED mode field = 0x0100) set then default LED link active returned. LED link active is used for adapter identify/blink support. Signed-off-by: Wei Dai --- drivers

[dpdk-dev] [PATCH 05/29] net/ixgbe/base: clean up X557 link status check

2016-12-03 Thread Wei Dai
This patch cleans up the code and clarifies the comment around the X557 PHY link status check in ixgbe_check_link_t_x550em( ). Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH 06/29] net/ixgbe/base: add driver version to firmware

2016-12-03 Thread Wei Dai
This patch sends the driver version string to firmware through the host interface command on x550 devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_api.c| 7 ++-- drivers/net/ixgbe/base/ixgbe_api.h| 2 +- drivers/net/ixgbe/base/ixgbe_common.c | 4 ++- drivers/net/ixgbe

[dpdk-dev] [PATCH 11/29] net/ixgbe/base: fix getting phy type

2016-12-03 Thread Wei Dai
This patch fixes ixgbe_get_supported_physical_layer_X550em to correctly return physical layer as IXGBE_PHYSICAL_LAYER_1000BASE_T for some devices. Fixes: 76d5b807ff74 ("ixgbe/base: new X557 phy") Fixes: d2e72774e58c ("ixgbe/base: support X550") Signed-off-by: Wei Dai --- dr

[dpdk-dev] [PATCH 08/29] net/ixgbe/base: cleanup logic in X540 checksum calculation

2016-12-03 Thread Wei Dai
. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x540.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x540.c b/drivers/net/ixgbe/base/ixgbe_x540.c index 6e778bc..49bf154 100644 --- a/drivers/net/ixgbe/base/ixgbe_x540.c +++ b

[dpdk-dev] [PATCH 09/29] net/ixgbe/base: enable LASI interrupts only for X552 devices

2016-12-03 Thread Wei Dai
r this bit, for X553 devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 28c7ce3..fecc8e6 10

[dpdk-dev] [PATCH 10/29] net/ixgbe/base: add X552 MAC check for iXFI flows

2016-12-03 Thread Wei Dai
The MAC register NW_MNG_IF_SEL fields have been redefined for X553. These changes impact the iXFI driver code flow. Since iXFI is only supported in X552, this patch adds X552 MAC check for iXFI flows. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 4 ++-- drivers/net/ixgbe

[dpdk-dev] [PATCH 13/29] net/ixgbe/base: cleanup dead EEE code

2016-12-03 Thread Wei Dai
Remove some specific code for enabling/disabling EEE. Those were added previously and now are in "removed" status. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 61 ++--- 1 file changed, 10 insertions(+), 51 deletions(-) diff --git

[dpdk-dev] [PATCH 12/29] net/ixgbe/base: fix SGMII link setup for M88 PHYs

2016-12-03 Thread Wei Dai
This patch fixes ixgbe_setup_sgmii_m88 to set lane speed to autoneg instead of 1G to prevent problems with link between PHYs Fixes: d4b4c6845487 ("net/ixgbe/base: add X550em_a FW ALEF support") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 +- 1 file changed, 1

[dpdk-dev] [PATCH 14/29] net/ixgbe/base: update setup PHY link to unset all speeds

2016-12-03 Thread Wei Dai
This patch updates ixgbe_setup_phy_link_generic to set/unset auto-negotiation for all speeds. This ensures that unsupported speeds are unset. This is necessary since the PHY NVM may advertise unsupported speeds. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 130

[dpdk-dev] [PATCH 15/29] net/ixgbe/base: support FW commands to control some PHYs

2016-12-03 Thread Wei Dai
Implement support for new firmware commands to be used to access and control some PHYs. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.h | 4 +- drivers/net/ixgbe/base/ixgbe_osdep.h | 3 +- drivers/net/ixgbe/base/ixgbe_type.h | 70 ++- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 17/29] net/ixgbe/base: support busy SGMII register reads

2016-12-03 Thread Wei Dai
This patch is needed for base driver support because the NW_MNG_IF_SEL register fields are used to determine SGMII link for busy SGMII register reads. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [PATCH 18/29] net/ixgbe/base: include new speeds in VFLINK interpretation

2016-12-03 Thread Wei Dai
This patch moves some of the extended speeds that come with X552 (5G, 2.5G, 10M) into the link check functions. It also now returns speed_unknown for speeds that are not known how to interpret. Signed-off-by: Wei Dai --- drivers/net/ixgbe/Makefile | 1 + drivers/net/ixgbe/base

[dpdk-dev] [PATCH 16/29] net/ixgbe/base: use FW commands to control some PHYs

2016-12-03 Thread Wei Dai
Use the new firmware interface to access and control some PHYs. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 - drivers/net/ixgbe/base/ixgbe_phy.h | 67 -- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- drivers/net/ixgbe/base/ixgbe_x550.c | 412

[dpdk-dev] [PATCH 21/29] net/ixgbe/base: remove unneeded MAC check

2016-12-03 Thread Wei Dai
ixgbe_read_i2c_combined_generic_int() is only used by devices >= X550. Set the initial value accordingly and remove the MAC check. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/b

[dpdk-dev] [PATCH 22/29] net/ixgbe/base: remove unused PHY ID

2016-12-03 Thread Wei Dai
The first PHY ID for X550 was only used on original HW and never released. So remove these unused PHY ID. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 1 - drivers/net/ixgbe/base/ixgbe_type.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 20/29] net/ixgbe/base: add physical layer options for FW PHY type

2016-12-03 Thread Wei Dai
The "FW" PHY type now supports speeds 10M, 100M, and 1G. Previously, only the 1G speed was reported in the ixgbe_get_supported_physical_layer_X550em() function for this PHY type. This patch is to add the 10M and 100M options. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_

[dpdk-dev] [PATCH 19/29] net/ixgbe/base: check only X550 devices support 5G

2016-12-03 Thread Wei Dai
Since only X550 devices have support for 5G, so it should be checked for that speed on such devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 2 +- drivers/net/ixgbe/base/ixgbe_hv_vf.c | 2 +- drivers/net/ixgbe/base/ixgbe_vf.c | 2 +- 3 files changed, 3 insertions

[dpdk-dev] [PATCH 23/29] net/ixgbe/base: update FW PHY flow control

2016-12-03 Thread Wei Dai
advertising TX. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index f1f1fbe..49b59e7 100644 --- a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 25/29] net/ixgbe/base: fix incorrect IXGBE LSWFW register

2016-12-03 Thread Wei Dai
This register was incorrect when compared to the data sheet. Even though the Linux kernel and DPDK polling mode driver doesn't currently use this register, it is better to fix it upstream. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- drivers

[dpdk-dev] [PATCH 27/29] net/ixgbe/base: add write flush required by Inphi

2016-12-03 Thread Wei Dai
This patch updates Inphi configuration to flush the register write with a reg read. Inphi is configured in ixgbe_setup_mac_link_sfp_x550a. The Inphy setup flow has been updated to read configuration reg, write only linear/non-linear, and then read (write flush). Signed-off-by: Wei Dai

[dpdk-dev] [PATCH 24/29] net/ixgbe/base: add EEE support for DNL-controlled PHYs

2016-12-03 Thread Wei Dai
EEE status correctly. This also deletes some now-unused definitions from an earlier Marvell PHY implementation and combines a device ID check into a switch statement. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 8 drivers/net/ixgbe/base/ixgbe_x550.c | 15

[dpdk-dev] [PATCH 28/29] net/ixgbe/base: report physical layer for SGMII PHY type

2016-12-03 Thread Wei Dai
For the PHY type SGMII, we need to report the physical layer so the OS can display the correct link connection. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 26/29] net/ixgbe/base: remove unused old EEE code

2016-12-03 Thread Wei Dai
remove unused old EEE code. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 113 +--- drivers/net/ixgbe/base/ixgbe_x550.h | 2 - 2 files changed, 1 insertion(+), 114 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net

[dpdk-dev] [PATCH 29/29] net/ixgbe/base: update version of basical codes in README

2016-12-03 Thread Wei Dai
update the version of shared codes to cid-ixgbe.2016.11.21.tar.gz, all files in net/ixgbe/base are developped by another team and DPDK PMD uses them accordingly. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[dpdk-dev] [PATCH v2 00/30] update ixgbe shared code to version 16.11.21

2016-12-21 Thread Wei Dai
/ixgbe/base: add EEE support for some PHYs the 25th of v2 is net/ixgbe/base: remove unused enum type correct RAEDME Wei Dai (30): net/ixgbe/base: fix PHY reset check for x550em-ext net/ixgbe/base: fix clearing SAN MAC address net/ixgbe/base: use fast MDIO for non-10G devices net

[dpdk-dev] [PATCH v2 02/30] net/ixgbe/base: fix clearing SAN MAC address

2016-12-21 Thread Wei Dai
Receive Address Register (RAR) entries, including SAN MAC address, are cleared when VMDq pool bits are cleared. Prevent SAN MAC address to be cleared. Fixes: af75078fece3 ("first public release") CC: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c

[dpdk-dev] [PATCH v2 01/30] net/ixgbe/base: fix PHY reset check for x550em-ext

2016-12-21 Thread Wei Dai
PHY type ixgbe_phy_x550em_ext_t requires different check to verify reset status. Fixes: af75078fece3 ("first public release") CC: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 29 - 1 file changed, 24 insertions(+), 5

[dpdk-dev] [PATCH v2 06/30] net/ixgbe/base: add driver version to firmware

2016-12-21 Thread Wei Dai
Send the driver version string to firmware through the host interface command on x550 devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_api.c| 7 ++-- drivers/net/ixgbe/base/ixgbe_api.h| 2 +- drivers/net/ixgbe/base/ixgbe_common.c | 4 ++- drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 05/30] net/ixgbe/base: clean up X557 link status check

2016-12-21 Thread Wei Dai
This patch cleans up the code and clarifies the comment around the X557 PHY link status check in ixgbe_check_link_t_x550em(). Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v2 04/30] net/ixgbe/base: fix PHY identification for x550a

2016-12-21 Thread Wei Dai
Method to identify the CS4223/CS4227 is incorrect and unreliable. Provide a new register to differentiate between these PHY SKUs. Fixes: fc0559bdb5e3 ("net/ixgbe/base: add link MAC setup for X550a SFP+") CC: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_

[dpdk-dev] [PATCH v2 03/30] net/ixgbe/base: use fast MDIO for non-10G devices

2016-12-21 Thread Wei Dai
Devices that cannot go 10G speeds can safely select a faster Management Data Input/Output (MDIO) speed. Select fast MDIO clock speed for for those devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a

[dpdk-dev] [PATCH v2 08/30] net/ixgbe/base: cleanup X540 checksum calculation

2016-12-21 Thread Wei Dai
The variable checksum_last_word is used only for bounds check. So remove this variable and use IXGBE_EEPROM_CHECKSUM directly. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x540.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 09/30] net/ixgbe/base: enable LASI only for X552 devices

2016-12-21 Thread Wei Dai
having KR support, which performs auto-negotiations and which is used as the internal link to the external PHY. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/net/ixgbe

[dpdk-dev] [PATCH v2 07/30] net/ixgbe/base: store link active LED

2016-12-21 Thread Wei Dai
Add support to get the link active LED index via the LEDCTL register. If the LEDCTL register does not have link active LED set then use MAC default LED index. Link active LED is used for adapter identify/blink support. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 45

[dpdk-dev] [PATCH v2 10/30] net/ixgbe/base: limit iXFI setup to X552 devices

2016-12-21 Thread Wei Dai
The MAC register NW_MNG_IF_SEL fields have been redefined for X553. These changes impact the iXFI driver code flow. Since iXFI is only supported in X552, this patch adds X552 MAC check for iXFI flows. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 4 ++-- drivers/net/ixgbe

[dpdk-dev] [PATCH v2 11/30] net/ixgbe/base: fix getting PHY type for some x550 devices

2016-12-21 Thread Wei Dai
Return correct physical layer for some x550 devices. Fixes: 76d5b807ff74 ("ixgbe/base: new X557 phy") Fixes: d2e72774e58c ("ixgbe/base: support X550") CC: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 ++ 1 file changed, 2 inserti

[dpdk-dev] [PATCH v2 12/30] net/ixgbe/base: fix SGMII link setup for M88 PHYs

2016-12-21 Thread Wei Dai
Fix ixgbe_setup_sgmii_m88 to set lane speed to autoneg instead of 1G to prevent problems with link between PHYs Fixes: d4b4c6845487 ("net/ixgbe/base: add X550em_a FW ALEF support") CC: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 +- 1 file

[dpdk-dev] [PATCH v2 14/30] net/ixgbe/base: fix setting unsupported autoneg speeds

2016-12-21 Thread Wei Dai
Update ixgbe_setup_phy_link_generic that set/unset auto-negotiation. Ensure that unsupported auto-negotiation speeds are unset. This is necessary since the PHY NVM may advertise unsupported speeds. Fixes: af75078fece3 ("first public release") CC: sta...@dpdk.org Signed-off-b

[dpdk-dev] [PATCH v2 13/30] net/ixgbe/base: cleanup dead EEE code

2016-12-21 Thread Wei Dai
Remove some specific code for enabling/disabling Energy Efficient Ethernet (EEE). Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 61 ++--- 1 file changed, 10 insertions(+), 51 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b

[dpdk-dev] [PATCH v2 16/30] net/ixgbe/base: use FW commands to control some PHYs

2016-12-21 Thread Wei Dai
Use the new firmware interface to access and control some PHYs. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 - drivers/net/ixgbe/base/ixgbe_phy.h | 67 -- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- drivers/net/ixgbe/base/ixgbe_x550.c | 412

[dpdk-dev] [PATCH v2 18/30] net/ixgbe/base: include new speeds in VFLINK interpretation

2016-12-21 Thread Wei Dai
This patch moves some of the extended speeds that come with X552 (5G, 2.5G, 10M) into the link check functions. It also now returns speed_unknown for speeds that are not known how to interpret. Signed-off-by: Wei Dai --- drivers/net/ixgbe/Makefile | 1 + drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 17/30] net/ixgbe/base: support busy SGMII register reads

2016-12-21 Thread Wei Dai
Read and store NW_MNG_IF_SEL register because register fields are used to determine SGMII link for busy SGMII register reads. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550

[dpdk-dev] [PATCH v2 19/30] net/ixgbe/base: limit 5Gb support to X550 devices

2016-12-21 Thread Wei Dai
Only X550 devices support 5Gb. MAC type checks for 5Gb should be done only for X550 devices. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 2 +- drivers/net/ixgbe/base/ixgbe_hv_vf.c | 2 +- drivers/net/ixgbe/base/ixgbe_vf.c | 2 +- 3 files changed, 3 insertions(+), 3

[dpdk-dev] [PATCH v2 15/30] net/ixgbe/base: support FW commands to control some PHYs

2016-12-21 Thread Wei Dai
Implement support for new firmware commands to be used to access and control some PHYs. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.h | 4 +- drivers/net/ixgbe/base/ixgbe_osdep.h | 3 +- drivers/net/ixgbe/base/ixgbe_type.h | 70 ++- drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 20/30] net/ixgbe/base: add physical layer options for FW PHY type

2016-12-21 Thread Wei Dai
The "FW" PHY type now supports speeds 10M, 100M, and 1G. Previously, only the 1G speed was reported for this PHY type. Add reporting 10M and 100M speed options. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 8 +++

[dpdk-dev] [PATCH v2 21/30] net/ixgbe/base: remove unneeded MAC type check

2016-12-21 Thread Wei Dai
ixgbe_read_i2c_combined_generic_int() is only used by devices >= X550. Set the initial value accordingly and remove the MAC type check. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/b

[dpdk-dev] [PATCH v2 23/30] net/ixgbe/base: update FW PHY flow control

2016-12-21 Thread Wei Dai
. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index f1f1fbe..49b59e7 100644 --- a/drivers/net/ixgbe/base/ixgbe_x550.c

[dpdk-dev] [PATCH v2 22/30] net/ixgbe/base: remove unused PHY ID

2016-12-21 Thread Wei Dai
The first PHY ID for X550 was only used on original HW and never released. So remove these unused PHY ID. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_phy.c | 1 - drivers/net/ixgbe/base/ixgbe_type.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 25/30] net/ixgbe/base: remove unused enum type

2016-12-21 Thread Wei Dai
remove unused enum type for master/slave control in ixbge_type.h Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index 9ec17a9..f1761a3 100644

[dpdk-dev] [PATCH v2 27/30] net/ixgbe/base: remove unused EEE code

2016-12-21 Thread Wei Dai
Remove unused old Energy Efficient Ethernet (EEE) code. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 113 +--- drivers/net/ixgbe/base/ixgbe_x550.h | 2 - 2 files changed, 1 insertion(+), 114 deletions(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2 26/30] net/ixgbe/base: fix IXGBE LSWFW register

2016-12-21 Thread Wei Dai
This register was incorrect when compared to the data sheet. Even though the driver doesn't currently use this register, it is better to fix it upstream. Fixes: af75078fece3 ("first public release") CC: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_t

[dpdk-dev] [PATCH v2 24/30] net/ixgbe/base: add EEE support for some PHYs

2016-12-21 Thread Wei Dai
area because the driver will not report the EEE status correctly. This also deletes some now-unused definitions from an earlier Marvell PHY implementation and combines a device ID check into a switch statement. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 15

[dpdk-dev] [PATCH v2 28/30] net/ixgbe/base: add write flush required by Inphi PHY

2016-12-21 Thread Wei Dai
flush). Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 4a98530..a57ba74 100644 --- a/drivers/net/ixgbe/base/ixgbe_x550.c +++ b

[dpdk-dev] [PATCH v2 29/30] net/ixgbe/base: report physical layer for SGMII PHY type

2016-12-21 Thread Wei Dai
For the PHY type SGMII, report the pyhsical layer. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index a57ba74..782ca91 100644 --- a/drivers/net

[dpdk-dev] [PATCH v2 30/30] net/ixgbe/base: update shared code version to 2016.11.21

2016-12-21 Thread Wei Dai
update the version of shared codes to cid-ixgbe.2016.11.21.tar.gz, all files in net/ixgbe/base are developped by another team and DPDK PMD uses them accordingly. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[dpdk-dev] [PATCH v5 1/4] ethdev: add support of NIC reset

2017-06-30 Thread Wei Dai
dev_init() can be packed into a single interface API rte_eth_dev_reset(). Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.c | 16 lib/librte_ether/rte_ethdev.h | 12 lib/librte_ether/rte_ether_version.map | 2 +- 3 files changed, 29

[dpdk-dev] [PATCH v5 4/4] app/testpmd: enhance command to test NIC reset

2017-06-30 Thread Wei Dai
figure its forwarding mode and parmaters as previous ones. To avoid crash, current forwarding should be stopped before running "port reset port_id". Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 10

[dpdk-dev] [PATCH v5 2/4] net/ixgbe: add support of reset

2017-06-30 Thread Wei Dai
Reset a NIC by calling dev_uninit and then dev_init. Go through same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 42

[dpdk-dev] [PATCH v5 0/4] Support NIC reset and keep same port id

2017-06-30 Thread Wei Dai
in other way disable PF reset when its VF is ative to avoid unexpected VF behavior v4: add PCI address to confirm its port number keep same correct test method in cover letter v3: update testpmd command v2: only reset PMD layer resource and keep same port id, but not restore settings S

[dpdk-dev] [PATCH v5 3/4] net/i40e: add support of reset

2017-06-30 Thread Wei Dai
Reset a NIC by calling dev_uninit() and then dev_init(). Go through the same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/i40e/i40e_ethdev.c| 20

[dpdk-dev] [PATCH v6 1/4] ethdev: add support of NIC reset

2017-07-10 Thread Wei Dai
function is needed, what this function does and what an application should do after calling this function. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.c | 16 lib/librte_ether/rte_ethdev.h | 45 ++ lib/librte_ether

[dpdk-dev] [PATCH v6 2/4] net/ixgbe: add support of reset

2017-07-10 Thread Wei Dai
Reset a NIC by calling dev_uninit and then dev_init. Go through same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 47

[dpdk-dev] [PATCH v6 0/4] Support NIC reset and keep same port id

2017-07-10 Thread Wei Dai
e testpmd command v2: only reset PMD layer resource and keep same port id, but not restore settings Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu Wei Dai (4): ethdev: add support of NIC reset net/ixgbe: add support of reset net/i40e: add support of reset app/test

[dpdk-dev] [PATCH v6 3/4] net/i40e: add support of reset

2017-07-10 Thread Wei Dai
Reset a NIC by calling dev_uninit() and then dev_init(). Go through the same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/i40e/i40e_ethdev.c| 28

[dpdk-dev] [PATCH v6 4/4] app/testpmd: enhance command to test NIC reset

2017-07-10 Thread Wei Dai
figure its forwarding mode and parmaters as previous ones. To avoid crash, current forwarding should be stopped before running "port reset port_id". Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 10

[dpdk-dev] [PATCH v7 0/5] Support NIC reset and keep same port id

2017-07-13 Thread Wei Dai
er keep same correct test method in cover letter v3: update testpmd command v2: only reset PMD layer resource and keep same port id, but not restore settings Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu Wei Dai (5): ethdev: add support of NIC reset net/ixgbe: add su

[dpdk-dev] [PATCH v7 1/5] ethdev: add support of NIC reset

2017-07-13 Thread Wei Dai
function is needed, what it does, when it should be called and what an application should do after calling this function. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.c | 17 lib/librte_ether/rte_ethdev.h | 73 ++ lib

[dpdk-dev] [PATCH v7 3/5] net/i40e: add support of reset

2017-07-13 Thread Wei Dai
Reset a NIC by calling dev_uninit() and then dev_init(). Go through the same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/i40e/i40e_ethdev.c| 28

[dpdk-dev] [PATCH v7 5/5] doc: add description of the NIC reset API

2017-07-13 Thread Wei Dai
Signed-off-by: Wei Dai --- doc/guides/prog_guide/poll_mode_drv.rst | 40 + 1 file changed, 40 insertions(+) diff --git a/doc/guides/prog_guide/poll_mode_drv.rst b/doc/guides/prog_guide/poll_mode_drv.rst index 4987f70..60518fc 100644 --- a/doc/guides/prog_guide

[dpdk-dev] [PATCH v7 2/5] net/ixgbe: add support of reset

2017-07-13 Thread Wei Dai
Reset a NIC by calling dev_uninit and then dev_init. Go through same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 47

[dpdk-dev] [PATCH v7 4/5] app/testpmd: enhance command to test NIC reset

2017-07-13 Thread Wei Dai
figure its forwarding mode and parmaters as previous ones. To avoid crash, current forwarding should be stopped before running "port reset port_id". Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 12 +

[dpdk-dev] [PATCH v8 0/5] Support of NIC reset and keep same port id

2017-07-17 Thread Wei Dai
way disable PF reset when its VF is ative to avoid unexpected VF behavior v4: add PCI address to confirm its port number keep same correct test method in cover letter v3: update testpmd command v2: only reset PMD layer resource and keep same port id, but not restore settings Signed-off-by:

[dpdk-dev] [PATCH v8 1/5] ethdev: add support of NIC reset

2017-07-17 Thread Wei Dai
function is needed, what it does, when it should be called and what an application should do after calling this function. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.c | 17 + lib/librte_ether/rte_ethdev.h | 33 + lib

[dpdk-dev] [PATCH v8 4/5] app/testpmd: enhance command to test NIC reset

2017-07-17 Thread Wei Dai
figure its forwarding mode and parmaters as previous ones. To avoid crash, current forwarding should be stopped before running "port reset port_id". Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 12 +

[dpdk-dev] [PATCH v8 2/5] net/ixgbe: add support of reset

2017-07-17 Thread Wei Dai
Reset a NIC by calling dev_uninit and then dev_init. Go through same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 47

[dpdk-dev] [PATCH v8 5/5] doc: add description of the NIC reset API

2017-07-17 Thread Wei Dai
Signed-off-by: Wei Dai --- doc/guides/prog_guide/poll_mode_drv.rst | 40 + 1 file changed, 40 insertions(+) diff --git a/doc/guides/prog_guide/poll_mode_drv.rst b/doc/guides/prog_guide/poll_mode_drv.rst index 4987f70..60518fc 100644 --- a/doc/guides/prog_guide

  1   2   3   4   >