[dpdk-dev] [PATCH] net/fm10k: fix FTAG mode on multi-queue

2016-07-15 Thread Xiao Wang
In multi-queue + FTAG use case, we need to turn tx_ftag_en on for all the Tx queues. Fixes: 7958b1310d5e ("fm10k: enable FTAG based forwarding") Reported-by: Ricky Li Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_ethdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletion

[dpdk-dev] [PATCH] net/fm10k: fix RSS hash config

2016-07-21 Thread Xiao Wang
Sometimes app just wants to update the RSS hash function and no RSS key update is needed, but fm10k pmd will return EINVAL for this case. If the rss_key is NULL, we don't need to check the rss_key_len. Fixes: 57033cdf8fdc ("fm10k: add PF RSS") Reported-by: Xueqin Lin Signed-off-by:

[dpdk-dev] [PATCH] net/fm10k: fix MAC address remnant in switch

2016-08-05 Thread Xiao Wang
, just as what the kernel driver does. Fixes: 8b5c9ec20b7b ("support VMDQ in MAC/VLAN filter") Reported-by: Xueqin Lin Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers

[dpdk-dev] [PATCH 1/5] net/fm10k: add back Rx checksum offload

2016-08-26 Thread Xiao Wang
A previous patch (http://dpdk.org/dev/patchwork/patch/12937/) removed some necessary lines about Rx checksum by mistake, this patch adds them back. Fixes: 6046898f5097 ("net/mbuf: remove unused Rx error flags") Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_rxtx.c | 10

[dpdk-dev] [PATCH 5/5] net/i40e: implement new Rx checksum flag

2016-08-26 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang --- drivers/net/i40e/i40e_rxtx.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 554d167..b49d9dc 100644 --- a/drivers/net

[dpdk-dev] [PATCH 3/5] net/e1000: implement new Rx checksum flag

2016-08-26 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang --- drivers/net/e1000/igb_rxtx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 9d80a0b..bc33aed 100644

[dpdk-dev] [PATCH 4/5] net/ixgbe: implement new Rx checksum flag

2016-08-26 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/ixgbe_rxtx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 8a306b0..d2dc82a

[dpdk-dev] [PATCH 2/5] net/fm10k: implement new Rx checksum flag

2016-08-26 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_rxtx.c | 4 drivers/net/fm10k/fm10k_rxtx_vec.c | 7 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/net/fm10k/fm10k_rxtx.c b

[dpdk-dev] [PATCH 0/5] implement new Rx checksum flag

2016-08-26 Thread Xiao Wang
set has dependency on the following patch: "mbuf: add new Rx checksum mbuf flags" (http://dpdk.org/dev/patchwork/patch/14941/) Xiao Wang (5): net/fm10k: add back Rx checksum offload net/fm10k: implement new Rx checksum flag net/e1000: implement new Rx checksum flag net/ixgbe: imp

[dpdk-dev] [PATCH 00/39] net/ixgbe: base code update

2016-08-28 Thread Xiao Wang
Update ixgbe base driver, including the following changes: * add X550em_a 10G PHY support * add VF multicast promiscuous mode support * support flow control auto negotiation for X550em_a 1G PHY * add X550em_a FW ALEF support * some functional fixes Xiao Wang (39

[dpdk-dev] [PATCH 01/39] net/ixgbe/base: fix delta check for setting VFTA

2016-08-28 Thread Xiao Wang
The delta value rather than vfta_delta pointer should be checked. Fixes: b978f7b38c14 ("net/ixgbe/base: simplify VLAN management") Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_82598.c | 6 +++--- drivers/net/ixgbe/base/ixgbe_api.c| 7 --- drivers/net/

[dpdk-dev] [PATCH 04/39] net/ixgbe/base: add X550em_a 10G PHY support

2016-08-28 Thread Xiao Wang
This patch use the shared MDIO functions ixgbe_read_phy_reg_x550a and ixgbe_write_phy_reg_x550a for X550em_a 10G PHY which supports flow control auto-negotiation. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_common.c | 1 + drivers/net/ixgbe/base/ixgbe_x550.c | 5 - 2 files

[dpdk-dev] [PATCH 05/39] net/ixgbe/base: support VF multicast promiscuous

2016-08-28 Thread Xiao Wang
Currently, VF is limited to 30 multicast addresses. In order to accommodate more addresses, this patch adds support for VF multicast promiscuous. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_mbx.h | 2 +- drivers/net/ixgbe/base/ixgbe_type.h | 1 + drivers/net/ixgbe/base

[dpdk-dev] [PATCH 06/39] net/ixgbe/base: introduce new ops init functions

2016-08-28 Thread Xiao Wang
This patch introduces new init_ops functions for X550EM_a and X550EM_x. This makes it easier to assign function pointers with specific dependencies (like media type) for each MAC. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_api.c | 4 +- drivers/net/ixgbe/base/ixgbe_api.h | 2

[dpdk-dev] [PATCH 07/39] net/ixgbe/base: separate PHY probe code

2016-08-28 Thread Xiao Wang
Move the PHY probe code into a separate function so that it can be reused. A subsequent patch will use it for configurations that provide the PHY address explicitly. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_phy.c | 58 +++--- 1 file changed, 35

[dpdk-dev] [PATCH 08/39] net/ixgbe/base: fully initialize X550em_a 1G PHYs

2016-08-28 Thread Xiao Wang
Fully initialize X550em_a 1G PHYs; move the PHY definitions from ixgbe_x550.h to ixgbe_phy.h, where they really belong; define register numbers in decimal because that is how they are in the spec. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_phy.c | 43 +-- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 09/39] net/ixgbe/base: add macros for VF promiscuous mode

2016-08-28 Thread Xiao Wang
Add new definitions to support VF unicast promiscuous mode which will be implemented in a later patch. Besides, rename definitions of subdevice IDs on SFP LOM to make it easier to distinguish. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 6 -- 1 file changed, 4

[dpdk-dev] [PATCH 10/39] net/ixgbe/base: add FC setup for X550em_a fiber

2016-08-28 Thread Xiao Wang
with related definitions. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 6 +- drivers/net/ixgbe/base/ixgbe_x550.c | 144 +++- drivers/net/ixgbe/base/ixgbe_x550.h | 3 +- 3 files changed, 147 insertions(+), 6 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH 11/39] net/ixgbe/base: add FC autoneg for X550em_a fiber

2016-08-28 Thread Xiao Wang
and related bits. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 3 ++ drivers/net/ixgbe/base/ixgbe_x550.c | 85 +++-- drivers/net/ixgbe/base/ixgbe_x550.h | 3 +- 3 files changed, 87 insertions(+), 4 deletions(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 12/39] net/ixgbe/base: clear page register in error path

2016-08-28 Thread Xiao Wang
The error exit should at least try to set the page register to 0 since other code will assume that state. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_x550.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550

[dpdk-dev] [PATCH 13/39] net/ixgbe/base: configure DMAC for 10Mb operation

2016-08-28 Thread Xiao Wang
Provide a DMA coalescing configuration for 10Mb link speed. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_x550.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index 2cd5730..08886a7 100644 --- a/drivers

[dpdk-dev] [PATCH 14/39] net/ixgbe/base: fix function comments about X550

2016-08-28 Thread Xiao Wang
Some function commets are obviously wrong, this patch rewords them. Fixes: d2e72774e58c ("ixgbe/base: support X550") Fixes: 0790adeb5675 ("ixgbe/base: support X550em_a device") Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_x550.c | 12 +--- 1 file c

[dpdk-dev] [PATCH 15/39] net/ixgbe/base: report setting LPE register error

2016-08-28 Thread Xiao Wang
Propagate return value when trying to set the maximum packet length. A PF driver could return a NACK for this request, and the VF driver will need to know this. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_vf.c | 24 +--- drivers/net/ixgbe/base/ixgbe_vf.h | 2

[dpdk-dev] [PATCH 17/39] net/ixgbe/base: access IOSF by host interface

2016-08-28 Thread Xiao Wang
to function pointer calls. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_phy.c | 2 +- drivers/net/ixgbe/base/ixgbe_x550.c | 38 ++--- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_phy.c b/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 18/39] net/ixgbe/base: fix check on NACK

2016-08-28 Thread Xiao Wang
Previously we checked only msgbuf[0] for (IXGBE_VF_SET_MACVLAN | IXGBE_VT_MSGTYPE_NACK), but this would not work if index != 0 and as a result NACK will not be detected. Fixes: af75078fece3 ("first public release") Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe

[dpdk-dev] [PATCH 19/39] net/ixgbe/base: define X550 PCIe serial MAC addr

2016-08-28 Thread Xiao Wang
Add SERIAL_NUMBER_MAC_ADDR definition for X550. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index f42ebaf..1fc7c02 100644

[dpdk-dev] [PATCH 20/39] net/ixgbe/base: bypass checking link for crosstalk

2016-08-28 Thread Xiao Wang
are true then don't bother checking the link, just say it is down. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_common.c | 72 +++ drivers/net/ixgbe/base/ixgbe_type.h | 1 + 2 files changed, 73 insertions(+) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 21/39] net/ixgbe/base: support X550em_a SGMII FC autoneg

2016-08-28 Thread Xiao Wang
during init to perform FC AN. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_x550.c | 172 drivers/net/ixgbe/base/ixgbe_x550.h | 2 + 2 files changed, 158 insertions(+), 16 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers

[dpdk-dev] [PATCH 22/39] net/ixgbe/base: add macros for GENEVE UDP port

2016-08-28 Thread Xiao Wang
X550em_a adds GENEVE support by using the upper 16 bits of VXLANCTRL to store the UDP port (VXLANCTRL.GENEVE_UDP_PORT). This patch adds definitions that can be used to manipulate the ports depending on which protocol is being configured. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base

[dpdk-dev] [PATCH 23/39] net/ixgbe/base: add bound check in LED functions

2016-08-28 Thread Xiao Wang
Do parameter check to prevent exceptional value being written into register. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_common.c | 15 ++- drivers/net/ixgbe/base/ixgbe_x540.c | 6 ++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/net

[dpdk-dev] [PATCH 24/39] net/ixgbe/base: use default check link function

2016-08-28 Thread Xiao Wang
This patch removes X550em_a specific check link function and use default ixgbe_check_mac_link_generic for it. It is not necessary to check both the MAC link register and external PHY registers when checking link. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_common.c | 7

[dpdk-dev] [PATCH 25/39] net/ixgbe/base: set default autoneg speed at reset

2016-08-28 Thread Xiao Wang
This patch avoids the situation where we initialize adapter and not yet set up phy.autoneg_advertised speeds. In that case we could end up in having no autoneg speeds enabled and get no link until we reset link and set autoneg speeds correctly. Signed-off-by: Xiao Wang --- drivers/net/ixgbe

[dpdk-dev] [PATCH 26/39] net/ixgbe/base: add missing FDIRSCTPM mask setting

2016-08-28 Thread Xiao Wang
This patch adds missing FDIRSCTPM mask setting for tunneled packets. It should be set the same way as FDIRTCPM and FDIRUDPM so that SCTP packets can be filtered correctly. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_82599.c | 16 +--- 1 file changed, 13 insertions

[dpdk-dev] [PATCH 27/39] net/ixgbe/base: commonize mailbox write and read

2016-08-28 Thread Xiao Wang
ixgbevf_write_msg_read_ack() is now performing mailbox write and read, so this patch use this function to commonize mailbox write and read. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_vf.c | 31 +++ 1 file changed, 7 insertions(+), 24 deletions(-) diff

[dpdk-dev] [PATCH 28/39] net/ixgbe/base: reduce delay for SWFW semaphore

2016-08-28 Thread Xiao Wang
. ixgbe_acquire_swfw_sync_X550a: Remove 5 ms delay since there are two 2 ms delays in the semaphore release flow. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_x540.c | 4 ++-- drivers/net/ixgbe/base/ixgbe_x550.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH 29/39] net/ixgbe/base: report autoneg supported for X550

2016-08-28 Thread Xiao Wang
Make sure ixgbe_device_supports_autoneg_fc() returns true for the device IDs of Seabrook and Shady Acres. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 31/39] net/ixgbe/base: unify link speed value

2016-08-28 Thread Xiao Wang
This patch changes the value of IXGBE_LINK_SPEED_10_FULL from 4 to 2, as 4 is reserved to 100Mbit Half Duplex in E1000 shared code. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH 32/39] net/ixgbe/base: separate ops init from PHY init

2016-08-28 Thread Xiao Wang
This patch moves PHY ops pointers initialization to ixgbe_init_phy_ops_X550em and PHY identifying/initializing to ixgbe_identify_phy_x550em. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_x550.c | 39 - 1 file changed, 25 insertions(+), 14

[dpdk-dev] [PATCH 33/39] net/ixgbe/base: add X550em_a FW ALEF support

2016-08-28 Thread Xiao Wang
This patch adds X550em_a FW ALEF support for B0 per DCR 64. ALEF is the new unified FW. The driver uses the KRM_PMD_RX_FLEX_PORT/ FLX_MASK_ST20 registers to configure the lane mode. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 16 +++ drivers/net/ixgbe/base/ixgbe_x550.c

[dpdk-dev] [PATCH 37/39] net/ixgbe/base: clean code of flow control autoneg

2016-08-28 Thread Xiao Wang
used only to pass the user settings to ixgbe_fc_enable_generic(). - make sure that start_hw does not fail when setup_fc is not implemented. - small fix in the debug message when ixgbe_device_supports_autoneg_fc() returns false. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_common.c

[dpdk-dev] [PATCH 38/39] net/ixgbe/base: do not skip PHY configuration

2016-08-28 Thread Xiao Wang
(). Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_common.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 3d42a8f..cca19ef 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c

[dpdk-dev] [PATCH 39/39] net/ixgbe/base: add base driver update brief

2016-08-28 Thread Xiao Wang
The ixgbe base driver was updated to version cid-10g-shared-code.2016.04.12. Signed-off-by: Xiao Wang --- doc/guides/rel_notes/release_16_11.rst | 8 drivers/net/ixgbe/base/README | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v2 0/5] implement new Rx checksum flag

2016-09-06 Thread Xiao Wang
ttp://dpdk.org/dev/patchwork/patch/14630/) Xiao Wang (5): net/fm10k: fix Rx checksum flags net/fm10k: implement new Rx checksum flag net/e1000: implement new Rx checksum flag net/ixgbe: implement new Rx checksum flag net/i40e: implement new Rx checksum flag drivers/net/e1000/igb_rxtx.

[dpdk-dev] [PATCH v2 1/5] net/fm10k: fix Rx checksum flags

2016-09-06 Thread Xiao Wang
A previous patch removed some necessary lines about Rx checksum offload by mistake, this patch adds them back. Fixes: 6046898f5097 ("net/mbuf: remove unused Rx error flags") Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_rxtx.c | 10 ++ 1 file changed, 10 insertion

[dpdk-dev] [PATCH v2 2/5] net/fm10k: implement new Rx checksum flag

2016-09-06 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Since vector Rx supports checksum offload, this patch removes the hw_ip_checksum check in fm10k_rx_vec_condition_check(). Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_rxtx.c | 4 drivers/net/fm10k

[dpdk-dev] [PATCH v2 3/5] net/e1000: implement new Rx checksum flag

2016-09-06 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang --- drivers/net/e1000/igb_rxtx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 9d80a0b..bc33aed 100644

[dpdk-dev] [PATCH v2 4/5] net/ixgbe: implement new Rx checksum flag

2016-09-06 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/ixgbe_rxtx.c | 4 +++- drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c | 30 -- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git

[dpdk-dev] [PATCH v2 5/5] net/i40e: implement new Rx checksum flag

2016-09-06 Thread Xiao Wang
Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang --- drivers/net/i40e/i40e_rxtx.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 554d167..b49d9dc 100644 --- a/drivers/net

[dpdk-dev] [PATCH] net/fm10k: fix SGLORT of VF Tx queues

2016-10-19 Thread Xiao Wang
The SGLORT (Source Global Resource Tag) of the VF queues should be assigned by PF driver, VF driver should not set these registers. Fixes: 3b845bf6bcd9 ("fm10k: fix switch manager high CPU usage") Signed-off-by: Xiao Wang Reported-by: Sarathx Somasekharan --- drivers/net/fm10k/fm10