[PATCH] net/ixgbe: fix port mask default value in flow director

2025-04-18 Thread Yuan Wang
in flow director) Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- drivers/net/intel/ixgbe/ixgbe_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/intel/ixgbe/ixgbe_flow.c b/drivers/net/intel/ixgbe/ixgbe_flow.c index 33da2f47ec..1e3804bb15 100644 --- a/drivers/net/intel

[PATCH] net/e1000: fix eeprom dump failure

2025-04-15 Thread Yuan Wang
There is a incorrect comparison in get_eeprom that cause epprom dump fail. This patch fixes this issue. Fixes: 83c314da4c38 (igb: add access to specific device info) Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- drivers/net/intel/e1000/igb_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 10/10] net/ixgbe: update base driver README

2025-01-14 Thread Yuan Wang
Update README with the date of when the lastest snapshot was generated. Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/README b/drivers/net/ixgbe/base/README index a6429fef19..8693c4ebc1

[PATCH 09/10] net/ixgbe/base: add missing buffer copy

2025-01-14 Thread Yuan Wang
command buffer. This allows the original structure and buffer to be restored before attempting the command again. However, the function didn't perform the actual copy of the original command buffer into the copy buffer. Signed-off-by: Dan Nowlin Signed-off-by: Yuan Wang --- drivers/net/ixgbe

[PATCH 06/10] net/ixgbe/base: Add capability for OROM recovery update

2025-01-14 Thread Yuan Wang
From: Dawid Zielinski Added new capability informing about OROM recovery update. Signed-off-by: Dawid Zielinski Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_e610.c | 3 +++ drivers/net/ixgbe/base/ixgbe_type_e610.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a

[PATCH 08/10] net/ixgbe/base: update VF HV subsystem device ID constant

2025-01-14 Thread Yuan Wang
: sta...@dpdk.org Signed-off-by: Piotr Kwapulinski Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index cc49eace91..99ae823119 100644

[PATCH 07/10] net/ixgbe/base: add max_drift_thresh to get_ptp_by_phy

2025-01-14 Thread Yuan Wang
From: Karol Kolacinski Add max_drift_thresh parameter to ixgbe_get_ptp_by_phy() to allow passing maxDriftThreshold parameter from the response. Signed-off-by: Karol Kolacinski Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_e610.c | 5 - drivers/net/ixgbe/base/ixgbe_e610.h | 3

[PATCH 03/10] net/ixgbe/base: disable 2.5/5G speeds from auto-negotiation for E610

2025-01-14 Thread Yuan Wang
link management for E610) Cc: sta...@dpdk.org Signed-off-by: Piotr Kwapulinski Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_e610.c | 35 +++-- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_e610.c b/drivers/net

[PATCH 05/10] net/ixgbe/base: add definition of FW temp event for E610

2025-01-14 Thread Yuan Wang
From: Krzysztof Galazka E610 adapters report overheating using a FW event. Add opcode and event structure to properly handle such events. Signed-off-by: Krzysztof Galazka Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_type_e610.h | 25 1 file changed, 25

[PATCH 04/10] net/ixgbe/base: Add PTP by PHY feature for E610

2025-01-14 Thread Yuan Wang
-by: Karol Kolacinski Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_e610.c | 56 drivers/net/ixgbe/base/ixgbe_e610.h | 3 ++ drivers/net/ixgbe/base/ixgbe_type_e610.h | 52 ++ 3 files changed, 111 insertions(+) diff --git a/drivers/net/

[PATCH 01/10] net/ixgbe/base: fix TSAM checking return value

2025-01-14 Thread Yuan Wang
From: Lukasz Krakowiak The return value of ixgbe_get_fw_tsam_mode function may be a large integer that does not match the desired bool type. Fixes: 316637762a5f (net/ixgbe/base: enable E610 device) Cc: sta...@dpdk.org Signed-off-by: Lukasz Krakowiak Signed-off-by: Yuan Wang --- drivers/net

[PATCH 02/10] net/ixgbe/base: add interface for LED control on E610

2025-01-14 Thread Yuan Wang
From: Dawid Zielinski Add interface for sending ACI command for setting port identification LED on E610. Signed-off-by: Dawid Zielinski Signed-off-by: Yuan Wang --- drivers/net/ixgbe/base/ixgbe_e610.c | 29 drivers/net/ixgbe/base/ixgbe_e610.h | 1

[PATCH 00/10] update net/ixgbe base driver

2025-01-14 Thread Yuan Wang
/5G speeds from auto-negotiation for E610 net/ixgbe/base: update VF HV subsystem device ID constant Yuan Wang (1): net/ixgbe: update base driver README drivers/net/ixgbe/base/README| 2 +- drivers/net/ixgbe/base/ixgbe_api.c | 5 +- drivers/net/ixgbe/base/ixgbe_e610.c

[PATCH] net/ixgbe: fix RSS redirection table configuration for E610

2024-11-25 Thread Yuan Wang
Add labels to get the correct table size and register address for RETA. Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device") Signed-off-by: Yuan Wang --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c

[PATCH] net/ixgbe: fix queue interrupt for E610

2024-11-06 Thread Yuan Wang
Interrupt mode is not working on E610 device because this device doesn't enable the queue interrupt mapping, this patch fixed the issue. Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- drivers/net/ixgbe/ixgbe_ethdev.c |

[RFC] net/vhost: support asynchronous data path

2022-12-15 Thread Yuan Wang
device for a tx/rx queue. (Default: no queues enable asynchronous data path) - dma-ring-size: DMA ring size. (Default: 4096). Here is an example: --vdev 'eth_vhost0,iface=./s0,dmas=[txq0@:00.01.0;rxq0@:00.01.1],dma-ring-size=4096' Signed-off-by: Jiayu Hu Signed-of

[PATCH v5] app/testpmd: fix protocol header display for Rx buffer split

2022-11-10 Thread Yuan Wang
ore remain symmetrical. Fixes: 52e2e7edcf48 ("app/testpmd: add protocol-based buffer split") Signed-off-by: Yuan Wang --- v5: - remove unrelated changes. v4: - redefine rx_pkt_hdr_protos to hold the full ptypes. - use single switch in get_ptype_str(). v3: - use RTE_PTYPE_*_MASK as masks. - re

[PATCH v4] app/testpmd: fix protocol header display for Rx buffer split

2022-11-08 Thread Yuan Wang
ore remain symmetrical. Fixes: 52e2e7edcf48 ("app/testpmd: add protocol-based buffer split") Signed-off-by: Yuan Wang --- v4: - redefine rx_pkt_hdr_protos to hold the full ptypes. - use single switch in get_ptype_str(). v3: - use RTE_PTYPE_*_MASK as masks. - refactor to use switch statemen

[PATCH v3] app/testpmd: fix protocol header display for Rx buffer split

2022-11-07 Thread Yuan Wang
ks. Fixes: 52e2e7edcf48 ("app/testpmd: add protocol-based buffer split") Signed-off-by: Yuan Wang --- v3: - use RTE_PTYPE_*_MASK as masks. - refactor to use switch statement. v2: - add fixline. --- app/test-pmd/config.c | 89 +-- 1 file changed, 44 inserti

[PATCH v5] net/vhost: support asynchronous data path

2022-10-24 Thread Yuan Wang
device for a tx/rx queue. (Default: no queues enable asynchronous data path) - dma-ring-size: DMA ring size. (Default: 4096). Here is an example: --vdev 'eth_vhost0,iface=./s0,dmas=[txq0@:00.01.0;rxq0@:00.01.1],dma-ring-size=4096' Signed-off-by: Jiayu Hu Signed-of

[PATCH v2] app/testpmd: fix protocol headers display for Rx buffer split

2022-10-18 Thread Yuan Wang
/testpmd: add protocol-based buffer split") Signed-off-by: Yuan Wang Tested-by: Yaqi Tang --- v2: add fixline. --- app/test-pmd/config.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 0f7d

[PATCH] app/testpmd: fix protocol headers display for Rx buffer split

2022-10-17 Thread Yuan Wang
The "show config rxhdrs" cmd displays the configured protocol headers that are used for protocol-based buffer split. However, it shows "inner-ipv6" as "inner-ipv4". This patch fixes that by adjusting the order of condition judgments. Signed-off-by: Yuan Wang -

[PATCH v2] net/ice: fix the judgment order of buffer split

2022-10-17 Thread Yuan Wang
the end of the judgement condition. Fixes: 629dad3ef325 ("net/ice: support buffer split in scalar Rx") Signed-off-by: Yuan Wang --- v2: fix typo --- drivers/net/ice/ice_rxtx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/ic

[PATCH] net/ice: fix the judgment order of buffer split

2022-10-17 Thread Yuan Wang
the end of the judgement condition. Fixes: 629dad3ef325 ("net/ice: support buffer split in scalar Rx") Signed-off-by: Yuan Wang --- drivers/net/ice/ice_rxtx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drive

[PATCH] app/testpmd: remove useless check

2022-10-11 Thread Yuan Wang
Protocol header sequence checking is supported in the ethdev library, the application does not need to do it again. Coverity issue: 381396 Fixes: 52e2e7edcf48 ("app/testpmd: add protocol-based buffer split") Signed-off-by: Yuan Wang --- app/test-pmd/cmdline.c| 6 ++ ap

[PATCH v9 4/4] net/ice: support buffer split in Rx path

2022-10-09 Thread Yuan Wang
split is not supported in vectorized paths. A new API ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/nics

[PATCH v9 3/4] app/testpmd: add rxhdrs commands and parameters

2022-10-09 Thread Yuan Wang
the configuration can only be applied when it is supported by specific pmd. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c | 152 +++- app/test-pmd/config.c | 108 ++ app/test-

[PATCH v9 2/4] ethdev: introduce protocol hdr based buffer split

2022-10-09 Thread Yuan Wang
t seg The split limitations imposed by underlying driver is reported in the rte_eth_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan

[PATCH v9 1/4] ethdev: introduce protocol header API

2022-10-09 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu Reviewed-by: Andrew Rybchenko --- doc/guides/nics/features.rst | 2 +- doc

[PATCH v9 0/4] support protocol based buffer split

2022-10-09 Thread Yuan Wang
determine whether to use protocol based split. v3: Fix mail thread. v2: Add mbuf dump to the driver's buffer split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver. Yuan Wang (4): ethdev: introduce protocol header API ethdev: intr

[PATCH v8 4/4] net/ice: support buffer split in Rx path

2022-10-05 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH v8 3/4] app/testpmd: add rxhdrs commands and parameters

2022-10-05 Thread Yuan Wang
the configuration can only be applied when it is supported by specific pmd. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c| 152 +- app/test-pmd/config.c | 95 app/test-

[PATCH v8 2/4] ethdev: introduce protocol hdr based buffer split

2022-10-05 Thread Yuan Wang
ored. The split limitations imposed by underlying driver is reported in the rte_eth_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan

[PATCH v8 1/4] ethdev: introduce protocol header API

2022-10-05 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu Reviewed-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 5

[PATCH v8 0/4] support protocol based buffer split

2022-10-05 Thread Yuan Wang
description on how to put the unsplit packages. Use proto_hdr to determine whether to use protocol based split. v3: Fix mail thread. v2: Add mbuf dump to the driver's buffer split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver. Yuan Wa

[PATCH v7 4/4] net/ice: support buffer split in Rx path

2022-10-01 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH v7 3/4] app/testpmd: add rxhdrs commands and parameters

2022-10-01 Thread Yuan Wang
udp|grenat-eth-ipv4-sctp| grenat-eth-ipv6-sctp) Above protocols can be configured in testpmd. But the configuration can only be applied when it is supported by specific pmd. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c|

[PATCH v7 2/4] ethdev: introduce protocol hdr based buffer split

2022-10-01 Thread Yuan Wang
configured, while the length field will be ignored. The split limitations imposed by underlying driver is reported in the rte_eth_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang

[PATCH v7 1/4] ethdev: introduce protocol header API

2022-10-01 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu Reviewed-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 5

[PATCH v7 0/4] support protocol based buffer split

2022-10-01 Thread Yuan Wang
put the unsplit packages. Use proto_hdr to determine whether to use protocol based split. v3: Fix mail thread. v2: Add mbuf dump to the driver's buffer split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver. Yuan Wang (4): ethdev: intr

[PATCH v4] net/vhost: support asynchronous data path

2022-09-29 Thread Yuan Wang
device for a tx/rx queue. (Default: no queues enable asynchronous data path) - dma-ring-size: DMA ring size. (Default: 4096). Here is an example: --vdev 'eth_vhost0,iface=./s0,dmas=[txq0@:00.01.0;rxq0@:00.01.1],dma-ring-size=4096' Signed-off-by: Jiayu Hu Signed-of

[PATCH v6 3/4] app/testpmd: add rxhdrs commands and parameters

2022-09-29 Thread Yuan Wang
udp|grenat-eth-ipv4-sctp| grenat-eth-ipv6-sctp) Above protocols can be configured in testpmd. But the configuration can only be applied when it is supported by specific pmd. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c|

[PATCH v6 2/4] ethdev: introduce protocol hdr based buffer split

2022-09-29 Thread Yuan Wang
configured, while the length field will be ignored. The split limitations imposed by underlying driver is reported in the rte_eth_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang

[PATCH v6 4/4] net/ice: support buffer split in Rx path

2022-09-29 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH v6 1/4] ethdev: introduce protocol header API

2022-09-29 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu Reviewed-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 5

[PATCH v6 0/4] support protocol based buffer split

2022-09-29 Thread Yuan Wang
. Use proto_hdr to determine whether to use protocol based split. v3: Fix mail thread. v2: Add mbuf dump to the driver's buffer split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver. Yuan Wang (4): ethdev: introduce protocol heade

[PATCH v5 4/4] net/ice: support buffer split in Rx path

2022-09-25 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH v5 3/4] app/testpmd: add rxhdrs commands and parameters

2022-09-25 Thread Yuan Wang
udp|grenat-eth-ipv4-sctp| grenat-eth-ipv6-sctp) Above protocols can be configured in testpmd. But the configuration can only be applied when it is supported by specific pmd. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c|

[PATCH v5 2/4] ethdev: introduce protocol hdr based buffer split

2022-09-25 Thread Yuan Wang
configured, while the length field will be ignored. The split limitations imposed by underlying driver is reported in the rte_eth_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang

[PATCH v5 1/4] ethdev: introduce protocol header API

2022-09-25 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu Reviewed-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 5

[PATCH v5 0/4] support protocol based buffer split

2022-09-25 Thread Yuan Wang
based split. v3: Fix mail thread. v2: Add mbuf dump to the driver's buffer split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver. Yuan Wang (4): ethdev: introduce protocol header API ethdev: introduce protocol hdr based buffer split

[PATCH v4 4/4] net/ice: support buffer split in Rx path

2022-09-19 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH v4 3/4] app/testpmd: add rxhdrs commands and parameters

2022-09-19 Thread Yuan Wang
pmd : eth|ipv4|ipv6|tcp|udp|sctp| inner_eth|inner_ipv4|inner_ipv6| inner_tcp|inner_udp|inner_sctp) Above protocols can be configured in testpmd. But the configuration can only be applied when it is supported by specific pmd. Signed-off-by: Y

[PATCH v4 2/4] ethdev: introduce protocol hdr based buffer split

2022-09-19 Thread Yuan Wang
The split limitations imposed by underlying driver is reported in the rte_eth_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --

[PATCH v4 1/4] ethdev: introduce protocol header API

2022-09-19 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/rel_notes/release_22_11.rst | 5 lib/ethdev/ethdev_driver.h

[PATCH v4 0/4] support protocol based buffer split

2022-09-19 Thread Yuan Wang
river. Yuan Wang (4): ethdev: introduce protocol header API ethdev: introduce protocol hdr based buffer split app/testpmd: add rxhdrs commands and parameters net/ice: support buffer split in Rx path app/test-pmd/cmdline.c | 124 +- app/test-pmd/con

[PATCH v3 4/4] net/ice: support buffer split in Rx path

2022-09-02 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH v3 3/4] app/testpmd: add rxhdrs commands and parameters

2022-09-02 Thread Yuan Wang
ned-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c| 123 +- app/test-pmd/config.c | 70 ++ app/test-pmd/parameters.c | 16 - app/test-pmd/testpmd.c| 2 + app/test-

[PATCH v3 2/4] ethdev: introduce protocol hdr based buffer split

2022-09-02 Thread Yuan Wang
h_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/rel_notes/release_22_11.rst | 5 +++ lib/ethdev/rte_ethdev.c

[PATCH v3 1/4] ethdev: introduce protocol header API

2022-09-02 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/rel_notes/release_22_11.rst | 5 lib/ethdev/ethdev_driver.h

[PATCH v3 0/4] support protocol based buffer split

2022-09-02 Thread Yuan Wang
driver's buffer split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver. Yuan Wang (4): ethdev: introduce protocol header API ethdev: introduce protocol hdr based buffer split app/testpmd: add rxhdrs commands and parameters ne

[PATCH v2 4/4] net/ice: support buffer split in Rx path

2022-09-01 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH v2 3/4] app/testpmd: add rxhdrs commands and parameters

2022-09-01 Thread Yuan Wang
ned-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c| 123 +- app/test-pmd/config.c | 70 ++ app/test-pmd/parameters.c | 16 - app/test-pmd/testpmd.c| 2 + app/test-

[PATCH v2 2/4] ethdev: introduce protocol hdr based buffer split

2022-09-01 Thread Yuan Wang
h_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/rel_notes/release_22_11.rst | 5 +++ lib/ethdev/rte_ethdev.c

[PATCH v2 1/4] ethdev: introduce protocol header API

2022-09-01 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/rel_notes/release_22_11.rst | 5 lib/ethdev/ethdev_driver.h

[PATCH v2 0/4] support protocol based buffer split

2022-09-01 Thread Yuan Wang
split path. Add buffer split to the driver feature list. Remove unsupported header protocols from the driver. Yuan Wang (4): ethdev: introduce protocol header API ethdev: introduce protocol hdr based buffer split app/testpmd: add rxhdrs commands and parameters net/ice: support buffer spl

[PATCH v3] net/vhost: support asynchronous data path

2022-08-23 Thread Yuan Wang
device for a tx/rx queue. (Default: no queues enable asynchronous data path) - dma-ring-size: DMA ring size. (Default: 4096). Here is an example: --vdev 'eth_vhost0,iface=./s0,dmas=[txq0@:00.01.0;rxq0@:00.01.1],dma-ring-size=4096' Signed-off-by: Jiayu Hu Signed-of

[PATCH 4/4] net/ice: support buffer split in Rx path

2022-08-12 Thread Yuan Wang
. Currently, protocol based buffer split is not supported in vectorized paths. A new api ice_buffer_split_supported_hdr_ptypes_get() has been introduced, it will return the supported header protocols of ice PMD to app for splitting. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by

[PATCH 2/4] ethdev: introduce protocol hdr based buffer split

2022-08-12 Thread Yuan Wang
h_dev_info->rx_seg_capa field. The memory attributes for the split parts may differ either, dpdk memory and external memory, respectively. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/rel_notes/release_22_11.rst | 5 +++ lib/ethdev/rte_ethdev.c

[PATCH 3/4] app/testpmd: add rxhdrs commands and parameters

2022-08-12 Thread Yuan Wang
ned-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- app/test-pmd/cmdline.c| 123 +- app/test-pmd/config.c | 70 ++ app/test-pmd/parameters.c | 16 - app/test-pmd/testpmd.c| 6 +- app/test-

[PATCH 1/4] ethdev: introduce protocol header API

2022-08-12 Thread Yuan Wang
Add a new ethdev API to retrieve supported protocol headers of a PMD, which helps to configure protocol header based buffer split. Signed-off-by: Yuan Wang Signed-off-by: Xuan Ding Signed-off-by: Wenxuan Wu --- doc/guides/rel_notes/release_22_11.rst | 5 lib/ethdev/ethdev_driver.h

[PATCH 0/4] support protocol based buffer split

2022-08-12 Thread Yuan Wang
patchset aims to support protocol header split based on current buffer split. When Rx queue is configured with RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT offload and corresponding protocol, packets received will be directly split into different mempools. Yuan Wang (4): ethdev: introduce protocol header API

[PATCH] net/virtio-user: restore callfds index for Rx interrupts

2022-07-04 Thread Yuan Wang
The callfds[] array stores eventfds sequentially for Rx and Tx vq. Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2] net/vhost: fix deadlock on vring state change

2022-06-26 Thread Yuan Wang
wait while destroy/stopping the device, but not in other cases. This patch adds a flag for whether or not to wait to fix this issue. Fixes: 1ce3c7fe149f ("net/vhost: emulate device start/stop behavior") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- V2: rewrite the commit log. --- d

[PATCH v4] examples/vhost: fix retry logic on eth rx path

2022-06-22 Thread Yuan Wang
penalty. This patch fix that by using the difference between tx/rx burst as the retry condition. Fixes: be800696c26e ("examples/vhost: use burst enqueue and dequeue from lib") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang Tested-by: Wei Ling --- V4: Fix fiexs tag. V3: Fix mbuf index. V2:

[PATCH v3] examples/vhost: fix retry logic on eth rx path

2022-06-21 Thread Yuan Wang
penalty. This patch fix that by using the difference between tx/rx burst as the retry condition. Fixes: 4ecf22e356de ("vhost: export device id as the interface to applications") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang Tested-by: Wei Ling --- V3: Fix mbuf index. V2: Rebase to

[PATCH v2] examples/vhost: fix retry logic on eth rx path

2022-06-17 Thread Yuan Wang
penalty. This patch fix that by using the difference between tx/rx burst as the retry condition. Fixes: 4ecf22e356de ("vhost: export device id as the interface to applications") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang Tested-by: Wei Ling --- V2: Rebase to 22.07 rc1. --- exam

[PATCH] net/virtio: fix socket nonblocking mode affects initialization

2022-06-16 Thread Yuan Wang
t_handler() --> vhost_user_update_link_state() Fix that by replacing O_NONBLOCK with the recv per-call option MSG_DONTWAIT. Fixes: ef53b6030039 ("net/virtio-user: support LSC") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- drivers/net/virtio/virtio_user/vhost_user.c | 15 +---

[PATCH v5 2/2] example/vhost: support to clear in-flight packets for async dequeue

2022-06-09 Thread Yuan Wang
This patch allows vring_state_changed() to clear in-flight dequeue packets. It also clears the in-flight packets in a thread-safe way in destroy_device(). Signed-off-by: Yuan Wang --- examples/vhost/main.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff

[PATCH v5 1/2] vhost: support clear in-flight packets for async dequeue

2022-06-09 Thread Yuan Wang
lock. These APIs maybe used to clean up packets in the async channel to prevent packet loss when the device state changes or when the device is destroyed. Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 4 ++ lib/vhost

[PATCH v5 0/2] support to clear in-flight packets for async

2022-06-09 Thread Yuan Wang
Yuan Wang (2): vhost: support clear in-flight packets for async dequeue example/vhost: support to clear in-flight packets for async dequeue doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 4 ++ examples/vhost/main.c | 26 +-- lib

[PATCH v4 2/2] example/vhost: support to clear in-flight packets for async dequeue

2022-06-06 Thread Yuan Wang
This patch allows vring_state_changed() to clear in-flight dequeue packets. It also clears the in-flight packets in a thread-safe way in destroy_device(). Signed-off-by: Yuan Wang --- examples/vhost/main.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff

[PATCH v4 1/2] vhost: support clear in-flight packets for async dequeue

2022-06-06 Thread Yuan Wang
lock. These APIs maybe used to clean up packets in the async channel to prevent packet loss when the device state changes or when the device is destroyed. Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 5 ++ lib/vhost

[PATCH v4 0/2] support to clear in-flight packets for async

2022-06-06 Thread Yuan Wang
Yuan Wang (2): vhost: support clear in-flight packets for async dequeue example/vhost: support to clear in-flight packets for async dequeue doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 5 ++ examples/vhost/main.c | 26 ++-- lib

[PATCH v2] net/virtio: unmap PCI device in secondary process

2022-06-06 Thread Yuan Wang
based on virtio_rempa_pci. Fixes: 36a7a2e7a53 ("net/virtio: move PCI device init in dedicated file") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang Tested-by: Wei Ling --- drivers/net/virtio/virtio_pci_ethdev.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) di

[PATCH] net/vhost: add flag to control wait queuing

2022-05-31 Thread Yuan Wang
behavior) Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- drivers/net/vhost/rte_eth_vhost.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index a248a65df4..a280e788fb 100644 --- a

[PATCH v3 2/2] example/vhost: support to clear in-flight packets for async dequeue

2022-05-23 Thread Yuan Wang
This patch allows vring_state_changed() to clear in-flight dequeue packets. It also clears the in-flight packets in a thread-safe way in destroy_device(). Signed-off-by: Yuan Wang --- examples/vhost/main.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff

[PATCH v3 1/2] vhost: support clear in-flight packets for async dequeue

2022-05-23 Thread Yuan Wang
lock. These APIs maybe used to clean up packets in the async channel to prevent packet loss when the device state changes or when the device is destroyed. Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 5 ++ lib/vhost

[PATCH v3 0/2] support to clear in-flight packets for async

2022-05-23 Thread Yuan Wang
These patches support to clear in-flight packets for async dequeue and introduce thread-safe version of this function. v3: - Rebase to latest DPDK v2: - Rebase to latest DPDK - Use the thread-safe version in destroy_device() v1: - Protect vq access with splitlock Yuan Wang (2): vhost

[PATCH] examples/vhost: Fix retry logic on Rx

2022-05-18 Thread Yuan Wang
penalty. This patch uses the difference between tx burst and rx burst as a retry condition, and introduces enqueue_pkts() to reduce code duplication. Fixes: 4ecf22e356 ("vhost: export device id as the interface to applications") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- exam

[PATCH v2] examples/vhost: fix floating point exception when no VMDq

2022-05-17 Thread Yuan Wang
If the VMDQ limits is 0, a divide-by-zero error occurs. This patch replaces throwing a floating point exception with a normal error message. Fixes: d19533e86f ("examples/vhost: copy old vhost example") Cc: sta...@dpdk.org Signed-off-by: Yuan Wang --- examples/vhost/main.c | 4 ++

[PATCH v2 2/2] example/vhost: support to clear in-flight packets for async dequeue

2022-05-13 Thread Yuan Wang
This patch allows vring_state_changed() to clear in-flight dequeue packets. It also clears the in-flight packets in a thread-safe way in destroy_device(). Signed-off-by: Yuan Wang --- examples/vhost/main.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff

[PATCH v2 1/2] vhost: support clear in-flight packets for async dequeue

2022-05-13 Thread Yuan Wang
lock. These APIs maybe used to clean up packets in the async channel to prevent packet loss when the device state changes or when the device is destroyed. Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 5 ++ lib/vhost

[PATCH v2 0/2] support to clear in-flight packets for async

2022-05-13 Thread Yuan Wang
/patch/20220513025058.12898-6-xuan.d...@intel.com/) v1->v2: * Rebase to latest DPDK * Use the thread-safe version in destroy_device() RFC->v1: * Protect vq access with splitlock Yuan Wang (2): vhost: support clear in-flight packets for async dequeue example/vhost: support to clear in-

[PATCH] net/virtio: unmap PCI device in secondary process

2022-04-20 Thread Yuan Wang
based on virtio_rempa_pci(). Fixes: 36a7a2e7a53 ("net/virtio: move PCI device init in dedicated file") Signed-off-by: Yuan Wang --- drivers/net/virtio/virtio_pci_ethdev.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_pci_e

[PATCH 2/2] example/vhost: support to clear in-flight packets for async dequeue

2022-04-13 Thread Yuan Wang
This patch allows vring_state_changed() to clear in-flight dequeue packets. Signed-off-by: Yuan Wang --- examples/vhost/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index d26e40ab73..04e7821322 100644 --- a/examples/vhost/main.c

[PATCH 1/2] vhost: support clear in-flight packets for async dequeue

2022-04-13 Thread Yuan Wang
lock. These APIs maybe used to clean up packets in the async channel to prevent packet loss when the device state changes or when the device is destroyed. Signed-off-by: Yuan Wang --- doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 4 ++ lib/vhost

[PATCH 0/2] support to clear in-flight packets for async

2022-04-13 Thread Yuan Wang
/dpdk/patch/20220411100032.114434-6-xuan.d...@intel.com/) Yuan Wang (2): vhost: support clear in-flight packets for async dequeue example/vhost: support to clear in-flight packets for async dequeue doc/guides/prog_guide/vhost_lib.rst| 8 ++- doc/guides/rel_notes/release_22_07.rst | 4

[PATCH] examples/vhost: fix floating point exception when there is no VMDQ

2022-04-11 Thread Yuan Wang
If the VMDQ limits is 0, a divide-by-zero error occurs. This patch replaces throwing a floating point exception with a normal error message. Signed-off-by: Yuan Wang --- examples/vhost/main.c | 4 1 file changed, 4 insertions(+) diff --git a/examples/vhost/main.c b/examples/vhost/main.c

[RFC v2 2/2] example/vhost: support to clear in-flight packets for async dequeue

2022-03-11 Thread Yuan Wang
This patch allows vring_state_changed() to clear in-flight dequeue packets. Signed-off-by: Yuan Wang --- examples/vhost/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index d26e40ab73..04e7821322 100644 --- a/examples/vhost/main.c

  1   2   >