[dpdk-dev] [PATCH v5] vhost: check header for legacy dequeue offload

2021-06-21 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v5: - Redefine the function parse_ethernet() to parse_headers(). (David) - Use mbuf helpers e.g. rte_pktmbuf_data_len() and rte_pktmbuf_mtod_offset(). (David) - Reset mbuf l2_len, l3_len and ol_flags when detecting anything invali

[PATCH] maintainers: update for fm10k/ifc drivers

2024-01-31 Thread Xiao Wang
Remove my name from maintainers. Signed-off-by: Xiao Wang --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5fb3a73f84..b9d258e627 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -759,7 +759,6 @@ F: doc/guides/nics/intel_vf.rst F: doc/guides

[dpdk-dev] [PATCH] net: promote make rarp packet API as stable

2021-09-07 Thread Xiao Wang
rte_net_make_rarp_packet was introduced in version v18.02, there was no change in this public API since then, and it's still being used by vhost lib and virtio driver, so promote it as stable ABI. Signed-off-by: Xiao Wang --- lib/net/rte_arp.h | 4 lib/net/version.map | 2 +- 2

[dpdk-dev] [PATCH] vdpa/ifc: check return value for PCI config read

2021-03-09 Thread Xiao Wang
The return value of rte_pci_read_config should be checked. Coverity issue: 302860 Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/vdpa/ifc/base/ifcvf.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) di

[dpdk-dev] [PATCH] vhost: add header check in dequeue offload

2021-03-10 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- lib/librte_vhost/virtio_net.c | 49 +-- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 583bf379c6..0fba005

[dpdk-dev] [PATCH v2] vhost: add header check in dequeue offload

2021-03-15 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v2: Allow empty L4 payload for cksum offload. --- lib/librte_vhost/virtio_net.c | 49 +-- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/li

[dpdk-dev] [PATCH v3] vhost: add header check in dequeue offload

2021-03-16 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v3: - Check data_len before calling rte_pktmbuf_mtod. (David) v2: - Allow empty L4 payload for cksum offload. (Konstantin) --- lib/librte_vhost/virtio_net.c | 49 +-- 1 file changed, 43 insert

[dpdk-dev] [PATCH v4] vhost: check header for legacy dequeue offload

2021-06-15 Thread Xiao Wang
fload capabilities") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- v4: - Rebase on head of main branch. - Allow empty L4 payload in GSO. v3: - Check data_len before calling rte_pktmbuf_mtod. (David) v2: - Allow empty L4 payload for cksum offload. (Konstantin) --- lib/vhost/virtio_

[dpdk-dev] [PATCH] net/i40e: fix Rx checksum flag

2017-01-19 Thread Xiao Wang
When no error reported in Rx descriptor, we should set CKSUM_GOOD flag before return. Fixes: b704f9071b09 ("net/i40e: implement new Rx checksum flag") Signed-off-by: Xiao Wang CC: sta...@dpdk.org --- drivers/net/i40e/i40e_rxtx.c | 5 - 1 file changed, 4 insertions(+), 1 deletio

[dpdk-dev] [PATCH 1/2] net/fm10k: fix pointer cast

2017-03-28 Thread Xiao Wang
The device specific data is located at dev->data->dev_private. Fixes: 162f32290a99 ("fm10k: move parameters initialization") Fixes: 039991bc28ff ("fm10k: add vector pre-condition check") Fixes: 77a8ab47eb38 ("fm10k: select best Rx function") Cc: sta..

[dpdk-dev] [PATCH] net/fm10k: fix pointer cast

2017-03-28 Thread Xiao Wang
The device specific data is located at dev->data->dev_private. Fixes: 162f32290a99 ("fm10k: move parameters initialization") Fixes: 039991bc28ff ("fm10k: add vector pre-condition check") Fixes: 77a8ab47eb38 ("fm10k: select best Rx function") Cc: sta..

[dpdk-dev] [PATCH] net/fm10k: fix secondary process crash

2017-03-28 Thread Xiao Wang
0k: introduce vector driver") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_ethdev.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 388f929..68

[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

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

2016-09-06 Thread Xiao Wang
t; (http://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_

[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 a

[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 v2 00/40] net/ixgbe: base code update

2016-09-25 Thread Xiao Wang
changes: * add X550em_a 10G PHY support * support flow control auto negotiation for X550em_a 1G PHY * add X550em_a FW ALEF support * increase mailbox version to ixgbe_mbox_api_13 * add two MAC ops for Hyper-V support * some functional fixes Xiao Wang (40): net/ixgbe/base: fix delta check for setting

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

2016-09-25 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 --- v2: - Removed the unrelated minor modifications from this patch. --- drivers/net/ixgbe/base/ixgbe_common.c | 2 +- 1 file

[dpdk-dev] [PATCH v2 02/40] net/ixgbe/base: remove X550em SFP iXFI setup

2016-09-25 Thread Xiao Wang
This patch removes X550em SFP iXFI setup for the drivers since there is no released hardware production with SFP iXFI. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_x550.c | 57 +++-- 1 file changed, 11 insertions(+), 46 deletions(-) diff --git a

[dpdk-dev] [PATCH v2 03/40] net/ixgbe/base: change endianness of PHY data

2016-09-25 Thread Xiao Wang
The x550a related firmware reverses the endianness of the PHY data read and written via host interface command, so make corresponding changes to that. Signed-off-by: Xiao Wang --- v2: - Rewrote the commit log to emphasize that the change is x550a related. --- drivers/net/ixgbe/base

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

2016-09-25 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 v2 05/40] net/ixgbe/base: move vf_update_xcast_mode to base code

2016-09-25 Thread Xiao Wang
This patch adds update_xcast_mode callback in mac ops, and moves ixgbevf_update_xcast_mode function into base code. Signed-off-by: Xiao Wang --- v2: - Rewrote the commit log to describe what the patch actually does. --- drivers/net/ixgbe/base/ixgbe_mbx.h | 2 +- drivers/net/ixgbe/base

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

2016-09-25 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 v2 07/40] net/ixgbe/base: separate PHY probe code

2016-09-25 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 v2 08/40] net/ixgbe/base: fully initialize X550em_a 1G PHYs

2016-09-25 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 v2 10/40] net/ixgbe/base: add FC setup for X550em_a fiber

2016-09-25 Thread Xiao Wang
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 v2 11/40] net/ixgbe/base: add FC autoneg for X550em_a fiber

2016-09-25 Thread Xiao Wang
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 v2 12/40] net/ixgbe/base: clear page register in error path

2016-09-25 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 v2 13/40] net/ixgbe/base: configure DMAC for 10Mb operation

2016-09-25 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 v2 14/40] net/ixgbe/base: fix function comments about X550

2016-09-25 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 v2 15/40] net/ixgbe/base: report setting LPE register error

2016-09-25 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 v2 09/40] net/ixgbe/base: add macros for VF promiscuous mode

2016-09-25 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 v2 16/40] net/ixgbe/base: bump mailbox version

2016-09-25 Thread Xiao Wang
This patch will pave the way for the new VF unicast promiscuous mode support. Signed-off-by: Xiao Wang --- v2: - Removed the minor cleanup from this patch. --- drivers/net/ixgbe/base/ixgbe_mbx.h | 1 + drivers/net/ixgbe/base/ixgbe_vf.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a

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

2016-09-25 Thread Xiao Wang
calls. Signed-off-by: Xiao Wang --- v2: - Rewrote the commit log to cover the ixgbe_write_phy_reg_mdi convertion. --- drivers/net/ixgbe/base/ixgbe_phy.c | 2 +- drivers/net/ixgbe/base/ixgbe_x550.c | 38 ++--- 2 files changed, 24 insertions(+), 16

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

2016-09-25 Thread Xiao Wang
Previously we checked only return buffer for (IXGBE_VF_SET_MACVLAN | IXGBE_VT_MSGTYPE_NACK), but this would not work if index is not 0 and as a result NACK will not be detected. Fixes: af75078fece3 ("first public release") Signed-off-by: Xiao Wang --- v2: - Rewrote the commit log.

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

2016-09-25 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 --- a

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

2016-09-25 Thread Xiao Wang
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

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

2016-09-25 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 v2 22/40] net/ixgbe/base: add macros for GENEVE UDP port

2016-09-25 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 v2 23/40] net/ixgbe/base: add bound check in LED functions

2016-09-25 Thread Xiao Wang
Do parameter check to prevent exceptional value being written into register. Signed-off-by: Xiao Wang --- v2: - Removed variable type change of secrxreg from this patch. --- drivers/net/ixgbe/base/ixgbe_common.c | 13 + drivers/net/ixgbe/base/ixgbe_x540.c | 6 ++ 2 files

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

2016-09-25 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 v2 25/40] net/ixgbe/base: set default autoneg speed at reset

2016-09-25 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 v2 26/40] net/ixgbe/base: add missing FDIRSCTPM mask setting

2016-09-25 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 v2 27/40] net/ixgbe/base: commonize mailbox write and read

2016-09-25 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 | 36 1 file changed, 8 insertions(+), 28 deletions

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

2016-09-25 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 --- v2: - Removed the unrelated blank line change from this patch. --- drivers/net/ixgbe/base/ixgbe_x540.c | 3 +-- drivers/net/ixgbe/base/ixgbe_x550.c | 1 - 2 files

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

2016-09-25 Thread Xiao Wang
Make sure ixgbe_device_supports_autoneg_fc() returns true for the device IDs of X550EM_A_1G_T and X550EM_A_1G_T_L. Signed-off-by: Xiao Wang --- v2: - Removed some internal device names in commit log. --- drivers/net/ixgbe/base/ixgbe_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[dpdk-dev] [PATCH v2 30/40] net/ixgbe/base: remove X550em_a 100Mbps support

2016-09-25 Thread Xiao Wang
X550em_a only supports 10G/1G link. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_phy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base/ixgbe_phy.c b/drivers/net/ixgbe/base/ixgbe_phy.c index ee8618f..43c55d7 100644 --- a/drivers/net/ixgbe/base/ixgbe_phy.c

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

2016-09-25 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 v2 32/40] net/ixgbe/base: separate ops init from PHY init

2016-09-25 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 v2 33/40] net/ixgbe/base: add X550em_a FW ALEF support

2016-09-25 Thread Xiao Wang
This patch adds X550em_a FW ALEF support. 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 --- v2: - Removed the term that's only used internally in the commit log. --- drivers/net/ixgbe

[dpdk-dev] [PATCH v2 34/40] net/ixgbe/base: add two MAC ops for Hyper-V

2016-09-25 Thread Xiao Wang
This patch adds negotiate_api_version and set_rlpml into mac_ops, with the introduction of Hyper-V functionality, we can have separate functions to accommodate different implementations without breaking the other. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 2 ++ drivers

[dpdk-dev] [PATCH v2 35/40] net/ixgbe/base: hold semaphore for shadow RAM access

2016-09-25 Thread Xiao Wang
ixgbe_read_ee_hostif_data_X550 in favor of the function ixgbe_read_ee_hostif_X550 and it now gets both semaphore bits at once instead of nesting them. The new arrangement is able to get both the management interface and the EEPROM semaphores at the same time instead of separately. Signed-off-by: Xiao Wang --- v2: - Removed

[dpdk-dev] [PATCH v2 36/40] net/ixgbe/base: update X550em_a backplane speed

2016-09-25 Thread Xiao Wang
Correct link flow for X550em_a backplane with ALEF. Report the correct link capabilities: SKUs configured for 2.5G only support 2.5G. non-10G SKUs can only support 2.5 or 1G. Signed-off-by: Xiao Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 5 + drivers/net/ixgbe/base/ixgbe_x550.c

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

2016-09-25 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 --- v2: - Removed the unrelated minor

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

2016-09-25 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 e0dc3b5..8230ae1 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c

[dpdk-dev] [PATCH v2 39/40] net/ixgbe/base: clean up

2016-09-25 Thread Xiao Wang
Change the parameter bypass_vlvf to vlvf_bypass for consistency with ixgbe_common.c. Clean up some whitespace and disalignment. Change variable type of secrxreg from int to u32 as it's used to store register value. Signed-off-by: Xiao Wang --- v2: - Added this patch to gather all the

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

2016-09-25 Thread Xiao Wang
The ixgbe base driver was updated to version cid-10g-shared-code.2016.04.12. Signed-off-by: Xiao Wang --- v2: - Added two new items into the shared code update log. - Removed the "add VF multicast promiscuous mode support", since we already supported it before. ---

[dpdk-dev] [PATCH] net/fm10k: initialize link status in device start

2017-05-30 Thread Xiao Wang
If port LSC interrupt is configured, application will read link status directly, so driver need to prepare that value in advance. Fixes: 9ae6068c86da ("fm10k: add dev start/stop") Cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/fm10k/fm10k_ethdev.c | 5 + 1 file

[dpdk-dev] [PATCH v2] net/fm10k: initialize link status in device start

2017-06-21 Thread Xiao Wang
sta...@dpdk.org Signed-off-by: Xiao Wang --- v2: * Rewrite commit message, add information about fm10k PHY. * Always do link_update in dev_start. --- drivers/net/fm10k/fm10k_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k

[dpdk-dev] [PATCH] net/virtio: fix queue notify

2017-04-10 Thread Xiao Wang
According to spec, we should write virtqueue index into the notify address, rather than 1. Besides, some HW backend may rely on the data written to identify which queue need to serve. Fixes: 6ba1f63b5ab0 ("virtio: support specification 1.0") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH v2 0/9] support SW assisted VDPA live migration

2018-12-12 Thread Xiao Wang
pdate. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (9): vhost: provide helper for host notifier ctrl vhost: provide helpers for virtio ring relay net/ifc: dump debug message for er

[dpdk-dev] [PATCH v2 1/9] vhost: provide helper for host notifier ctrl

2018-12-12 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang --- v2: * Reword the vdpa host notifier control API comment. --- drivers/net/ifc/ifcvf_vdpa.c | 3

[dpdk-dev] [PATCH v2 6/9] net/ifc: add devarg for LM mode

2018-12-12 Thread Xiao Wang
parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index c0e50

[dpdk-dev] [PATCH v2 2/9] vhost: provide helpers for virtio ring relay

2018-12-12 Thread Xiao Wang
mediate ring to guest ring, and helps to do dirty page logging for live migration. The next patch will leverage these two helpers. Signed-off-by: Xiao Wang --- v2: * Make the vring relay API parameter as "void *" to accomodate the future potential new ring layout, e.g. packed r

[dpdk-dev] [PATCH v2 4/9] net/ifc: store only registered device instance

2018-12-12 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4

[dpdk-dev] [PATCH v2 3/9] net/ifc: dump debug message for error

2018-12-12 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc

[dpdk-dev] [PATCH v2 5/9] net/ifc: detect if VDPA mode is specified

2018-12-12 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver doesn't not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang --- drivers/net/ifc/if

[dpdk-dev] [PATCH v2 9/9] doc: update ifc NIC document

2018-12-12 Thread Xiao Wang
Signed-off-by: Xiao Wang --- v2: * Add release note. --- doc/guides/nics/ifc.rst| 7 +++ doc/guides/rel_notes/release_19_02.rst | 5 + 2 files changed, 12 insertions(+) diff --git a/doc/guides/nics/ifc.rst b/doc/guides/nics/ifc.rst index 48f9adf1d..858f35f74 100644 --- a

[dpdk-dev] [PATCH v2 8/9] net/ifc: support SW assisted VDPA live migration

2018-12-12 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- v2: * Make the parameter parsing code shorter. --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 dele

[dpdk-dev] [PATCH v2 7/9] net/ifc: use lib API for used ring logging

2018-12-12 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers

[dpdk-dev] [PATCH v3 1/9] vhost: provide helper for host notifier ctrl

2018-12-13 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang --- v2: * Reword the vdpa host notifier control API comment. --- drivers/net/ifc/ifcvf_vdpa.c | 3

[dpdk-dev] [PATCH v3 3/9] net/ifc: dump debug message for error

2018-12-13 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc

[dpdk-dev] [PATCH v3 0/9] support SW assisted VDPA live migration

2018-12-13 Thread Xiao Wang
e. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (9): vhost: provide helper for host notifier ctrl vhost: provide helpers for virtio ring relay net/ifc: dump debug message for error

[dpdk-dev] [PATCH v3 2/9] vhost: provide helpers for virtio ring relay

2018-12-13 Thread Xiao Wang
mediate ring to guest ring, and helps to do dirty page logging for live migration. The next patch will leverage these two helpers. Signed-off-by: Xiao Wang --- v3: * Fix indent in relay code. * Fix the iova access mode issue of buffer check. * Rename the relay API to be more generic, and add more

[dpdk-dev] [PATCH v3 7/9] net/ifc: use lib API for used ring logging

2018-12-13 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers

[dpdk-dev] [PATCH v3 8/9] net/ifc: support SW assisted VDPA live migration

2018-12-13 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- v2: * Make the parameter parsing code shorter. --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 dele

[dpdk-dev] [PATCH v3 6/9] net/ifc: add devarg for LM mode

2018-12-13 Thread Xiao Wang
parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index c0e50

[dpdk-dev] [PATCH v3 5/9] net/ifc: detect if VDPA mode is specified

2018-12-13 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver doesn't not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang --- v3: * Add kvargs li

[dpdk-dev] [PATCH v3 4/9] net/ifc: store only registered device instance

2018-12-13 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4

[dpdk-dev] [PATCH v3 9/9] doc: update ifc NIC document

2018-12-13 Thread Xiao Wang
Add the SW assisted VDPA live migration feature into NIC doc. Signed-off-by: Xiao Wang --- v3: * Add commit message for the doc update patch. * More description on the device argument. v2: * Add release note. --- doc/guides/nics/ifc.rst| 8 doc/guides/rel_notes

[dpdk-dev] [PATCH v4 00/10] support SW assisted VDPA live migration

2018-12-14 Thread Xiao Wang
.g. packed ring. * Add parameter check for the new API. * Add memory barrier for ring idx update. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (10): vhost: remove unused internal API vhost

[dpdk-dev] [PATCH v4 02/10] vhost: provide helper for host notifier ctrl

2018-12-14 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 3 +++ lib/librte_vhost/rte_vdpa.h| 18

[dpdk-dev] [PATCH v4 04/10] net/ifc: dump debug message for error

2018-12-14 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc

[dpdk-dev] [PATCH v4 01/10] vhost: remove unused internal API

2018-12-14 Thread Xiao Wang
vhost_detach_vdpa_device() is internally defined but not used, remove it in this patch. Signed-off-by: Xiao Wang --- lib/librte_vhost/vhost.c | 13 - lib/librte_vhost/vhost.h | 1 - 2 files changed, 14 deletions(-) diff --git a/lib/librte_vhost/vhost.c b/lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v4 03/10] vhost: provide helpers for virtio ring relay

2018-12-14 Thread Xiao Wang
mediate ring to guest ring, and helps to do dirty page logging for live migration. The next patch will leverage these two helpers. Signed-off-by: Xiao Wang --- lib/librte_vhost/rte_vdpa.h| 39 +++ lib/librte_vhost/rte_vhost_version.map | 2 + lib/librte_vhost/vdpa.c

[dpdk-dev] [PATCH v4 05/10] net/ifc: store only registered device instance

2018-12-14 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file changed, 4 insertions(+), 4

[dpdk-dev] [PATCH v4 06/10] net/ifc: detect if VDPA mode is specified

2018-12-14 Thread Xiao Wang
If user wants the VF to be used in VDPA (vhost data path acceleration) mode, then the user can add a "vdpa=1" parameter for the device. So if driver doesn't not find this option, it should quit and let the bus continue the probe. Signed-off-by: Xiao Wang --- drivers/net/ifc/Ma

[dpdk-dev] [PATCH v4 09/10] net/ifc: support SW assisted VDPA live migration

2018-12-14 Thread Xiao Wang
ation when selecting the live migration support mode. Signed-off-by: Xiao Wang --- drivers/net/ifc/base/ifcvf.h | 1 + drivers/net/ifc/ifcvf_vdpa.c | 346 ++- 2 files changed, 344 insertions(+), 3 deletions(-) diff --git a/drivers/net/ifc/base/ifcvf.h b/dr

[dpdk-dev] [PATCH v4 08/10] net/ifc: use lib API for used ring logging

2018-12-14 Thread Xiao Wang
Vhost lib has already provided a helper for used ring logging, driver could use it to reduce code. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers

[dpdk-dev] [PATCH v4 07/10] net/ifc: add devarg for LM mode

2018-12-14 Thread Xiao Wang
parameter, device will do dirty page logging and there's no relay thread consuming CPU resource. Signed-off-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index c0e50

[dpdk-dev] [PATCH v4 10/10] doc: update ifc NIC document

2018-12-14 Thread Xiao Wang
Add the SW assisted VDPA live migration feature into NIC doc. Signed-off-by: Xiao Wang --- doc/guides/nics/ifc.rst| 8 doc/guides/rel_notes/release_19_02.rst | 6 ++ 2 files changed, 14 insertions(+) diff --git a/doc/guides/nics/ifc.rst b/doc/guides/nics/ifc.rst

[dpdk-dev] [PATCH v5 00/10] support SW assisted VDPA live migration

2018-12-18 Thread Xiao Wang
otential new ring layout, e.g. packed ring. * Add parameter check for the new API. * Add memory barrier for ring idx update. * Remove the used ring logging in the relay. * Some comment fix and code cleaning according to Tiwei's comment. * Add release note update. Xiao Wang (10): vhost: rem

[dpdk-dev] [PATCH v5 03/10] vhost: provide helpers for virtio ring relay

2018-12-18 Thread Xiao Wang
mediated ring to guest ring, and help to do dirty page logging for live migration. The later patch will leverage these two helpers. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- lib/librte_vhost/rte_vdpa.h| 39 +++ lib/librte_vhost/rte_vhost_version.map | 2 + lib

[dpdk-dev] [PATCH v5 01/10] vhost: remove unused internal API

2018-12-18 Thread Xiao Wang
vhost_detach_vdpa_device() is internally defined but not used, remove it in this patch. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- lib/librte_vhost/vhost.c | 13 - lib/librte_vhost/vhost.h | 1 - 2 files changed, 14 deletions(-) diff --git a/lib/librte_vhost

[dpdk-dev] [PATCH v5 04/10] net/ifc: dump debug message for error

2018-12-18 Thread Xiao Wang
Driver probe may fail for different causes, debug message is helpful for debugging issue. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/ifc/ifcvf_vdpa.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/ifc/ifcvf_vdpa.c

[dpdk-dev] [PATCH v5 05/10] net/ifc: store only registered device instance

2018-12-18 Thread Xiao Wang
If driver fails to register ifc VF device into vhost lib, then this device should not be stored. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") cc: sta...@dpdk.org Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/ifc/ifcvf_vdpa.c | 8 1 file

[dpdk-dev] [PATCH v5 02/10] vhost: provide helper for host notifier ctrl

2018-12-18 Thread Xiao Wang
VDPA driver can decide if it needs to enable/disable the host notifier mapping, so exposing a API can allow flexibility. A later patch will base on this. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/ifc/ifcvf_vdpa.c | 3 +++ lib/librte_vhost/rte_vdpa.h

  1   2   3   4   >