[PATCH] maintainers: update for testpmd

2022-06-13 Thread Xiaoyun Li
: app/test/sample_packet_forward.c F: app/test/sample_packet_forward.h Networking drivers testing tool -M: Xiaoyun Li M: Aman Singh M: Yuying Zhang T: git://dpdk.org/next/dpdk-next-net -- 2.25.1

[PATCH] net/af_xdp: allow using copy mode in XSK

2022-06-13 Thread Xiaoyun Li
XDP socket into copy mode. Signed-off-by: Xiaoyun Li --- doc/guides/nics/af_xdp.rst | 2 ++ drivers/net/af_xdp/rte_eth_af_xdp.c | 25 - 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/doc/guides/nics/af_xdp.rst b/doc/guides/nics/af_xdp.rst i

[PATCH v2] net/af_xdp: allow using copy mode in XSK

2022-06-14 Thread Xiaoyun Li
ocket into copy mode. Signed-off-by: Xiaoyun Li --- v2: * Change name from no_zerocopy to force_copy. --- doc/guides/nics/af_xdp.rst | 2 ++ drivers/net/af_xdp/rte_eth_af_xdp.c | 25 - 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/doc/guides/ni

[PATCH v6 0/2] Add functions to calculate UDP/TCP cksum in mbuf

2022-01-24 Thread Xiaoyun Li
Added functions to calculate UDP/TCP checksum for packets which may be over multi-segments and called the functions in testpmd csum forwarding mode to support UDP/TCP sotfware checksum over multi-segments. Xiaoyun Li (2): net: add functions to calculate UDP/TCP cksum in mbuf app/testpmd

[PATCH v6 2/2] app/testpmd: enable L4 SW csum over multi segments

2022-01-24 Thread Xiaoyun Li
Csum forwarding mode only supports software UDP/TCP csum calculation for single segment packets when hardware offload is not enabled. This patch enables software UDP/TCP csum calculation over multiple segments. Signed-off-by: Xiaoyun Li Tested-by: Sunil Pai G --- app/test-pmd/csumonly.c

[PATCH v6 1/2] net: add functions to calculate UDP/TCP cksum in mbuf

2022-01-24 Thread Xiaoyun Li
Add functions to call rte_raw_cksum_mbuf() to calculate IPv4/6 UDP/TCP checksum in mbuf which can be over multi-segments. Signed-off-by: Xiaoyun Li Acked-by: Aman Singh Acked-by: Ferruh Yigit Tested-by: Sunil Pai G --- doc/guides/rel_notes/release_22_03.rst | 11 ++ lib/net/rte_ip.h

[dpdk-dev] [PATCH] app/testpmd: fix l4 sw csum over multi segments

2021-10-14 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- app/test-pmd/csumonly.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 090797318a..5df3be0a6f 100644 ---

[dpdk-dev] [PATCH v2] app/testpmd: fix l4 sw csum over multi segments

2021-10-17 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Use static stack memory instead of dynamic allocating in datapath. --- app/test-pmd/csumonly.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/csumon

[dpdk-dev] [PATCH v3] app/testpmd: fix l4 sw csum over multi segments

2021-10-20 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v3: * Use rte_raw_cksum() for multi-segs case instead of copying the whole * packet. v2: * Use static stack memory instead of dynamic allocating in datapath --- app/test-pmd/csumo

[dpdk-dev] [PATCH v3] app/testpmd: fix l4 sw csum over multi segments

2021-10-20 Thread Xiaoyun Li
("first public release") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v3: * Use rte_raw_cksum() for multi-segs case instead of copying the whole * packet. v2: * Use static stack memory instead of dynamic allocating in datapath --- app/test-pmd/csumo

[dpdk-dev] [PATCH] net/iavf: fix tx thresh check issue

2021-07-22 Thread Xiaoyun Li
Function check_tx_thresh is called with wrong parameter. If the check fails, tx_queue_setup should return error not keep going. iThis patch fixes above issues. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- driver

[PATCH v4 0/2] Add functions to calculate UDP/TCP cksum in mbuf

2021-12-03 Thread Xiaoyun Li
Added functions to calculate UDP/TCP checksum for packets which may be over multi-segments and fix the checksum issue with testpmd csum forwarding mode. Xiaoyun Li (2): net: add functions to calculate UDP/TCP cksum in mbuf testpmd: fix l4 sw csum over multi segments --- v4: * Called

[PATCH v4 1/2] net: add functions to calculate UDP/TCP cksum in mbuf

2021-12-03 Thread Xiaoyun Li
Add functions to call rte_raw_cksum_mbuf() to calculate IPv4/6 UDP/TCP checksum in mbuf which can be over multi-segments. Signed-off-by: Xiaoyun Li --- doc/guides/rel_notes/release_22_03.rst | 10 ++ lib/net/rte_ip.h | 186 + lib/net/version.map

[PATCH v4 2/2] testpmd: fix l4 sw csum over multi segments

2021-12-03 Thread Xiaoyun Li
In csum forwarding mode, software UDP/TCP csum calculation only takes the first segment into account while using the whole packet length so the calculation will read invalid memory region with multi-segments packets and will get wrong value. This patch fixes this issue. Signed-off-by: Xiaoyun Li

[PATCH v5 0/2] Add functions to calculate UDP/TCP cksum in mbuf

2022-01-06 Thread Xiaoyun Li
Added functions to calculate UDP/TCP checksum for packets which may be over multi-segments and fix the checksum issue with testpmd csum forwarding mode. Xiaoyun Li (2): net: add functions to calculate UDP/TCP cksum in mbuf testpmd: fix l4 sw csum over multi segments --- v5: * Fixed commit

[PATCH v5 1/2] net: add functions to calculate UDP/TCP cksum in mbuf

2022-01-06 Thread Xiaoyun Li
Add functions to call rte_raw_cksum_mbuf() to calculate IPv4/6 UDP/TCP checksum in mbuf which can be over multi-segments. Signed-off-by: Xiaoyun Li Acked-by: Aman Singh Tested-by: Sunil Pai G --- doc/guides/rel_notes/release_22_03.rst | 11 ++ lib/net/rte_ip.h | 186

[PATCH v5 2/2] testpmd: fix l4 sw csum over multi segments

2022-01-06 Thread Xiaoyun Li
In csum forwarding mode, software UDP/TCP csum calculation only takes the first segment into account while using the whole packet length so the calculation will read invalid memory region with multi-segments packets and will get wrong value. This patch fixes this issue. Signed-off-by: Xiaoyun Li

[dpdk-dev] [PATCH] net/iavf: fix VLAN insert issue

2021-02-03 Thread Xiaoyun Li
The new VIRTCHNL_VF_OFFLOAD_VLAN_V2 capability allows PF to set the location of TX VLAN insertion. So VF needs to insert VLAN tag according to the location flags. Fixes: 1c301e8c3cff ("net/iavf: support new VLAN capabilities") Signed-off-by: Xiaoyun Li --- drivers/net/iavf/iavf_r

[dpdk-dev] [PATCH] app/testpmd: remove unnecessary tunnel UDP cmd check

2021-02-17 Thread Xiaoyun Li
d: VXLAN packet identification") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- app/test-pmd/cmdline.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 59722d268b..d77958b783 100644 --- a/app/test-pm

[dpdk-dev] [PATCH] net/i40e: fix IPv4 fragment offload issue

2021-02-26 Thread Xiaoyun Li
1: Rule 1: mask=0x3fff, spec=0 Only fragment packets can hit rule 2: Rule 2: mask=0x3fff, spec=0x8, last=0x2000 This patch allows the above rules. Fixes: 42044b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- driver

[dpdk-dev] [PATCH v2] net/i40e: fix IPv4 fragment offload issue

2021-03-01 Thread Xiaoyun Li
1: Rule 1: mask=0x3fff, spec=0 Only fragment packets can hit rule 2: Rule 2: mask=0x3fff, spec=0x8, last=0x2000 This patch allows the above rules. Fixes: 42044b69c67d ("net/i40e: support input set selection for FDIR") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Fixed a typ

[dpdk-dev] [PATCH] ethdev: remove experimental flag from getting intr fd API

2021-08-31 Thread Xiaoyun Li
Remove the experimental tag for rte_eth_dev_rx_intr_ctl_q_get_fd API that was introduced in 18.11 and have been around for 11 releases. Signed-off-by: Xiaoyun Li --- lib/ethdev/rte_ethdev.h | 4 lib/ethdev/version.map | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a

[PATCH 00/10] introduce GVE PMD

2022-07-29 Thread Xiaoyun Li
1.3.0 and the original code is in https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux/tree/v1.3.0 Xiaoyun Li (10): net/gve: introduce GVE PMD base code net/gve: add logs and OS specific implementation net/gve: support device initialization net/gve: add link update support

[PATCH 01/10] net/gve: introduce GVE PMD base code

2022-07-29 Thread Xiaoyun Li
/google/gve Signed-off-by: Xiaoyun Li Signed-off-by: Haiyue Wang --- drivers/net/gve/gve_adminq.c | 925 + drivers/net/gve/gve_adminq.h | 381 ++ drivers/net/gve/gve_desc.h | 137 + drivers/net/gve/gve_desc_dqo.h | 254 + drivers/net

[PATCH 02/10] net/gve: add logs and OS specific implementation

2022-07-29 Thread Xiaoyun Li
Add GVE PMD logs. Add some MACRO definitions and memory operations which are specific for DPDK. Signed-off-by: Haiyue Wang Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve_adminq.h | 2 + drivers/net/gve/gve_desc.h | 2 + drivers/net/gve/gve_desc_dqo.h | 2 + drivers/net/gve

[PATCH 03/10] net/gve: support device initialization

2022-07-29 Thread Xiaoyun Li
Support device init and the fowllowing devops: - dev_configure - dev_start - dev_stop - dev_close Signed-off-by: Haiyue Wang Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 249 +++ drivers/net/gve/gve_adminq.c | 1 + drivers/net/gve/gve_ethdev.c

[PATCH 04/10] net/gve: add link update support

2022-07-29 Thread Xiaoyun Li
Support dev_ops link_update. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve_ethdev.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c index f10f273f7d..435115c047 100644 --- a/drivers/net/gve

[PATCH 05/10] net/gve: add MTU set support

2022-07-29 Thread Xiaoyun Li
Support dev_ops mtu_set. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve_ethdev.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c index 435115c047..26b45fde6f 100644 --- a/drivers/net/gve

[PATCH 06/10] net/gve: add queue operations

2022-07-29 Thread Xiaoyun Li
Add support for queue operations: - setup rx/tx queue - release rx/tx queue - start rx/tx queues - stop rx/tx queues Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 52 + drivers/net/gve/gve_ethdev.c | 203 + drivers/net/gve/gve_rx.c

[PATCH 07/10] net/gve: add Rx/Tx support

2022-07-29 Thread Xiaoyun Li
Add Rx/Tx of GQI_QPL queue format and GQI_RDA queue format. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 17 ++ drivers/net/gve/gve_ethdev.c | 5 + drivers/net/gve/gve_rx.c | 143 +++ drivers/net/gve/gve_tx.c | 452 +++ 4 files

[PATCH 08/10] net/gve: add support to get dev info and configure dev

2022-07-29 Thread Xiaoyun Li
Add dev_ops dev_infos_get. Complete dev_configure with RX offloads configuration. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 3 ++ drivers/net/gve/gve_ethdev.c | 61 2 files changed, 64 insertions(+) diff --git a/drivers/net/gve/gve.h b

[PATCH 09/10] net/gve: add stats support

2022-07-29 Thread Xiaoyun Li
Update stats add support of dev_ops stats_get/reset. Signed-off-by: Xiaoyun Li --- drivers/net/gve/gve.h| 10 ++ drivers/net/gve/gve_ethdev.c | 69 drivers/net/gve/gve_rx.c | 15 ++-- drivers/net/gve/gve_tx.c | 12 +++ 4 files

[PATCH 10/10] doc: update documentation

2022-07-29 Thread Xiaoyun Li
Update documentation of GVE PMD and release note. Add Junfeng Guo as GVE PMD maintainer since he'll work on GVE PMD in the future and maintain it and I won't be available for maintaining. Signed-off-by: Xiaoyun Li --- MAINTAINERS| 6 +++ doc/guides/nic

[dpdk-dev] [PATCH v4] examples/tep_term: deprecate this example

2020-10-26 Thread Xiaoyun Li
offloading can be replaced with flow rules in testpmd like Chapter "Sample VXLAN flow rules" in Testpmd Application User Guide. And this example hasn't been used for a long time. So deprecate this example. Signed-off-by: Xiaoyun Li Acked-by: Thomas Monjalon Acked-by: Andrew Rybchenko A

[dpdk-dev] [PATCH] net/i40e: fix PF notify issue when VF not up

2017-07-24 Thread Xiaoyun Li
This patch modifies PF notify error to warning when not starting up VF. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_pf.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/driver

[dpdk-dev] [PATCH v2] net/i40e: fix PF notify issue when VF not up

2017-07-27 Thread Xiaoyun Li
This patch modifies PF notify error to warning when not starting up VF and modifies VF state to active when VF reset is completed. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2 changes: * add VF state modification when VF res

[dpdk-dev] [PATCH v3] net/i40e: fix PF notify issue when VF not up

2017-07-28 Thread Xiaoyun Li
This patch stops PF from sending messages to inactive VF and modifies VF state to active when VF reset is completed. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_pf.c | 29 ---

[dpdk-dev] [PATCH] net/i40e: revert fix of PF notify issue when VF not up

2017-08-04 Thread Xiaoyun Li
org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_pf.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index e64f849..100f8dc 100644 --- a/drivers/net/i40e/i40e_pf.c +++ b/drivers/net

[dpdk-dev] [PATCH v2] net/i40e: adjust the RSS table

2018-12-02 Thread Xiaoyun Li
When starting the device, the RSS table is initialized. So the RSS update before device_start would be overwitten. This patch allows users to update the RSS reta table before device_start and adjusts the order to set entries sequentially. Signed-off-by: Xiaoyun Li --- v2: * Adds support to

[dpdk-dev] [PATCH v2] net/i40e: firmware status check

2018-12-02 Thread Xiaoyun Li
Check the firmware status at init time. If the firmware is in recovery mode, alert the user to check it. Signed-off-by: Xiaoyun Li --- v2: * Rebase to the newest codes. --- drivers/net/i40e/i40e_ethdev.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [PATCH v3] net/i40e: adjust the RSS table

2018-12-03 Thread Xiaoyun Li
When starting the device, the RSS table is initialized. So the RSS update before device_start would be overwritten. This patch allows users to update the RSS reta table before device_start and adjusts the order to set entries sequentially. Signed-off-by: Xiaoyun Li --- v3: * Rename the variable

[dpdk-dev] [PATCH] net/ixgbe: adjust the RSS table

2018-12-03 Thread Xiaoyun Li
When starting the device, the RSS table is initialized. So the RSS update before device_start would be overwritten. This patch allows users to update the RSS reta table before device_start. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/ixgbe_ethdev.c | 11 +++ drivers/net/ixgbe

[dpdk-dev] [PATCH] net/i40e: fix statistics inconsistent issue

2018-12-05 Thread Xiaoyun Li
or PF") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index c1934d9..30cd1dd 100644 --- a/driver

[dpdk-dev] [PATCH v3] net/i40e: select fdir config automatically

2018-09-29 Thread Xiaoyun Li
ff-by: Xiaoyun Li --- v3: * Fixed fdir config doesn't automatically remove when last flow is * destroyed. v2: * Added fdir teardown in i40e_flow_flush_fdir_filter. * Replace TAILQ_FIRST with TAILQ_EMPTY which is more intuitive. * Remove the workaround in flow_filtering example since the d

[dpdk-dev] [PATCH v4] net/i40e: config fdir automatically

2018-09-29 Thread Xiaoyun Li
I40e driver needed users to config exact fdir mode to create rte_flow rules but it shouldn't. This patch allows users to create rte_flow rules without configuring fdir mode and let the driver config fdir automatically. And remove the workaround in flow filtering example. Signed-off-by: Xiaoy

[dpdk-dev] [PATCH v5] net/i40e: config fdir automatically

2018-09-29 Thread Xiaoyun Li
I40e driver needed users to config exact fdir mode to create rte_flow rules but it shouldn't. This patch allows users to create rte_flow rules without configuring fdir mode and let the driver config fdir automatically. And remove the workaround in flow filtering example. Signed-off-by: Xiaoy

[dpdk-dev] [PATCH v2] doc: add known issue about legacy intr mode for ixgbe

2018-09-29 Thread Xiaoyun Li
known issue. Signed-off-by: Xiaoyun Li --- v2: * Correct the link of X550 spec update. * Polish the known issue title. --- doc/guides/nics/ixgbe.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst index

[dpdk-dev] [PATCH v3] doc: add known issue about legacy intr mode for ixgbe

2018-09-29 Thread Xiaoyun Li
known issue. Signed-off-by: Xiaoyun Li --- v3: * Correct a misspelling. v2: * Correct the link of X550 spec update. * Polish the known issue title. --- doc/guides/nics/ixgbe.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/guides/nics/ixgbe.rst b/doc

[dpdk-dev] [PATCH v4] doc: add known issue about legacy intr mode for ixgbe

2018-10-14 Thread Xiaoyun Li
known issue. Signed-off-by: Xiaoyun Li --- v4: * Clarify that the vfio workaround only works when the intx is not shared with other devices. v3: * Correct a misspelling. v2: * Correct the link of X550 spec update. * Polish the known issue title. --- doc/guides/nics/ixgbe.rst | 27

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

2018-07-01 Thread Xiaoyun Li
ation") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c | 58 ++ 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 13c5d32..272a975 100644 --

[dpdk-dev] [PATCH] net/i40e: adjust the RSS table

2018-11-22 Thread Xiaoyun Li
: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 790ecc3..031eba0 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e

[dpdk-dev] [PATCH] app/testpmd: fix little perf drop with XL710

2018-07-09 Thread Xiaoyun Li
ned-off-by: Xiaoyun Li --- app/test-pmd/testpmd.c | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 24c1998..0600806 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -12

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

2018-07-10 Thread Xiaoyun Li
ation") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Strengthened the condition that no need to config the speed. * Removed useless code. --- drivers/net/i40e/i40e_ethdev.c | 67 ++ 1 file changed, 41 insertions(+), 26 deletions(-) diff --gi

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

2018-07-10 Thread Xiaoyun Li
ation") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2: * Strengthened the condition that no need to config the speed. * Removed useless code. --- drivers/net/i40e/i40e_ethdev.c | 67 ++ 1 file changed, 41 insertions(+), 26 deletions(-) diff --gi

[dpdk-dev] [PATCH v2] app/testpmd: fix little perf drop with XL710

2018-07-10 Thread Xiaoyun Li
ned-off-by: Xiaoyun Li --- v2: * Update ports_ids when user attach or detach a port. --- app/test-pmd/testpmd.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index dde7d43..e4f39be 100644 --- a/ap

[dpdk-dev] [PATCH v3] app/testpmd: fix little perf drop

2018-07-12 Thread Xiaoyun Li
There is about 3% perf drop. And it is because of a bitrate calculation in the datapath. So improve it by maintaining an array of port indexes in testpmd, which is updated with ethdev events. Fixes: 8728ccf37615 ("fix ethdev ports enumeration") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] doc: add tested NICs in i40e guide

2018-07-22 Thread Xiaoyun Li
Add suggested kernel driver and firmware version for i40e PMD. Signed-off-by: Xiaoyun Li --- doc/guides/nics/i40e.rst | 29 + 1 file changed, 29 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index d5b02c9..d377d92 100644 --- a/doc

[dpdk-dev] [PATCH v2] doc: add recommended matching list in i40e guide

2018-07-23 Thread Xiaoyun Li
Add suggested kernel driver and firmware version for i40e PMD. Signed-off-by: Xiaoyun Li --- doc/guides/nics/i40e.rst | 29 + 1 file changed, 29 insertions(+) --- v2: * Polish the title and section name diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics

[dpdk-dev] [PATCH v3] doc: add i40e recommended matching list

2018-07-24 Thread Xiaoyun Li
Add suggested DPDK/kernel driver/firmware version matching list for i40e. Signed-off-by: Xiaoyun Li --- doc/guides/nics/i40e.rst | 29 + 1 file changed, 29 insertions(+) --- v3: Polish the title and commit log. v2: Polish the title and section name. diff --git a

[dpdk-dev] [PATCH] app/testpmd: fix dcb config failure

2018-07-24 Thread Xiaoyun Li
: 8863a1fbfc66 ("ethdev: add supported hash function check") Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic class") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/

[dpdk-dev] [PATCH v4] doc: add i40e recommended matching list

2018-07-24 Thread Xiaoyun Li
Add suggested DPDK/kernel driver/firmware version matching list for i40e. Signed-off-by: Xiaoyun Li Acked-by: Beilei Xing --- doc/guides/nics/i40e.rst | 30 ++ 1 file changed, 30 insertions(+) --- v4: * Add statement that the detail can refer to the release notes

[dpdk-dev] [PATCH] net/avf: fix missing offload capabilities

2018-07-25 Thread Xiaoyun Li
There are several tx/rx offload capabilities missing in AVF. Add them in this patch since AVF supports them. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/net/avf/avf_ethdev.c | 18 -- 1 file c

[dpdk-dev] [PATCH] net/i40e: add interface to choose latest vector path

2018-08-29 Thread Xiaoyun Li
Right now, vector path is limited to only use on later platform due to the frequency penalty. This patch adds a devarg enable-latest-vec to allow the users to use the latest vector path that the platform supported. Namely, using AVX2 vector path on broadwell is possible. Signed-off-by: Xiaoyun Li

[dpdk-dev] [PATCH v2] net/i40e: add interface to choose latest vector path

2018-08-31 Thread Xiaoyun Li
Right now, vector path is limited to only use on later platform due to the frequency penalty. This patch adds a devarg enable-latest-vec to allow the users to use the latest vector path that the platform supported. Namely, using AVX2 vector path on broadwell is possible. Signed-off-by: Xiaoyun Li

[dpdk-dev] [PATCH v3] net/i40e: add interface to choose latest vector path

2018-09-04 Thread Xiaoyun Li
Right now, vector path is limited to only use on later platform. This patch adds a devarg enable-latest-vec to allow the users to use the latest vector path that the platform supported. Namely, using AVX2 vector path on broadwell is possible. Signed-off-by: Xiaoyun Li --- v3: * Polish the doc

[dpdk-dev] [PATCH] net/i40e: firmware status check

2018-09-07 Thread Xiaoyun Li
Check the firmware status at init time. If the firmware is in recovery mode, alert the user to check it. Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e

[dpdk-dev] [PATCH] net/ixgbe: firmware status check

2018-09-07 Thread Xiaoyun Li
Check the firmware status at init time. If the firmware is in recovery mode, alert the user to check it. Signed-off-by: Xiaoyun Li --- v1: * This patch needs base code updating which will be done later. --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 1 file changed, 8 insertions(+) diff

[dpdk-dev] [PATCH v4] net/i40e: add interface to choose latest vector path

2018-09-10 Thread Xiaoyun Li
Right now, vector path is limited to only use on later platform. This patch adds a devarg use-latest-vec to allow the users to use the latest vector path that the platform supported. Namely, using AVX2 vector path on broadwell is possible. Signed-off-by: Xiaoyun Li --- v4: * Polish the codes

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

2018-09-10 Thread Xiaoyun Li
Update the ixgbe base code to version cid-ixgbe.2018.08.28.tar.gz. Xiaoyun Li (8): net/ixgbe/base: update the license net/ixgbe/base: cleanup codes net/ixgbe/base: add FW recovery mode check net/ixgbe/base: relpace an operation in X550 setup net/ixgbe/base: update X550 SFP

[dpdk-dev] [PATCH 2/8] net/ixgbe/base: cleanup codes

2018-09-10 Thread Xiaoyun Li
Cleanup UNREFERENCED_1PARAMETER() macro because "hw" is used. And remove Light Spring codes because the device was never productised. And cleanup unused bypass codes. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_82599.c | 10 -- drivers/net/ixgbe/base/ixgbe_api

[dpdk-dev] [PATCH 1/8] net/ixgbe/base: update the license

2018-09-10 Thread Xiaoyun Li
Update the GPL and BSD license headers to use the SPDX License Identifier instead. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_82598.c | 35 ++- drivers/net/ixgbe/base/ixgbe_82598.h | 35 ++- drivers/net/ixgbe/base/ixgbe_82599.c

[dpdk-dev] [PATCH 5/8] net/ixgbe/base: update X550 SFP identification

2018-09-10 Thread Xiaoyun Li
Use ixgbe_identify_sfp_module_X550em to update SFP identification flow. ixgbe_identify_sfp_module_X550em includes specific checks for X550 about supported SFP modules. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_x550.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[dpdk-dev] [PATCH 7/8] net/ixgbe: remove Light Spring code

2018-09-10 Thread Xiaoyun Li
Since the base code is updated to remove the Light Spring device due to the device was never productised. So also remove it in ethdev. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net

[dpdk-dev] [PATCH 4/8] net/ixgbe/base: relpace an operation in X550 setup

2018-09-10 Thread Xiaoyun Li
Replace "=" operation with "|=" operation to only set the intended register bits. Signed-off-by: Xiaoyun Li --- 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/ixg

[dpdk-dev] [PATCH 3/8] net/ixgbe/base: add FW recovery mode check

2018-09-10 Thread Xiaoyun Li
Add FM NVM recovery mode check. Allow the software to detect this. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_api.c | 12 drivers/net/ixgbe/base/ixgbe_api.h | 1 + drivers/net/ixgbe/base/ixgbe_type.h | 4 drivers/net/ixgbe/base/ixgbe_x550.c | 16

[dpdk-dev] [PATCH 6/8] net/ixgbe/base: add support for DCB registers dump

2018-09-10 Thread Xiaoyun Li
Add support for DCB registers dump. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_type.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index ea34bb979..cee6ba2e0 100644 --- a/drivers/net/ixgbe

[dpdk-dev] [PATCH 8/8] net/ixgbe/base: update README file

2018-09-10 Thread Xiaoyun Li
Update README file to specify the version of CID drop. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README index 70fdfe7c8..431be0260 100644 --- a

[dpdk-dev] [PATCH v5] net/i40e: add interface to choose latest vector path

2018-09-12 Thread Xiaoyun Li
Right now, vector path is limited to only use on later platform. This patch adds a devarg use-latest-vec to allow the users to use the latest vector path that the platform supported. Namely, using AVX2 vector path on broadwell is possible. Signed-off-by: Xiaoyun Li --- v5: * Simpify the rx set

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

2018-09-17 Thread Xiaoyun Li
Update the ixgbe base code to version cid-ixgbe.2018.08.28.tar.gz. Xiaoyun Li (7): net/ixgbe/base: update the license net/ixgbe/base: cleanup codes net/ixgbe/base: add FW recovery mode check net/ixgbe/base: relpace an operation in X550 setup net/ixgbe/base: update X550 SFP

[dpdk-dev] [PATCH v2 2/7] net/ixgbe/base: cleanup codes

2018-09-17 Thread Xiaoyun Li
Cleanup UNREFERENCED_1PARAMETER() macro because "hw" is used. And remove Light Spring codes because the device was never productised. And cleanup unused bypass codes. Signed-off-by: Xiaoyun Li --- v2: * Merge base code change and ethdev fix into 1 patch to avoid in * between b

[dpdk-dev] [PATCH v2 1/7] net/ixgbe/base: update the license

2018-09-17 Thread Xiaoyun Li
Update the GPL and BSD license headers to use the SPDX License Identifier instead. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_82598.c | 35 ++- drivers/net/ixgbe/base/ixgbe_82598.h | 35 ++- drivers/net/ixgbe/base/ixgbe_82599.c

[dpdk-dev] [PATCH v2 4/7] net/ixgbe/base: relpace an operation in X550 setup

2018-09-17 Thread Xiaoyun Li
Replace "=" operation with "|=" operation to only set the intended register bits. Signed-off-by: Xiaoyun Li --- 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/ixg

[dpdk-dev] [PATCH v2 6/7] net/ixgbe/base: add support for DCB registers dump

2018-09-17 Thread Xiaoyun Li
Add support for DCB registers dump. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_type.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index ea34bb979..cee6ba2e0 100644 --- a/drivers/net/ixgbe

[dpdk-dev] [PATCH v2 5/7] net/ixgbe/base: update X550 SFP identification

2018-09-17 Thread Xiaoyun Li
Use ixgbe_identify_sfp_module_X550em to update SFP identification flow. ixgbe_identify_sfp_module_X550em includes specific checks for X550 about supported SFP modules. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_x550.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[dpdk-dev] [PATCH v2 3/7] net/ixgbe/base: add FW recovery mode check

2018-09-17 Thread Xiaoyun Li
Add FM NVM recovery mode check. Allow the software to detect this. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/ixgbe_api.c | 12 drivers/net/ixgbe/base/ixgbe_api.h | 1 + drivers/net/ixgbe/base/ixgbe_type.h | 4 drivers/net/ixgbe/base/ixgbe_x550.c | 16

[dpdk-dev] [PATCH v2 7/7] net/ixgbe/base: update README file

2018-09-17 Thread Xiaoyun Li
Update README file to specify the version of CID drop. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/base/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README index 70fdfe7c8..431be0260 100644 --- a

[dpdk-dev] [PATCH v6] net/i40e: add interface to use latest vec path

2018-09-17 Thread Xiaoyun Li
For IA, the AVX2 vector path is only recommended to be used on later platforms (identified by AVX512 support, like SKL etc.) This is because performance benchmark shows downgrade when running AVX2 vector path on early platform (BDW/HSW) in some cases. But we still observe perf gain with some real w

[dpdk-dev] [PATCH v7] net/i40e: add interface to use latest vec path

2018-09-17 Thread Xiaoyun Li
For IA, the AVX2 vector path is only recommended to be used on later platforms (identified by AVX512 support, like SKL etc.) This is because performance benchmark shows downgrade when running AVX2 vector path on early platform (BDW/HSW) in some cases. But we still observe perf gain with some real w

[dpdk-dev] [PATCH v2] net/ixgbe: firmware status check

2018-09-26 Thread Xiaoyun Li
Check the firmware status at init time. If the firmware is in recovery mode, alert the user to check it. Signed-off-by: Xiaoyun Li --- v2: * The check should be after the shared code init. Fix it. --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 1 file changed, 8 insertions(+) diff --git a

[dpdk-dev] [PATCH] doc: add known issue about legacy intr mode for ixgbe

2018-09-27 Thread Xiaoyun Li
known issue. Signed-off-by: Xiaoyun Li --- doc/guides/nics/ixgbe.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst index 16d6390..4f89a6d 100644 --- a/doc/guides/nics/ixgbe.rst +++ b/doc/guides/nics/ixgbe.rst

[dpdk-dev] [PATCH 0/2] remove unnecessary call of rte intr enable

2018-09-27 Thread Xiaoyun Li
Since rte_intr_enable is called at init and start time. Remove it in interrupt_action function to avoid too many system calls. Xiaoyun Li (2): net/ixgbe: remove unnecessary call of rte intr enable net/i40e: remove unnecessary call of rte intr enable drivers/net/i40e/i40e_ethdev.c | 1

[dpdk-dev] [PATCH 2/2] net/i40e: remove unnecessary call of rte intr enable

2018-09-27 Thread Xiaoyun Li
Since rte_intr_enable is called at init and start time. Remove it in interrupt_action function to avoid too many system calls. Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e

[dpdk-dev] [PATCH 1/2] net/ixgbe: remove unnecessary call of rte intr enable

2018-09-27 Thread Xiaoyun Li
Since rte_intr_enable is called at init and start time. Remove it in interrupt_action function to avoid too many system calls. Signed-off-by: Xiaoyun Li --- drivers/net/ixgbe/ixgbe_ethdev.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/net/ixgbe

[dpdk-dev] [PATCH] ethdev: get rxq interrupt fd

2018-09-27 Thread Xiaoyun Li
Some users want to use their own epoll instances to control both DPDK rxq interrupt fds and their own other fds. So added a function to get rxq interrupt fd based on port id and queue id. Signed-off-by: Xiaoyun Li --- lib/librte_ethdev/rte_ethdev.c | 37 ++ lib

[dpdk-dev] [PATCH] net/i40e: select fdir config automatically

2018-09-28 Thread Xiaoyun Li
I40e driver needed users to config exact fdir mode to create rte_flow rules but it shouldn't. This patch allows users to create rte_flow rules without configuring fdir mode and let the driver select the config automatically. Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_flow.c

[dpdk-dev] [PATCH v2] ethdev: get rxq interrupt fd

2018-09-28 Thread Xiaoyun Li
Some users want to use their own epoll instances to control both DPDK rxq interrupt fds and their own other fds. So added a function to get rxq interrupt fd based on port id and queue id. Signed-off-by: Xiaoyun Li --- v2: * Added missing API doxygen comments. * Set the new API to be

[dpdk-dev] [PATCH v2] net/i40e: select fdir config automatically

2018-09-28 Thread Xiaoyun Li
ff-by: Xiaoyun Li --- v2: * Added fdir teardown in i40e_flow_flush_fdir_filter. * Replace TAILQ_FIRST with TAILQ_EMPTY which is more intuitive. * Remove the workaround in flow_filtering example since the driver will * set the fdir config automatically. --- drivers/net/i40e/i40e_flow.c

[dpdk-dev] [PATCH v3] ethdev: get rxq interrupt fd

2018-09-28 Thread Xiaoyun Li
Some users want to use their own epoll instances to control both DPDK rxq interrupt fds and their own other fds. So added a function to get rxq interrupt fd based on port id and queue id. Signed-off-by: Xiaoyun Li --- v3: * Since the API only wants to return fd, return fd or -1. v2: * Added

[dpdk-dev] [PATCH] net/avf: fix AVF traffic blocked issue

2018-05-17 Thread Xiaoyun Li
When resetting ports, traffic will be blocked. There is a mistake when getting hw info at avf_dev_stop. This causes the device stop without stopping queues. This patch fixes this issue. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] net/i40e: firmware status check

2018-06-05 Thread Xiaoyun Li
Check the firmware status at init time. If the status is abnormal, alert the user to exit DPDK. Signed-off-by: Xiaoyun Li --- drivers/net/i40e/i40e_ethdev.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e

  1   2   3   >