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
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
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,
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
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
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
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_
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_
).
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
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
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
( )/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
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
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
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
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
"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
"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
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
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
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
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
.
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
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
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
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
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
"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
"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
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
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
"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
"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
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
"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
"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
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
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
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
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
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
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
"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
"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
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
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
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
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
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
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
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
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
"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
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
"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
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
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
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
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
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
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
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
: 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
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
")
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
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
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
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
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
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 +
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 +
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
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
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
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
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 - 100 of 363 matches
Mail list logo