[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] 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 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] 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 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 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 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 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 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 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 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 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 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 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] 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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] 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] 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] net/ixgbe: fix PF DCB info

2017-10-22 Thread Wei Dai
queues. Fixes: 89d6728c7837 ("ethdev: get DCB information") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers

[dpdk-dev] [PATCH] app/testpmd: fix mapping of user priority to DCB TC

2017-10-23 Thread Wei Dai
When number of DCB traffic class is 4, user priority should be mapped to traffic class 0/1/2/3. Fixes: cb60ede6e3b6 ("ethdev: rename DCB field in config structs") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- app/test-pmd/testpmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[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] 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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] 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 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 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 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 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 v2] net/i40e: fix mirror rule reset when port is stopped

2017-09-10 Thread Wei Dai
When an i40e PF port is stopped, all mirror rules should be removed. All rule related software and hardware resources should also be removed. Fixes: a4def5edf0fc ("i40e: enable port mirroring") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Lijuan Tu --- drivers/net/i40e/i40

[dpdk-dev] [PATCH v2] net/i40e: fix mirror rule reset when port is stopped

2017-09-10 Thread Wei Dai
When an i40e PF port is stopped, all mirror rules should be removed. All rule related software and hardware resources should also be removed. Fixes: a4def5edf0fc ("i40e: enable port mirroring") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Lijuan Tu --- drivers/net/i40e/i40

[dpdk-dev] [PATCH v3] net/i40e: fix mirror rule reset when port is stopped

2017-09-19 Thread Wei Dai
When an i40e PF port is stopped, all mirror rules should be removed. All rule related software and hardware resources should also be removed. Fixes: a4def5edf0fc ("i40e: enable port mirroring") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Lijuan Tu --- drivers/net/i40e/i40

[dpdk-dev] [PATCH v4] net/i40e: fix mirror rule reset when port is stopped

2017-09-19 Thread Wei Dai
When an i40e PF port is stopped, all mirror rules should be removed. All rule related software and hardware resources should also be removed. Fixes: a4def5edf0fc ("i40e: enable port mirroring") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Lijuan Tu --- drivers/net/i40e/i40

[dpdk-dev] [PATCH v5] net/i40e: fix mirror rule reset when port is stopped

2017-09-19 Thread Wei Dai
When an i40e PF port is stopped, all mirror rules should be removed. All rule related software and hardware resources should also be removed. Fixes: a4def5edf0fc ("i40e: enable port mirroring") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Lijuan Tu --- drivers/net/i40e/i40

[dpdk-dev] [PATCH] net/ixgbe: fix VFIO interrupt mapping in PF

2017-09-20 Thread Wei Dai
VFIO vectors. This patch clears the VFIO interrupt mappings before setting both miscellaneous and Rx queue interrupt mappings again to avoid failure. Fixes: 0a45657a6794 ("pci: rework interrupt handling") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_et

[dpdk-dev] [PATCH] net/ixgbe: fix VFIO interrupt mapping in VF

2017-09-20 Thread Wei Dai
other VFIO vectors. This patch clears the VFIO interrupt mappings before setting both miscellaneous and Rx queue interrupt mappings again to avoid failure. Fixes: 77234603fba0 ("net/ixgbe: support VF mailbox interrupt for link up/down") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- d

[dpdk-dev] [PATCH] net/ixgbe: fix Rx queue interrupt mapping in VF

2017-09-20 Thread Wei Dai
: b13bfab4cdbe ("eal: reserve VFIO vector zero for misc interrupt") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgb

[dpdk-dev] [PATCH] net/ixgbe: fix VFIO interrupt mapping in PF

2017-09-20 Thread Wei Dai
VFIO vectors. This patch clears the VFIO interrupt mappings before setting both miscellaneous and Rx queue interrupt mappings again to avoid failure. Fixes: 0a45657a6794 ("pci: rework interrupt handling") Cc: sta...@dpdk.org Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_et

[dpdk-dev] [PATCH v6] net/i40e: fix mirror rule reset when port is closed

2017-09-24 Thread Wei Dai
") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by: Lijuan Tu --- drivers/net/i40e/i40e_ethdev.c | 36 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index f12aefa..85c1

[dpdk-dev] [PATCH v2] net/ixgbe: fix VFIO interrupt mapping in VF

2017-09-27 Thread Wei Dai
interrupt to other VFIO vectors. This patch clears the VFIO interrupt mappings before setting both miscellaneous and Rx queue interrupt mappings again to avoid failure. Fixes: 77234603fba0 ("net/ixgbe: support VF mailbox interrupt for link up/down") Cc: sta...@dpdk.org Signed-off-b

[dpdk-dev] [PATCH v9 3/5] net/i40e: add support of reset

2017-07-23 Thread Wei Dai
Reset a NIC by calling dev_uninit() and then dev_init(). Go through the same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/i40e/i40e_ethdev.c| 28

[dpdk-dev] [PATCH v9 2/5] net/ixgbe: add support of reset

2017-07-23 Thread Wei Dai
Reset a NIC by calling dev_uninit and then dev_init. Go through same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 47

[dpdk-dev] [PATCH v9 0/5] Support of NIC reset and keep same port id

2017-07-23 Thread Wei Dai
and v2: only reset PMD layer resource and keep same port id, but not restore settings Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu Reviewed-by: Remy Horton Wei Dai (5): ethdev: add support of NIC reset net/ixgbe: add support of reset net/i40e: add support of reset

[dpdk-dev] [PATCH v9 1/5] ethdev: add support of NIC reset

2017-07-23 Thread Wei Dai
rte_ether/rte_ethdev.h to get more details on why this function is needed, what it does, when it should be called and what an application should do after calling this function. Signed-off-by: Wei Dai Reviewed-by: Remy Horton --- lib/librte_ether/rte_ethdev.c | 17 +

[dpdk-dev] [PATCH v9 4/5] app/testpmd: enhance command to test NIC reset

2017-07-23 Thread Wei Dai
figure its forwarding mode and parmaters as previous ones. To avoid crash, current forwarding should be stopped before running "port reset port_id". Signed-off-by: Wei Dai Tested-by: Yuan Peng Acked-by: Jingjing Wu --- app/test-pmd/cmdline.c | 12 +

[dpdk-dev] [PATCH v9 5/5] doc: add description of the NIC reset API

2017-07-23 Thread Wei Dai
This patch add the description of NIC reset API in doc/guides/prog_guide/poll_mode_drv.rst . It explains why this API is needed, when it should be called and some noticeable information. Signed-off-by: Wei Dai Reviewed-by: Remy Horton --- doc/guides/prog_guide/poll_mode_drv.rst | 41

[dpdk-dev] [PATCH] net/ixgbe: add support of 2.5G and 5G

2017-07-24 Thread Wei Dai
This patch adds support of 2.5G and 5G link on some new ixgbe devices. It is based on 17.08-rc2 . Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 2 ++ drivers/net/ixgbe/ixgbe_ethdev.c| 8 2 files changed, 10 insertions(+) diff --git a/drivers/net/ixgbe/base

[dpdk-dev] [PATCH v2] net/ixgbe: add support of 2.5G and 5G on X550

2017-07-26 Thread Wei Dai
This patch adds support of 2.5G and 5G ethernet interface on X550. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe

[dpdk-dev] [PATCH v3] net/ixgbe: add support of 2.5G and 5G on X550

2017-07-26 Thread Wei Dai
This patch adds support of 2.5G and 5G ethernet interface on X550. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 5 + drivers/net/ixgbe/ixgbe_ethdev.c| 24 2 files changed, 29 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b

[dpdk-dev] [PATCH v4] net/ixgbe: add support of 2.5G and 5G on X550

2017-07-26 Thread Wei Dai
This patch adds support of 2.5G and 5G ethernet interface on X550. Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_type.h | 5 + drivers/net/ixgbe/ixgbe_ethdev.c| 27 --- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe

  1   2   3   4   >