[dpdk-dev] [PATCH v2] doc: announce ABI change of rte_eth_fdir_filter, rte_eth_fdir_masks

2015-07-10 Thread Wenzhuo Lu
, tunnel type, TNI/VNI. We have to change the ABI to support these new lookup fields. v2 changes: * Correct the names of the structures. * Wrap the words. * Add explanation for the new modes. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/abi.rst | 10 ++ 1 file changed, 10

[dpdk-dev] [PATCH] MAINTAINERS: claim responsability for intel e1000

2015-07-13 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 75a27e9..e6de6f0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -220,6 +220,7 @@ Cisco enic F: drivers/net/enic/ Intel e1000 +M: Wenzhuo Lu F: drivers/net/e1000/ F

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

2015-07-30 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/igb_rxtx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 3a31b21..b13930e 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -851,7

[dpdk-dev] [PATCH] e1000: fix ieee1588 timestamp issue

2015-07-30 Thread Wenzhuo Lu
Ieee1588 reads system time to set its timestamp. On 1G NICs, for example, i350, system time is disabled by default. It means the ieee1588 timestamp will always be 0. This patch enables system time when ieee1588 is enabled. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/igb_ethdev.c | 8

[dpdk-dev] [PATCH v2] e1000: fix ieee1588 timestamp issue

2015-07-31 Thread Wenzhuo Lu
timesync defines. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/igb_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 56734a3..b2f57c4 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000

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

2015-06-05 Thread Wenzhuo Lu
PHY *set lan_id before first I2C access *added x550em PHY reset function *block EEE setup on the interfaces which don't support EEE Wenzhuo Lu (26): ixgbe/base: update copyright and readme ixgbe/base: fix code comment, double from ixgbe/base: fix typo error in code comment ixgbe/base: check

[dpdk-dev] [PATCH 01/26] ixgbe/base: update copyright and readme

2015-06-05 Thread Wenzhuo Lu
Update copyright in every file. Update README file. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/README| 4 ++-- drivers/net/ixgbe/base/ixgbe_82598.c | 2 +- drivers/net/ixgbe/base/ixgbe_82598.h | 2 +- drivers/net/ixgbe/base/ixgbe_82599.c | 2 +- drivers/net

[dpdk-dev] [PATCH 02/26] ixgbe/base: fix code comment, double from

2015-06-05 Thread Wenzhuo Lu
Remove the redundant "from". Signed-off-by: Wenzhuo Lu --- 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 0174ecb..8179354 100644 --- a/d

[dpdk-dev] [PATCH 03/26] ixgbe/base: fix typo error in code comment

2015-06-05 Thread Wenzhuo Lu
There's a typo in the code comment for FC end of Frame Exception (FCEOFe/IPE), so fixed the typo. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 04/26] ixgbe/base: check return value after calling

2015-06-05 Thread Wenzhuo Lu
This patch moves the check of the return value from ixgbe_start_hw_generic after the function is called. Previously we had the code to disable relaxed ordering in between, which seems a bit out of place. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_82598.c | 5 +++-- 1 file

[dpdk-dev] [PATCH 05/26] ixgbe/base: allow tunneled UDP and TCP frames to reach their destination

2015-06-05 Thread Wenzhuo Lu
All bits in FDIRTCPM and FDIRUDPM are set to 1 when ixgbe_fdir_set_input_mask_82599 is called. Not settings these bits will cause TCP and UDP packets to be filtered out when NVGRE or VXLAN mode is enabled. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_82599.c | 7 ++- 1 file

[dpdk-dev] [PATCH 06/26] ixgbe/base: erase ixgbe_get_hi_status

2015-06-05 Thread Wenzhuo Lu
Remove the function which is not called by the drivers. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_common.c | 30 -- drivers/net/ixgbe/base/ixgbe_common.h | 1 - 2 files changed, 31 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b

[dpdk-dev] [PATCH 07/26] ixgbe/base: provide unlocked I2C methods

2015-06-05 Thread Wenzhuo Lu
Most I2C accesses take and release semaphores for each access. It's also necessary to perform multiple I2C operations under the same holding of the semaphore, so provide unlocked I2C methods for that purpose. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_api.c | 68

[dpdk-dev] [PATCH 08/26] ixgbe/base: reduce I2C retry count on X550 devices

2015-06-05 Thread Wenzhuo Lu
A retry count of 10 is likely to run into problems on X550 devices that have to detect and reset unresponsive CS4227 devices. So, reduce the I2C retry count to 3 for X550 and above. This should avoid any possible regressions in existing devices. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe

[dpdk-dev] [PATCH 09/26] ixgbe/base: issue firmware command when coming up

2015-06-05 Thread Wenzhuo Lu
-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 2 ++ drivers/net/ixgbe/base/ixgbe_x550.c | 17 + 2 files changed, 19 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index 0e4f312..4e38f53 100644 --- a/drivers/net/ixgbe

[dpdk-dev] [PATCH 10/26] ixgbe/base: add logic to reset CS4227 when needed

2015-06-05 Thread Wenzhuo Lu
On some hardware platforms, the CS4227 does not initialize properly. Detect those cases and reset it appropriately. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.h | 12 +++ drivers/net/ixgbe/base/ixgbe_x550.c | 184 2 files changed, 196

[dpdk-dev] [PATCH 11/26] ixgbe/base: restore ESDP settings after MAC reset

2015-06-05 Thread Wenzhuo Lu
The I2C mux control relies on the SDP setting in the ESDP register so it is necessary to restore the value after a MAC reset. So, put the code in a function so it can be used in more than one place. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 41

[dpdk-dev] [PATCH 12/26] ixgbe/base: disable FEC(Forward Error Correction) to save power

2015-06-05 Thread Wenzhuo Lu
The FEC feature can improve BER(Bit Error Rate) but uses more power to do so. It also cannot be used with EEE(Energy Efficient Ethernet). EEE is an important feature, and we have no known BER issues, so FEC is not needed. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 4

[dpdk-dev] [PATCH 13/26] ixgbe/base: set lan_id for non-PCIe devices

2015-06-05 Thread Wenzhuo Lu
The introduction of ixgbe_get_bus_info_X550em failed to call the set_lan_id method to set the func and lan_id and deal with port- swapped configurations. Add the call to resolve the problem. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 ++ 1 file changed, 2 insertions

[dpdk-dev] [PATCH 14/26] ixgbe/base: add SFP+ dual-speed support

2015-06-05 Thread Wenzhuo Lu
This patch adds SFP+ dual-speed support. 82599 fiber link code was moved from ixgbe_82599.c to ixgbe_commom.c for use by X550em, and the API was updated to support the common code usage. SFP MAC link code is added to x550em. Signed-off-by: Changchun Ouyang Signed-off-by: Wenzhuo Lu --- drivers

[dpdk-dev] [PATCH 15/26] ixgbe/base: add SW based LPLU support

2015-06-05 Thread Wenzhuo Lu
This patch adds SW Low Power Link Up (LPLU) support for x550em PHY. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_api.c | 13 +++ drivers/net/ixgbe/base/ixgbe_api.h | 1 + drivers/net/ixgbe/base/ixgbe_type.h | 17 +++- drivers/net/ixgbe/base/ixgbe_x550.c | 173

[dpdk-dev] [PATCH 16/26] ixgbe/base: fix flow control for KR backplane

2015-06-05 Thread Wenzhuo Lu
For the KR backplane which is different from other backplane, in that we can't use auto-negotiation to determine the mode. Instead, use whatever the user configured. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_api.c| 12 + drivers/net/ixgbe/base/ixgbe_api.h| 1

[dpdk-dev] [PATCH 17/26] ixgbe/base: new simplified x550em init flow

2015-06-05 Thread Wenzhuo Lu
been simplified and now only requires that the PHY FW be "un-stalled". SW no longer needs to put the PHY in low-power mode or enable the transceiver. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 85 + 1 file changed, 19 inserti

[dpdk-dev] [PATCH 18/26] ixgbe/base: move I2C MUX function from ixgbe_x540.c to ixgbe_x550.c

2015-06-05 Thread Wenzhuo Lu
The following patch moves the handling of the I2C MUX (which is only used for x550em SFP+ devices) out of the ixgbe_x540.c file and into the ixgbe_x550.c file where it belongs. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x540.c | 30 +- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 19/26] ixgbe/base: change return value for ixgbe_setup_internal_phy_t_x550em

2015-06-05 Thread Wenzhuo Lu
is for link down then there is no iXFI setup necessary and no error condition needs to be returned. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 20/26] ixgbe/base: ixgbe_setup_internal_phy_x550em function clean-up

2015-06-05 Thread Wenzhuo Lu
Interrupt) status register checks as this was incorrect and never worked correctly anyway. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 31 --- drivers/net/ixgbe/base/ixgbe_x550.h | 2 +- 2 files changed, 13 insertions(+), 20 deletions(-) diff

[dpdk-dev] [PATCH 21/26] ixgbe/base: add x550em Auto neg Flow Control support

2015-06-05 Thread Wenzhuo Lu
flow control on the internal PHY. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_common.c | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 4 2 files changed, 5 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 7a8eb6b

[dpdk-dev] [PATCH 22/26] ixgbe/base: add x550em PHY interrupt and forced 1G/10G support

2015-06-05 Thread Wenzhuo Lu
selected auto advertised link speed setting. Then sets up the external PHY auto advertised link speed. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_api.c | 17 +++ drivers/net/ixgbe/base/ixgbe_api.h | 1 + drivers/net/ixgbe/base/ixgbe_type.h | 18 ++- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 23/26] ixgbe/base: add link check support for x550em PHY

2015-06-05 Thread Wenzhuo Lu
This patch adds ixgbe_check_link_t_X550em for checking x550em PHY link. We check that both the MAC and external x550em PHY have link. This is to avoid a false link up between the internal and external PHY when the external PHY doesn't have link. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe

[dpdk-dev] [PATCH 24/26] ixgbe/base: set lan_id before first I2C access

2015-06-05 Thread Wenzhuo Lu
it consistently anyway. On X550, be sure to set the lan_id before using it to configure the mux control output, else the mux will not be controlled. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.c | 6 +++--- drivers/net/ixgbe/base/ixgbe_x550.c | 2 ++ 2 files changed, 5 insertions(+), 3

[dpdk-dev] [PATCH 25/26] ixgbe/base: added x550em PHY reset function

2015-06-05 Thread Wenzhuo Lu
This patch adds x550em PHY reset function ixgbe_reset_phy_t_X550em. ixgbe_reset_phy_t_X550em calls the reset PHY generic, and then enables the x550em PHY LASI(Link Alarm Status Interrupt) interrupts. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 21

[dpdk-dev] [PATCH 26/26] ixgbe/base: block EEE(Energy Efficient Ethernet) setup on the interfaces that don't support EEE

2015-06-05 Thread Wenzhuo Lu
support. Signed-off-by: Wenzhuo Lu --- 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 8edc52c..da312ba 100644 --- a/drivers/net/ixgbe/base/ixgbe_x550.c +++ b/drivers/net

[dpdk-dev] [PATCH] ixgbe: fix x550 flow director issue

2015-06-15 Thread Wenzhuo Lu
and ports. Return err when the user try to config a flow director filter for other IP packets without flow director mask configed before. And print err log for it. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_fdir.c | 24 +++- 1 file changed, 23 insertions(+), 1

[dpdk-dev] [PATCH] ixgbe: fix x550 shutdown API issue

2015-06-16 Thread Wenzhuo Lu
quot; support copper ports. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 44 +++- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 7414a2e..ac7608e 1006

[dpdk-dev] [PATCH] ixgbe: fix a x550 DCB issue

2015-08-26 Thread Wenzhuo Lu
need to set the RXPBSIZE according to the NIC type. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_rxtx.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 91023b9..021229f

[dpdk-dev] [PATCH] ixgbe: fix link down issue on x550em_x

2015-12-21 Thread Wenzhuo Lu
Normally the auto-negotiation is supported by FW. But on X550EM_X_10G_T it's not supported by FW. As the port of X550EM_X_10G_T is 10G. If we connect the port with a peer which is 1G. The link is always down. We have to supprted auto-neg by SW to avoid such link down issue. Signed-off-by: root

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

2015-06-24 Thread Wenzhuo Lu
and X550em when disabling PCIe master *fix flow control to be KR only *force cs4227 LINE side to 10G SR mode *add support for new x550 PHY IDs Wenzhuo Lu (37): ixgbe/base: update readme ixgbe/base: update Low Power Link Up to use MAC ops link ixgbe/base: fix 1G and 10G link stability for x550em SFP

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

2015-06-24 Thread Wenzhuo Lu
Update readme file to show the version of the base code. 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 fa71d85..ac38708 100644 --- a/drivers/net

[dpdk-dev] [PATCH 02/37] ixgbe/base: update Low Power Link Up to use MAC ops link

2015-06-24 Thread Wenzhuo Lu
This patch updates x550em LPLU to use the MAC ops setup_link function pointer. This removes redundant code and provides iXFI and KR support between internal and external PHY. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 44 ++--- 1 file

[dpdk-dev] [PATCH 03/37] ixgbe/base: fix 1G and 10G link stability for x550em SFP+

2015-06-24 Thread Wenzhuo Lu
, ixgbe_setup_sfp_modules_X550em() does not know the speed, so we can't do anything useful here. This is a fundamental difference from the 82599 flow. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.h | 5 +- drivers/net/ixgbe/base/ixgbe_x550.c | 123 +--- 2

[dpdk-dev] [PATCH 04/37] ixgbe/base: update x550em SFP link setup

2015-06-24 Thread Wenzhuo Lu
This patch updates the x550em SFP link setup by adding ixgbe_sfp_type_unknown and ixgbe_sfp_type_not_present case expression to the ixgbe_setup_mac_link_sfp_x550em SFP type switch statement. This handles the case when no module is present. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 05/37] ixgbe/base: add shift define for EEE_SU.TEEE_DLY

2015-06-24 Thread Wenzhuo Lu
Adds define for the number of bits needed to shift the EEE_SU register in order to get the value of TEEE_DLY. 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

[dpdk-dev] [PATCH 06/37] ixgbe/base: add x550em identify SFP module support

2015-06-24 Thread Wenzhuo Lu
This patch adds identify SFP module support for x550em. x550em support returns an error for SFP module types not supported by x550em design. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 101 +++- drivers/net/ixgbe/base/ixgbe_x550.h | 1

[dpdk-dev] [PATCH 07/37] ixgbe/base: fix potential warning

2015-06-24 Thread Wenzhuo Lu
Fix the warning caused by an uninitialized variable which might have been used. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index

[dpdk-dev] [PATCH 08/37] ixgbe/base: return err when SFP module is not present

2015-06-24 Thread Wenzhuo Lu
This patch updates ixgbe_supported_sfp_modules_X550em to return IXGBE_ERR_SFP_NOT_PRESENT when SFP module is not present and updates ixgbe_setup_mac_link_sfp_x550em to handle this return value. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 9 - 1 file changed, 8

[dpdk-dev] [PATCH 09/37] ixgbe/base: power down the x550em PHY on overtemp events

2015-06-24 Thread Wenzhuo Lu
This patch powers down the x550em PHY on over-temp events. The PHY firmware is supposed to do this autonomously but that isn't implemented. The short-term stop-gap solution is for SW to power down the PHY when it reports an overtemp event. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 10/37] ixgbe/base: restore advertised autoneg after setting LPLU

2015-06-24 Thread Wenzhuo Lu
On systems that support LPLU in the firmware, the driver wouldn't be aware of the LPLU speed change, and it wouldn't cache the new value when the driver resumes. This patch emulates the same behavior by restoring the previous autoneg settings to autoneg_advertised. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH 11/37] ixgbe/base: fix UniPHY link configuration

2015-06-24 Thread Wenzhuo Lu
kes care of which PCS "slice" we are talking to and is directing writes to correct one, so KX4_PCS1 target is dead now and we cannot use it. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 5 ++--- drivers/net/ixgbe/base/ixgbe_x550.c | 4 ++-- 2 files changed, 4 ins

[dpdk-dev] [PATCH 12/37] ixgbe/base: add macro for x550em bus speed fuse

2015-06-24 Thread Wenzhuo Lu
x550em has two different bus speeds, 300 MHz and 400 MHz. A bit in a fuse register tells which it is, with a 1 meaning the bus is running at 300 MHz. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 13/37] ixgbe/base: add a new 82599 device ID

2015-06-24 Thread Wenzhuo Lu
Since this 82599 device supports WoL(Wake on LAN), driver needs a define for the sub device ID. 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/ixgbe_type.h index

[dpdk-dev] [PATCH 14/37] ixgbe/base: enable FEC when EEE is disabled

2015-06-24 Thread Wenzhuo Lu
function. The two features are not allowed to be enabled at the same time. The two features cannot both be disabled. If this ability is ever determined to be needed, we will need to define a new user parameter to control FEC independently of EEE. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe

[dpdk-dev] [PATCH 15/37] ixgbe/base: release semaphores in proper order

2015-06-24 Thread Wenzhuo Lu
Because we acquire two semaphore bits before setting the SWFW_SYNC register, we should release them in the reverse order that they were acquired. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x540.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH 17/37] ixgbe/base: use a semaphore to serialize IOSF accesses

2015-06-24 Thread Wenzhuo Lu
Because each IOSF access requires the use of multiple registers, use a semaphore to serialize those accesses. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/drivers/net/ixgbe

[dpdk-dev] [PATCH 18/37] ixgbe/base: check for functional ucode

2015-06-24 Thread Wenzhuo Lu
During init, check the ucode running in the CS4227. If it is not responding correctly, reset the part. This is a global reset so it must only be done the first time a driver loads after power-on. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 78

[dpdk-dev] [PATCH 16/37] ixgbe/base: add wait helper for IOSF accesses

2015-06-24 Thread Wenzhuo Lu
Add a helper function to wait for IOSF accesses to complete. Also perform this wait before each access, as specified in the datasheet. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 85 ++--- 1 file changed, 50 insertions(+), 35 deletions

[dpdk-dev] [PATCH 19/37] ixgbe/base: add KR/iXFI internal link mode support

2015-06-24 Thread Wenzhuo Lu
by adding the KR internal link support in the driver now. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 4 ++ drivers/net/ixgbe/base/ixgbe_x550.c | 123 +--- 2 files changed, 89 insertions(+), 38 deletions(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 20/37] ixgbe/base: check link again after getting speed

2015-06-24 Thread Wenzhuo Lu
Ensure link is still up after getting the speed, to ensure that the speed read is valid. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 79 ++--- 1 file changed, 57 insertions(+), 22 deletions(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 21/37] ixgbe/base: config MDIO clock for x550em

2015-06-24 Thread Wenzhuo Lu
may not remove this code in the future. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index a7e95d9..c2c0014 100644 --- a/drivers/net/ixgbe

[dpdk-dev] [PATCH 22/37] ixgbe/base: add support for led_on and led_off for X557 PHY LEDs

2015-06-24 Thread Wenzhuo Lu
This patch implements ixgbe_led_on_t_X550em and ixgbe_led_off_t_X550em function for turning on and off LEDs on X557 external PHY. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 3 +++ drivers/net/ixgbe/base/ixgbe_x550.c | 52 + drivers

[dpdk-dev] [PATCH 23/37] ixgbe/base: update EEE/FEC support for device X550EM_X_KR

2015-06-24 Thread Wenzhuo Lu
. When EEE is enabled, we advertise that we are capable. When EEE is disabled, we do not advertise that we are capable. This change makes us consistent with the power-on defaults that are in the NVM. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 6 -- drivers/net/ixgbe/base/ix

[dpdk-dev] [PATCH 24/37] ixgbe/base: introduce array of mac-type-dependent values

2015-06-24 Thread Wenzhuo Lu
references are changed to use it. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_api.c | 26 ++ drivers/net/ixgbe/base/ixgbe_type.h | 18 -- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_api.c b/drivers

[dpdk-dev] [PATCH 25/37] ixgbe/base: use mvals array for I2C_*_BY_MAC values

2015-06-24 Thread Wenzhuo Lu
Use the mvals array to hold differing values used for IXGBE_I2C_* symbols. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 63 - 1 file changed, 49 insertions(+), 14 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers

[dpdk-dev] [PATCH 26/37] ixgbe/base: use mvals array for *_GPI*_BY_MAC values

2015-06-24 Thread Wenzhuo Lu
Use the mvals array to hold differing values used for IXGBE_*_GPI* symbols. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 41 +++-- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b

[dpdk-dev] [PATCH 27/37] ixgbe/base: use mvals array for CIA*_BY_MAC values

2015-06-24 Thread Wenzhuo Lu
Use the mvals array to hold differing values use for CIAA and CIAD symbols. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 28/37] ixgbe/base: add new mac-dependent values for x540, x550

2015-06-24 Thread Wenzhuo Lu
; We think it's not an error and the checkpatch is overly aggressive. If we add the parentheses, it will broke our code and make it cannot be compiled. We should ignore this error safely enough. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 72 ++

[dpdk-dev] [PATCH 29/37] ixgbe/base: disable SW LPLU implementation for x557 V2

2015-06-24 Thread Wenzhuo Lu
-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 7c7829c..9958a63 100644 --- a/drivers/net/ixgbe/base/ixgbe_x550.c +++ b/drivers

[dpdk-dev] [PATCH 30/37] ixgbe/base: remove FEC disablement for x550em

2015-06-24 Thread Wenzhuo Lu
This patch removes the clearing of the FEC(Forward Error Correction) bits in ixgbe_setup_kr_speed_x550em. FEC default enablement is configured via the NVM and SW should not be overriding these defaults in this function. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 2

[dpdk-dev] [PATCH 31/37] ixgbe/base: modify register definition code style

2015-06-24 Thread Wenzhuo Lu
This path changes ((P == 0) ? () : ()) register definition into ((P) ? : ) style. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_type.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe

[dpdk-dev] [PATCH 33/37] ixgbe/base: fix flow control to be KR only

2015-06-24 Thread Wenzhuo Lu
The code in the if statement is specific to the KR PHY. However, the conditional was only checking for backplane. If the driver was using the KX4 backplane PHY, this code would execute but would write to the wrong PHY. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_x550.c | 7

[dpdk-dev] [PATCH 32/37] ixgbe/base: specific process for X550 and X550em when disabling PCIe master

2015-06-24 Thread Wenzhuo Lu
This patch skips the PCI transactions pending check in ixgbe_disable_pcie_master. The PCI transactions pending bit sticks high when there were pending transactions, we should wait and then continue with our reset flow. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_common.c | 3

[dpdk-dev] [PATCH 34/37] ixgbe/base: fix 5G and 2.5G speed description

2015-06-24 Thread Wenzhuo Lu
This patch fixes comment description for setting 2.5G and 5G speeds in ixgbe_setup_phy_link_generic. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_phy.c b/drivers/net/ixgbe

[dpdk-dev] [PATCH 35/37] ixgbe/base: force cs4227 LINE side to 10G SR mode

2015-06-24 Thread Wenzhuo Lu
According to the hardware, the LINE side of the cs4227 needs to be set to 10 Gbps SR mode regardless of the configuration of the link. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.h | 2 + drivers/net/ixgbe/base/ixgbe_x550.c | 143 2

[dpdk-dev] [PATCH 36/37] ixgbe/base: a minor optimization for max link up time

2015-06-24 Thread Wenzhuo Lu
seconds for link when external link is not established. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_82598.c | 4 ++-- drivers/net/ixgbe/base/ixgbe_api.c| 1 + drivers/net/ixgbe/base/ixgbe_common.c | 2 +- drivers/net/ixgbe/base/ixgbe_type.h | 1 + 4 files changed, 5

[dpdk-dev] [PATCH 37/37] ixgbe/base: add support for new x550 PHY IDs

2015-06-24 Thread Wenzhuo Lu
This patch adds support for new x550 PHY IDs: 0x0154 0x0223 0x0154 0x0221 Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_phy.c | 4 +++- drivers/net/ixgbe/base/ixgbe_type.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_phy.c

[dpdk-dev] [PATCH] ixgbe: fix the issue that auto negotiation for flow control cannot be disabled

2015-07-08 Thread Wenzhuo Lu
eter "autoneg on|off" be supproted. Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index f18550c..b78f8f5 100644 --- a/drivers/net/ixgb

[dpdk-dev] [PATCH] doc: announce ABI change of rte_fdir_filter, rte_fdir_masks

2015-07-09 Thread Wenzhuo Lu
For x550 supports 2 new flow director modes, MAC VLAN and Cloud. There're several new lookup fields for these 2 new modes, like MAC, tunnel type, TNI, VNI. So, we have to change the ABI to support these new lookup fields. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/abi.rst | 1 + 1 file

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dpdk-dev] [PATCH 00/34] update e1000 base driver

2015-10-14 Thread Wenzhuo Lu
the correct i210 register for EEMNGCTL *move the print to the right position *synchronization of MAC-PHY interface only on non- ME systems *fix to enable both ulp and EEE in Sx state Wenzhuo Lu (34): e1000/base: update readme and copyright e1000/base: add new devices e1000/base: fix issue with link

  1   2   3   4   5   >