[dpdk-dev] [PATCH v3] app/testpmd: fix commands to config some offload

2018-08-03 Thread Wei Dai
pmd: add commands to test new offload API") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 16 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 2 files changed,

[dpdk-dev] [PATCH] app/testpmd: fix commands to config some offload

2018-08-01 Thread Wei Dai
pmd: add commands to test new offload API") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Yuan Peng --- app/test-pmd/cmdline.c | 16 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 2 files changed, 12 insertions(+), 12 deletions

[dpdk-dev] [PATCH] app/testpmd: fix commands to config some offload

2018-07-23 Thread Wei Dai
pmd: add commands to test new offload API") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 5885289..a0ed3a0 100644 --- a/app/tes

[dpdk-dev] [PATCH v5] net/ixgbe: fix to config VLAN strip on the fly

2018-05-19 Thread Wei Dai
n VF") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Signed-off-by: Yanglong Wu Acked-by: Qi Zhang --- v5: reduce redundant codes add Fixes in git log message v4: fix typo error in git log message v3: keep vlan strip as per-queue capability and support config vlan on port level on the

[dpdk-dev] [PATCH v4] net/ixgbe: config VLAN strip on the fly

2018-05-18 Thread Wei Dai
function ixgbe_vlan_offload_config() = old ixgbe_vlan_offload_set(). New ixgbe_vlan_offload_set = codes to align VLAN strip flags on all queues with port level setting + ixgbe_vlan_offload_configure(). Signed-off-by: Wei Dai Signed-off-by: Yanglong Wu --- v4: fix typo error in git log message v3

[dpdk-dev] [PATCH v3] net/ixgbe: config VLAN strip on the fly

2018-05-18 Thread Wei Dai
function ixgbe_vlan_offload_config() = old ixgbe_vlan_offload_set(). New ixgbe_vlan_offload_set = codes to align VLAN strip flags on all queues with port level setting + ixgbe_vlan_offload_configure(). Signed-off-by: Wei Dai Signed-off-by: Yanglong Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 69

[dpdk-dev] [PATCH] bus/pci: fix error in parsing vfio driver

2018-05-15 Thread Wei Dai
ncpy by strlcpy") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/bus/pci/linux/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index a73ee49..cc6b383 100644 --- a/drivers/bus/pci/linux/pci.c +++ b/driver

[dpdk-dev] [PATCH v14] ethdev: new Rx/Tx offloads API

2018-05-14 Thread Wei Dai
some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v14: rework on v13 according to feedback. This v14 is also based on commit dc33238da4be ("app/testpmd: check if CRC strip offload supported&quo

[dpdk-dev] [PATCH v13] ethdev: new Rx/Tx offloads API

2018-05-14 Thread Wei Dai
some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v13: only rework on v12 according to feedback. This version is based on commit dc33238da4be ("app/testpmd: check if CRC strip offload supported&qu

[dpdk-dev] [PATCH v12] ethdev: new Rx/Tx offloads API

2018-05-10 Thread Wei Dai
some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v12: fix coding style warning v11: This patch set is based on 18.05-rc2 . document update according to feedback revise rte_ethdev.h for doxygen v10: s

[dpdk-dev] [PATCH v11] ethdev: new Rx/Tx offloads API

2018-05-10 Thread Wei Dai
some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v11: This patch set is based on 18.05-rc2 . document update according to feedback revise rte_ethdev.h for doxygen v10: sorry, miss the code change, fix

[dpdk-dev] [PATCH] net/e1000: add support of Tx multi_segs

2018-05-09 Thread Wei Dai
es. Signed-off-by: Wei Dai --- drivers/net/e1000/igb_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 128ed0b..5f729f2 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c

[dpdk-dev] [PATCH v10] ethdev: new Rx/Tx offloads API

2018-05-09 Thread Wei Dai
oads to do some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v10: sorry, miss the code change, fix the buidling error v9: replace RTE_PMD_DEBUG_TRACE with ethdev_log(ERR, in ethdev to avoid failure o

[dpdk-dev] [PATCH v9] ethdev: new Rx/Tx offloads API

2018-05-09 Thread Wei Dai
oads to do some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v9: replace RTE_PMD_DEBUG_TRACE with ethdev_log(ERR, in ethdev to avoid failure of application which hasn't been completely converted to ne

[dpdk-dev] [PATCH v2] ethdev: fix comments for offload capabilities

2018-05-09 Thread Wei Dai
roduce Tx queue offloads API") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- v2: fix coding style issues --- lib/librte_ethdev/rte_ethdev.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index 7cc

[dpdk-dev] [PATCH v8] app/testpmd: add commands to test new offload API

2018-05-09 Thread Wei Dai
the port is stopped. And can be one of "vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai Acked-by: Jingjing Wu --- v8: Change the command formats according to feedback from community: 1. Change "[rt]x_offload get capabilit " to "show port [r

[dpdk-dev] [PATCH v8] ethdev: check Rx/Tx offloads

2018-05-08 Thread Wei Dai
to do some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v8: Revise PMD codes to comply with offload API in v7 update document v7: Give the maximum freedom for upper application, only minimal checking is

[dpdk-dev] [PATCH v8] ethdev: check Rx/Tx offloads

2018-05-08 Thread Wei Dai
to do some optimization or some code change on base of this patch. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit Signed-off-by: Qi Zhang --- v8: Revise PMD codes to comply with offload API in v7 update document v7: Give the maximum freedom for upper application, only minimal checking is

[dpdk-dev] [PATCH v7] ethdev: check Rx/Tx offloads

2018-05-04 Thread Wei Dai
eue but not enabled in rte_eth_dev_configure( ) and they are certain per-queue type. This patch can make above such checking in a common way in rte_ethdev layer to avoid same checking in underlying PMD. Signed-off-by: Wei Dai Signed-off-by: Ferruh Yigit --- v7: Give the maximum freedom for upper app

[dpdk-dev] [PATCH v6] ethdev: check Rx/Tx offloads

2018-05-02 Thread Wei Dai
). This patch can make above such checking in a common way in rte_ethdev layer to avoid same checking in underlying PMD. Signed-off-by: Wei Dai --- v6: No need enable an offload in queue_setup( ) if it has already been enabled in dev_configure( ) v5: keep offload settings sent to PMD same

[dpdk-dev] [PATCH v5] ethdev: check Rx/Tx offloads

2018-04-26 Thread Wei Dai
same checking in underlying PMD. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index f0f53d4..5485f47 100644 --- a/lib/librte_

[dpdk-dev] [PATCH v4] ethdev: check Rx/Tx offloads

2018-04-25 Thread Wei Dai
same checking in underlying PMD. Signed-off-by: Wei Dai --- v4: fix a wrong description in git log message. v3: rework according to dicision of offloading API in community v2: add offloads checking in rte_eth_dev_configure( ). check if a requested offloading is supported. --- lib/librte_

[dpdk-dev] [PATCH v3] ethdev: check Rx/Tx offloads

2018-04-25 Thread Wei Dai
cking in underlying PMD. Signed-off-by: Wei Dai --- v3: rework according to dicision of offloading API in community v2: add offloads checking in rte_eth_dev_configure( ). check if a requested offloading is supported. --- lib/librte_ether/rte_ethdev.c

[dpdk-dev] [PATCH v3] ethdev: check Rx/Tx offloads

2018-04-25 Thread Wei Dai
cking in underlying PMD. Signed-off-by: Wei Dai --- v3: rework according to dicision of offloading API in community v2: add offloads checking in rte_eth_dev_configure( ). check if a requested offloading is supported. --- lib/librte_ether/rte_ethdev.c

[dpdk-dev] [PATCH] ethdev: check Rx/Tx offloads

2018-04-25 Thread Wei Dai
cking in underlying PMD. Signed-off-by: Wei Dai --- v3: rework according to dicision of offloading API in community v2: add offloads checking in rte_eth_dev_configure( ). check if a requested offloading is supported. --- lib/librte_ether/rte_ethdev.c

[dpdk-dev] [PATCH] net/ixgbe: fix missing suppport of multi-segs offloading

2018-04-17 Thread Wei Dai
This patch adds missing supported Tx multi-segs offloading. Fixes: 51215925a32f ("net/ixgbe: convert to new Tx offloads API") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [PATCH] net/ixgbe: fix segfault in configuring VF VLAN strip

2018-04-16 Thread Wei Dai
pdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index a5e2fc0..33ee52e 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/i

[dpdk-dev] [PATCH v7 2/2] app/testpmd: add commands to test new Tx offload API

2018-04-03 Thread Wei Dai
"vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 382 app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + doc/g

[dpdk-dev] [PATCH v7 1/2] app/testpmd: add commands to test new Rx offload API

2018-04-03 Thread Wei Dai
"vlan_strip", "ipv4_cksum", ... Signed-off-by: Wei Dai Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 377 app/test-pmd/testpmd.c | 19 +- app/test-pmd/testpmd.h | 1 + doc/g

[dpdk-dev] [PATCH v7 0/2] app/testpmd: add new commands to test new Tx/Rx offloads

2018-04-03 Thread Wei Dai
m|... Same commands like "tx_offload ..." are also added to support new Tx offload API test. Signed-off-by: Wei Dai Acked-by: Jingjing Wu --- v7: update testpmd document v6: reconfig port and queues if offloading is enabled or disabled v5: don't depend on enum types

[dpdk-dev] [PATCH v2 1/2] net/e1000: convert to new Rx offloads API

2018-04-02 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Wei Dai --- drivers/net/e1000/e1000_ethdev.h | 8 +++ drivers/net/e1000/em_ethdev.c| 42 ++- drivers

[dpdk-dev] [PATCH v2 0/2] net/e1000: convert to new Rx/Tx offloads API

2018-04-02 Thread Wei Dai
number of queues is only one in Rx or Tx path, let all offloads in the path are per queue for better convenience. --- v2: add offloads checking Wei Dai (2): net/e1000: convert to new Rx offloads API net/e1000: convert to new Tx offloads API drivers/net/e1000/e1000_ethdev.h | 14 drivers

[dpdk-dev] [PATCH v2 2/2] net/e1000: convert to new Tx offloads API

2018-04-02 Thread Wei Dai
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Wei Dai --- drivers/net/e1000/e1000_ethdev.h | 6 drivers/net/e1000/em_ethdev.c| 16 +++ drivers

[dpdk-dev] [PATCH v2] ethdev: check Rx/Tx offloads

2018-03-28 Thread Wei Dai
same configuration in rte_eth_dev_configure( ) and rte_eth_rx_queue_setup( )/rte_eth_tx_queue_setup( ). This patch can make such checking in a common way in rte_ethdev layer to avoid same checking in underlying PMD. Signed-off-by: Wei Dai --- v2: add offlaods checking in rte_eth_dev_configure

[dpdk-dev] [PATCH v2 2/2] net/fm10k: convert to new Tx offloads API

2018-03-28 Thread Wei Dai
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Rx and Tx offloads API. Signed-off-by: Wei Dai --- drivers/net/fm10k/fm10k.h | 1 + drivers/net/fm10k/fm10k_ethde

[dpdk-dev] [PATCH v2 1/2] net/fm10k: convert to new Rx offloads API

2018-03-28 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Wei Dai --- drivers/net/fm10k/fm10k.h | 1 + drivers/net/fm10k/fm10k_ethde

[dpdk-dev] [PATCH v2 0/2] net/fm10k: convert to new Rx/Tx offloads API

2018-03-28 Thread Wei Dai
This patch set support new offloads API in fm10k PF and VF. --- v2: Add Header_Split in per port Rx capability. Add Rx/Tx offloading checking Wei Dai (2): net/fm10k: convert to new Rx offloads API net/fm10k: convert to new Tx offloads API drivers/net/fm10k/fm10k.h | 2

[dpdk-dev] [PATCH v6 0/2] app/testpmd: add new commands to test new Tx/Rx offloads

2018-03-22 Thread Wei Dai
ev_tx_offload_name(). remove static const strings of Rx/Tx offload names. Wei Dai (2): app/testpmd: add commands to test new Rx offload API app/testpmd: add commands to test new Tx offload API app/test-pmd/cmdline.c | 759 + app/test-pmd/testp

[dpdk-dev] [PATCH v6 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-22 Thread Wei Dai
"vlan_strip", "ipv4_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 377 + app/test-pmd/testpmd.c | 19 ++- app/test-pmd/testpmd.h | 1 + 3 files changed, 395 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v6 2/2] app/testpmd: add commands to test new Tx offload API

2018-03-22 Thread Wei Dai
"vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 382 + app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 396 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v4 3/4] net/ixgbe: convert to new Rx offloads API

2018-03-21 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 93 +++--- drivers/net/ixgbe/ixgbe_ipsec.c

[dpdk-dev] [PATCH v4 4/4] net/ixgbe: convert to new Tx offloads API

2018-03-21 Thread Wei Dai
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 56 +--- drivers/net/ixgbe/ixgbe_ips

[dpdk-dev] [PATCH v4 2/4] net/ixgbe: support VLAN strip per queue offloading in VF

2018-03-21 Thread Wei Dai
VLAN strip is a per queue offloading in VF. With this patch it can be enabled or disabled on any Rx queue in VF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net

[dpdk-dev] [PATCH v4 1/4] net/ixgbe: support VLAN strip per queue offloading in PF

2018-03-21 Thread Wei Dai
VLAN strip is a per queue offloading in PF. With this patch it can be enabled or disabled on any Rx queue in PF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 109 +-- drivers/net/ixgbe/ixgbe_ethdev.h | 4 +- drivers/net/ixgbe/ixgbe_pf.c

[dpdk-dev] [PATCH v4 0/4] net/ixgbe: convert to new offloads API

2018-03-21 Thread Wei Dai
anmit function only work without any Tx offloads. v2: improve error checking Wei Dai (4): net/ixgbe: support VLAN strip per queue offloading in PF net/ixgbe: support VLAN strip per queue offloading in VF net/ixgbe: convert to new Rx offloads API net/ixgbe: convert to new Tx offload

[dpdk-dev] [PATCH] ethdev: add enum type for loop on Rx/Tx offloads

2018-03-19 Thread Wei Dai
ETH_TX_OFFLOAD_FIRST_FEATURE and end at ETH_TX_OFFLOAD_TOTAL_NUM. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.h | 44 +++ 1 file changed, 44 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0361533..0089ea3 100644 --- a/lib

[dpdk-dev] [PATCH v5 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-19 Thread Wei Dai
"vlan_strip", "ipv4_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 373 + app/test-pmd/testpmd.c | 19 ++- app/test-pmd/testpmd.h | 1 + 3 files changed, 391 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v5 2/2] app/testpmd: add commands to test new Tx offload API

2018-03-19 Thread Wei Dai
"vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 378 + app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 392 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v5 0/2] app/testpmd: add new commands to test new Tx/Rx offloads

2018-03-19 Thread Wei Dai
uration of all queues. v3: add enum rte_eth_rx_offload_type and enum rte_eth_tx_offload_type free memory of port->rx_offloads and port->tx_offloads when testpmd is existed v2: use rte_eth_dev_rx_offload_name() and rte_eth_dev_tx_offload_name(). remove static const strings of Rx/Tx offload names

[dpdk-dev] [PATCH v4 3/3] app/testpmd: add commands to test new Tx offload API

2018-03-19 Thread Wei Dai
"vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 379 + app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 393 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v4 2/3] app/testpmd: add commands to test new Rx offload API

2018-03-19 Thread Wei Dai
"vlan_strip", "ipv4_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 374 + app/test-pmd/testpmd.c | 19 ++- app/test-pmd/testpmd.h | 1 + 3 files changed, 392 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v4 1/3] ethdev: add enum type for loop on Rx/Tx offloads

2018-03-19 Thread Wei Dai
ETH_TX_OFFLOAD_FIRST_FEATURE and end at ETH_TX_OFFLOAD_TOTAL_NUM. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.h | 44 +++ 1 file changed, 44 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0361533..0089ea3 100644 --- a/lib

[dpdk-dev] [PATCH v4 0/3] app/testpmd: add new commands to test new Tx/Rx offload

2018-03-19 Thread Wei Dai
th_tx_offload_type free memory of port->rx_offloads and port->tx_offloads when testpmd is existed v2: use rte_eth_dev_rx_offload_name() and rte_eth_dev_tx_offload_name(). remove static const strings of Rx/Tx offload names. Wei Dai (3): ethdev: add enum type for loop on Rx/Tx

[dpdk-dev] [PATCH v4 3/3] pp/testpmd: add commands to test new Tx offload API

2018-03-19 Thread Wei Dai
"vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 379 + app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 393 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v4 2/3] app/testpmd: add commands to test new Rx offload API

2018-03-19 Thread Wei Dai
"vlan_strip", "ipv4_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 374 + app/test-pmd/testpmd.c | 19 ++- app/test-pmd/testpmd.h | 1 + 3 files changed, 392 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v4 0/3] app/testpmd: add new commands to test new Tx/Rx offload

2018-03-19 Thread Wei Dai
th_tx_offload_type free memory of port->rx_offloads and port->tx_offloads when testpmd is existed v2: use rte_eth_dev_rx_offload_name() and rte_eth_dev_tx_offload_name(). remove static const strings of Rx/Tx offload names. Wei Dai (3): ethdev: add enum type for loop on Rx/Tx

[dpdk-dev] [PATCH v4 1/3] ethdev: add enum type for loop on Rx/Tx offloads

2018-03-19 Thread Wei Dai
ETH_TX_OFFLOAD_FIRST_FEATURE and end at ETH_TX_OFFLOAD_TOTAL_NUM. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.h | 44 +++ 1 file changed, 44 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0361533..0089ea3 100644 --- a/lib

[dpdk-dev] [PATCH v3 4/4] net/ixgbe: convert to new Tx offloads API

2018-03-19 Thread Wei Dai
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 56 +--- drivers/net/ixgbe/ixgbe_ips

[dpdk-dev] [PATCH v3 3/4] net/ixgbe: convert to new Rx offloads API

2018-03-19 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 93 + drivers/net/ixgbe/ixgbe_ipsec.c

[dpdk-dev] [PATCH v3 2/4] net/ixgbe: support VLAN strip per queue offloading in VF

2018-03-19 Thread Wei Dai
VLAN strip is a per queue offloading in VF. With this patch it can be enabled or disabled on any Rx queue in VF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net

[dpdk-dev] [PATCH v3 0/4] net/ixgbe: convert to new offloads API

2018-03-19 Thread Wei Dai
. v2: improve error checking Wei Dai (4): net/ixgbe: support VLAN strip per queue offloading in PF net/ixgbe: support VLAN strip per queue offloading in VF net/ixgbe: convert to new Rx offloads API net/ixgbe: convert to new Tx offloads API drivers/net/ixgbe/ixgbe_ethdev.c

[dpdk-dev] [PATCH v3 1/4] net/ixgbe: support VLAN strip per queue offloading in PF

2018-03-19 Thread Wei Dai
VLAN strip is a per queue offloading in PF. With this patch it can be enabled or disabled on any Rx queue in PF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 109 +-- drivers/net/ixgbe/ixgbe_ethdev.h | 4 +- drivers/net/ixgbe/ixgbe_pf.c

[dpdk-dev] [PATCH v3 1/3] ethdev: add enum type for loop on Rx/Tx offloads

2018-03-17 Thread Wei Dai
ETH_TX_OFFLOAD_FIRST_FEATURE and end at ETH_TX_OFFLOAD_TOTAL_NUM. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.h | 44 +++ 1 file changed, 44 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0361533..0089ea3 100644 --- a/lib

[dpdk-dev] [PATCH v3 0/3] app/testpmd: add new commands to test new Tx/Rx offload API

2018-03-17 Thread Wei Dai
type free memory of port->rx_offloads and port->tx_offloads when testpmd is existed v2: use rte_eth_dev_rx_offload_name() and rte_eth_dev_tx_offload_name(). remove static const strings of Rx/Tx offload names. Wei Dai (3): ethdev: add enum type for loop on Rx/Tx offloads app/tes

[dpdk-dev] [PATCH v3 2/3] app/testpmd: add commands to test new Rx offload API

2018-03-17 Thread Wei Dai
"vlan_strip", "ipv4_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 367 + app/test-pmd/testpmd.c | 19 ++- app/test-pmd/testpmd.h | 1 + 3 files changed, 385 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v3 3/3] app/testpmd: add commands to test new Tx offload API

2018-03-17 Thread Wei Dai
"vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 372 + app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 386 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v2 0/2] app/testpmd: add new commands to test new Tx/Rx offload API

2018-03-13 Thread Wei Dai
ad_name(). remove static const strings of Rx/Tx offload names. Wei Dai (2): app/testpmd: add commands to test new Rx offload API app/testpmd: add commands to test new Tx offload API app/test-pmd/cmdline.c | 863 + app/test-pmd/testpmd.c | 28

[dpdk-dev] [PATCH v2 2/2] app/testpmd: add commands to test new Tx offload API

2018-03-13 Thread Wei Dai
"vlan_insert", "udp_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 439 + app/test-pmd/testpmd.c | 13 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 451 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-13 Thread Wei Dai
"vlan_strip", "ipv4_cksum", ... Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 424 + app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 438 insertions(+), 2 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-12 Thread Wei Dai
when the port is stopped. Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 456 + app/test-pmd/testpmd.c | 15 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 470 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test

[dpdk-dev] [PATCH 2/2] app/testpmd: add commands to test new Tx offload API

2018-03-12 Thread Wei Dai
when the port is stopped. Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c | 474 + app/test-pmd/testpmd.c | 13 +- app/test-pmd/testpmd.h | 1 + 3 files changed, 486 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test

[dpdk-dev] [PATCH 0/2] app/testpmd: add new commands to test new Tx/Rx offload API

2018-03-12 Thread Wei Dai
r disable a Tx per port offloading, please run: testpmd > rx_offload enable|disable per_queue vlan_strip|ipv4_cksum|... Same commands like "tx_offload ..." are also added to support new Tx offload API test. Wei Dai (2): app/testpmd: add commands to test new Rx offload API a

[dpdk-dev] [PATCH v2 1/4] net/ixgbe: support VLAN strip per queue offloading in PF

2018-03-07 Thread Wei Dai
VLAN strip is a per queue offloading in PF. With this patch it can be enabled or disabled on any Rx queue in PF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 109 +-- drivers/net/ixgbe/ixgbe_ethdev.h | 4 +- drivers/net/ixgbe/ixgbe_pf.c

[dpdk-dev] [PATCH v2 3/4] net/ixgbe: convert to new Rx offloads API

2018-03-07 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 93 + drivers/net/ixgbe/ixgbe_ipsec.c

[dpdk-dev] [PATCH v2 0/4] ixgbe: convert to new offloads API

2018-03-07 Thread Wei Dai
This patch set adds support of per queue VLAN strip offloading in ixgbe PF and VF. This patch support new offloads API in ixgbe PF and VF. --- v2: improve error checking Wei Dai (4): net/ixgbe: support VLAN strip per queue offloading in PF net/ixgbe: support VLAN strip per queue offloading

[dpdk-dev] [PATCH v2 4/4] net/ixgbe: convert to new Tx offloads API

2018-03-07 Thread Wei Dai
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 56 +-- drivers/net/ixgbe/ixgbe_ipsec.c | 5 ++

[dpdk-dev] [PATCH v2 2/4] net/ixgbe: support VLAN strip per queue offloading in VF

2018-03-07 Thread Wei Dai
VLAN strip is a per queue offloading in VF. With this patch it can be enabled or disabled on any Rx queue in VF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net

[dpdk-dev] [PATCH] net/fm10k: convert to new Rx/Tx offloads API

2018-03-01 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Rx and Tx offloads API. Si

[dpdk-dev] [PATCH 2/2] net/e1000: convert to new Tx offloads API

2018-03-01 Thread Wei Dai
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Wei Dai --- drivers/net/e1000/em_ethdev.c | 1 + drivers/net/e1000/em_rxtx.c| 3 +++ drivers/net/e1000/igb_et

[dpdk-dev] [PATCH 1/2] net/e1000: convert to new Rx offloads API

2018-03-01 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Wei Dai --- drivers/net/e1000/em_ethdev.c | 32 +++- drivers/net/e1000/em_rxtx

[dpdk-dev] [PATCH 0/2] net/e1000: convert to new Rx/Tx offloads API

2018-03-01 Thread Wei Dai
number of queues is only one in Rx or Tx path, let all offloads in the path are per queue for better convenience. Wei Dai (2): net/e1000: convert to new Rx offloads API net/e1000: convert to new Tx offloads API drivers/net/e1000/em_ethdev.c | 33 +++- drivers/net/e1000/em_rxtx.c

[dpdk-dev] [PATCH 2/4] net/ixgbe: support VLAN strip per queue offloading in VF

2018-02-27 Thread Wei Dai
VLAN strip is a per queue offloading in VF. With this patch it can be enabled or disabled on any Rx queue in VF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net

[dpdk-dev] [PATCH 3/4] net/ixgbe: convert to new Rx offloads API

2018-02-27 Thread Wei Dai
Ethdev Rx offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 88 +- drivers/net/ixgbe/ixgbe_ipsec.c

[dpdk-dev] [PATCH 4/4] net/ixgbe: convert to new Tx offloads API

2018-02-27 Thread Wei Dai
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 40 +++-- drivers/net/ixgbe/ixgbe_ipsec.c | 5 +++

[dpdk-dev] [PATCH 1/4] net/ixgbe: support VLAN strip per queue offloading in PF

2018-02-27 Thread Wei Dai
VLAN strip is a per queue offloading in PF. With this patch it can be enabled or disabled on any Rx queue in PF. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 109 +-- drivers/net/ixgbe/ixgbe_ethdev.h | 4 +- drivers/net/ixgbe/ixgbe_pf.c

[dpdk-dev] [PATCH 0/4] ixgbe: convert to new offloads API

2018-02-27 Thread Wei Dai
This patch set adds support of per queue VLAN strip offloading in ixgbe PF and VF. This patch support new offloads API in ixgbe PF and VF. Wei Dai (4): net/ixgbe: support VLAN strip per queue offloading in PF net/ixgbe: support VLAN strip per queue offloading in VF net/ixgbe: convert to new

[dpdk-dev] [PATCH] ethdev: check consistency of per port offloads

2018-02-01 Thread Wei Dai
( )/rte_eth_tx_queue_setup( ). This patch can make such checking in a common way in rte_ethdev layer to avoid same checking in underlying PMD. Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH] ethdev: fix comments for offload capabilites

2018-02-01 Thread Wei Dai
roduce Tx queue offloads API") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- lib/librte_ether/rte_ethdev.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0361533..6ab6552 100644 --- a/lib/librt

[dpdk-dev] [PATCH v6 2/2] app/testpmd: fix invalid txq number setting

2018-01-12 Thread Wei Dai
nvalid txq setting and keeps its last correct value. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Acked-by: Konstantin Ananyev Tested-by: Yuan Peng --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c | 6

[dpdk-dev] [PATCH v6 1/2] app/testpmd: fix invalid rxq number setting

2018-01-12 Thread Wei Dai
nvalid rxq setting and keeps its last correct value. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Acked-by: Konstantin Ananyev Tested-by: Yuan Peng --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c |

[dpdk-dev] [PATCH v6 0/2] app/testpmd: fix invalid rxq and txq nubmer settings

2018-01-12 Thread Wei Dai
d testpmd keeps last correct values of nb_rxq and nb_txq. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Aced-by: Konstantin Ananyev Tested-by: Yuan Peng --- v6: same as v5. only correct patchwork mail format error

[dpdk-dev] [PATCH v5 2/2] app/testpmd: fix invalid txq number setting

2018-01-12 Thread Wei Dai
nvalid txq setting and keeps its last correct value. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Acked-by: Konstantin Ananyev --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c | 6 +++--- app/test-p

[dpdk-dev] [PATCH v5 1/2] app/testpmd: fix invalid rxq number setting

2018-01-12 Thread Wei Dai
nvalid rxq setting and keeps its last correct value. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Acked-by: Konstantin Ananyev --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c | 7 --- app/test-p

[dpdk-dev] [PATCH v5 0/2] app/testpmd: fix invalid rxq and txq nubmer settings

2018-01-12 Thread Wei Dai
d testpmd keeps last correct values of nb_rxq and nb_txq. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Aced-by: Konstantin Ananyev --- v5: fix building failure with -Werror=maybe-uninitialized by gcc 5.3.1 fix t

[dpdk-dev] [PATCH v4 0/2] app/testpmd: fix invalid rxq and txq nubmer settings

2018-01-10 Thread Wei Dai
d testpmd keeps last correct values of nb_rxq and nb_txq. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Aced-by: Konstantin Ananyev --- v4: update git log message and rename 2 new added functions v3: follow the guide

[dpdk-dev] [PATCH v4 1/2] app/testpmd: fix invalid rxq number setting

2018-01-10 Thread Wei Dai
nvalid rxq setting and keeps its last correct value. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Acked-by: Konstantin Ananyev --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c | 7 --- app/test-p

[dpdk-dev] [PATCH v4 2/2] app/testpmd: fix invalid txq number setting

2018-01-10 Thread Wei Dai
nvalid txq setting and keeps its last correct value. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Acked-by: Konstantin Ananyev --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c | 6 +++--- app/test-p

[dpdk-dev] [PATCH v3 1/2] app/testpmd: fix invalid rxq number setting

2018-01-10 Thread Wei Dai
8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c | 7 --- app/test-pmd/testpmd.c| 47 +++ app/test-pmd/testpmd.h

[dpdk-dev] [PATCH v3 2/2] app/testpmd: fix invalid txq number setting

2018-01-10 Thread Wei Dai
8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- app/test-pmd/cmdline.c| 2 ++ app/test-pmd/parameters.c | 6 +++--- app/test-pmd/testpmd.c| 47 +++ app/test-pmd/testpmd.h| 2

[dpdk-dev] [PATCH v3 0/2] app/testpmd: fix invalid rxq and txq nubmer setting

2018-01-10 Thread Wei Dai
rash. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- v3: follow the guide from Konstantin to use functions to check input rxq and txq instead of usage of new added global variables. v2: fix a bug in v1 Wei

  1   2   3   4   >