[PATCH v1 2/2] net/ice: fix unsupported flow rule transfer attribute

2022-12-25 Thread Steve Yang
ice doesn't support transfer attribute of flow rule, ignore it when validating rule attributes. Fixes: d76116a4678f ("net/ice: add generic flow API") Signed-off-by: Steve Yang --- drivers/net/ice/ice_generic_flow.c | 8 1 file changed, 8 insertions(+) diff --git a/

[PATCH v1 1/2] net/i40e: fix unsupported flow rule transfer attribute

2022-12-25 Thread Steve Yang
i40e doesn't support transfer attribute of flow rule, ignore it when validating rule attributes. Fixes: 86eb05d6350b ("net/i40e: add flow validate function") Signed-off-by: Steve Yang --- drivers/net/i40e/i40e_flow.c | 8 1 file changed, 8 insertions(+) diff --git a/d

[PATCH v1 0/2] fix unsupported flow rule transfer attribute

2022-12-25 Thread Steve Yang
ice & i40e doesn't support transfer attribute of flow rule, ignore it when validating rule attributes. Steve Yang (2): net/i40e: fix unsupported flow rule transfer attribute net/ice: fix unsupported flow rule transfer attribute drivers/net/i40e/i40e_flow.c | 8 dr

[PATCH v2] net/iavf: fix taninted scalar

2022-11-10 Thread Steve Yang
ze to avoid data downcast. Coverity issue: 381131 Fixes: 91f27b2e39ab ("net/iavf: refactor RSS") Signed-off-by: Steve Yang --- drivers/net/iavf/iavf_hash.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/net/iavf/iavf_hash.c b/drive

[PATCH v1] net/iavf: fix taninted scalar

2022-11-09 Thread Steve Yang
ze to avoid data downcast. Coverity issue: 381131 Fixes: 91f27b2e39ab ("net/iavf: refactor RSS") Signed-off-by: Steve Yang --- drivers/net/iavf/iavf_hash.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/

[PATCH v1] net/iavf: fix refine protocol header error

2022-10-30 Thread Steve Yang
Protocol header count should be changed when tunnel level is larger than 1. Fixes: 13a7dcddd8ee ("net/iavf: fix taninted scalar") Signed-off-by: Steve Yang --- drivers/net/iavf/iavf_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iav

[PATCH v1] net/ice: fix format overflow warning for meson build

2022-10-19 Thread Steve Yang
‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] Enlarge string size to avoid this warning. Fixes: f2a3245e7aec ("net/ice: support ddp dump switch rule binary") Signed-off-by: Steve Yang --- drivers/net/ice/ice_ddp_pac

[PATCH v2] net/ice: support ddp dump switch rule binary

2022-10-17 Thread Steve Yang
Dump ICE ddp runtime switch rule binary via following command: testpmd> ddp dump switch You can covert the binary file to readable texture via dpdt tool. Signed-off-by: Steve Yang --- drivers/net/ice/ice_ddp_package.c | 93 +++ drivers/net/ice/ice_ethde

[PATCH v1] net/ice: support ddp dump switch rule binary

2022-10-17 Thread Steve Yang
Dump ICE ddp runtime switch rule binary via following command: testpmd> ddp dump switch You can covert the binary file to readable texture via dpdt tool. Signed-off-by: Steve Yang --- drivers/net/ice/ice_ddp_package.c | 93 +++ drivers/net/ice/ice_testpm

[PATCH v1] net/iavf: fix taninted scalar

2022-10-11 Thread Steve Yang
: support PPPoL2TPv2oUDP RSS Hash") Signed-off-by: Steve Yang --- drivers/net/iavf/iavf_hash.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c index dea4e0aa0a..71c80d2c75 100644 --- a/drivers/net/i

[RFC v1] net/i40e: support customerized VXLAN FDIR and inner RSS

2022-09-29 Thread Steve Yang
7; e.g.: port config 0 udp_tunnel_port add vxlan-gpe 250 - enable rss via command 'port config all rss all' Signed-off-by: Steve Yang --- drivers/net/i40e/base/i40e_type.h | 15 ++ drivers/net/i40e/i40e_ethdev.c| 168 +++- drivers/net/i40e/i4

[PATCH v3] doc: add known issue in intel VF guide

2022-09-22 Thread Steve Yang
Add a known issue: configuring VLAN filters from VF is unsupported for i40e driver 2.17.15. Signed-off-by: Steve Yang --- doc/guides/nics/intel_vf.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/intel_vf.rst b/doc/guides/nics/intel_vf.rst index 09e1eb7685

[PATCH v1] net/ice/base: fix ddp pkg loaded failed

2022-09-07 Thread Steve Yang
When DDP package state is 'ICE_DDP_PKG_SAME_VERSION_ALREADY_LOADED', it should be treated as success state, otherwise, the wrong state will be used within 'ice_load_pkg'. Fixes: 58e9fd55be0e ("net/ice/base: refactor DDP code") Signed-off-by: Steve Yang --- driv

[PATCH v2] doc: add known issue in i40e guide

2022-09-05 Thread Steve Yang
Add a known issue: configuring VLAN filters from VF is unsupported for driver 2.17.15. Signed-off-by: Steve Yang --- doc/guides/nics/i40e.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index 4875774346..78247a496d 100644 --- a

[PATCH v1] net/ice/base: backport FDIR support to 20.11

2022-08-25 Thread Steve Yang
Add new protocol ID IPV6_NETX_PROTO support for FDIR and RSS, and always include proto or next header for l3 only RSS case. The feature depends on the specific ICE DDP packet. Signed-off-by: Steve Yang --- drivers/net/ice/base/ice_flow.c | 6 +- drivers/net/ice/base/ice_flow.h

[PATCH v1] net/ice/base: fix switch rules not cleared on warm reset

2022-08-11 Thread Steve Yang
en process was killed abnormally. Fixes: 453d087ccaff ("net/ice/base: add common functions") Cc: sta...@dpdk.org Signed-off-by: Steve Yang --- drivers/net/ice/base/ice_common.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/i

[PATCH v1] net/iavf: fix pattern check for flow director parser

2022-08-09 Thread Steve Yang
FDIR rules with masks are not supported in current code. Thus add pattern check for IPv4/UDP/TCP/SCTP addr/port to terminate the FDIR programming stage. Fixes: d5eb3e600d9e ("net/iavf: support flow director basic rule") Cc: sta...@dpdk.org Signed-off-by: Steve Yang --- driver

[PATCH v1] doc: add known issue in i40e guide

2022-07-28 Thread Steve Yang
Add a known issue: configuring VLAN filters from VF is unsupported for driver 2.17.15. Signed-off-by: Steve Yang --- doc/guides/nics/i40e.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index 4875774346..abb99406b3 100644 --- a

[PATCH v5] net/ice: support dump DDP runtime configure

2022-06-09 Thread Steve Yang
> ddp dump 0 current.pkg If you want to dump ice VF DDP runtime configure, you need bind other unused PF port of the NIC first, and then dump the PF's runtime configure as target output. Signed-off-by: Steve Yang --- drivers/net/ice/ice_ddp_package.c | 418 ++

[PATCH v4] net/ice: support dump DDP runtime configure

2022-06-09 Thread Steve Yang
> ddp dump 0 current.pkg If you want to dump ice VF DDP runtime configure, you need bind other unused PF port of the NIC first, and then dump the PF's runtime configure as target output. Signed-off-by: Steve Yang --- drivers/net/ice/ice_ddp_package.c | 418 ++

[PATCH v3] app/testpmd: support ddp dump command for ice

2022-05-18 Thread Steve Yang
> ddp dump 0 current.pkg If you want to dump ice VF DDP runtime configure, you need bind other unused PF port of the NIC first, and then dump the PF's runtime configure as target output. Signed-off-by: Steve Yang --- v3: change git commit log --- app/test-pmd/cmdline.

[PATCH v2 2/2] app/testpmd: support dump_pkg command for ice

2022-05-11 Thread Steve Yang
p 0 current.pkg If you want to dump ice VF ddp package, you need bind other unused PF port of the NIC first, and then dump the PF ddp package as target output. Signed-off-by: Steve Yang --- app/test-pmd/cmdline.c | 74 app/test-pmd/meson.build | 3 ++ 2 fi

[PATCH v2 1/2] net/ice: support dump ice ddp package

2022-05-11 Thread Steve Yang
Send the AQ command to acquire ice ddp package, and dump the binary to output file. Export rte dump package API (rte_pmd_ice_dump_package) for application. Signed-off-by: Steve Yang --- drivers/net/ice/ice_ddp_package.c | 418 ++ drivers/net/ice/ice_ethdev.c

[PATCH v2 0/2] ICE ddp download tool

2022-05-11 Thread Steve Yang
p 0 current.pkg If you want to dump ice VF ddp package, you need bind other unused PF port of the NIC first, and then dump the PF ddp package as target output. --- v2: - fixed compiling issue - fixed unused variables warning Steve Yang (2): net/ice: support dump ice ddp package app/testpmd: supp

[PATCH v1 2/2] app/testpmd: support dump_pkg command for ice

2022-05-11 Thread Steve Yang
p 0 current.pkg If you want to dump ice VF ddp package, you need bind other unused PF port of the NIC first, and then dump the PF ddp package as target output. Signed-off-by: Steve Yang --- app/test-pmd/cmdline.c | 74 ++ 1 file changed, 74 insertions(+) diff --

[PATCH v1 1/2] net/ice: support dump ice ddp package

2022-05-11 Thread Steve Yang
Send the AQ command to acquire ice ddp package, and dump the binary to output file. Export rte dump package API (rte_pmd_ice_dump_package) for application. Signed-off-by: Steve Yang --- drivers/net/ice/ice_ddp_package.c | 418 ++ drivers/net/ice/ice_ethdev.c

[PATCH v1 0/2] ICE ddp download tool

2022-05-11 Thread Steve Yang
p 0 current.pkg If you want to dump ice VF ddp package, you need bind other unused PF port of the NIC first, and then dump the PF ddp package as target output. Steve Yang (2): net/ice: support dump ice ddp package app/testpmd: support dump_pkg command for ice app/test-pmd/cmdline.c|

[RFC v2] net/i40e: backport i40e fixes and share code to 21.11

2022-04-06 Thread Steve Yang
Backport all the i40e share code to 21.11 based on cid-i40e.2022.03.08. Backport all the iavf share code to 21.11 based on cid-avf.2022.03.08. Backport all DPDK bug fixes of i40e and iavf to 21.11 from 22.03. Signed-off-by: Steve Yang --- v2: add new device id for i40e. --- drivers/common/iavf

[RFC v2] net/i40e: backport i40e fixes and share code to 19.11.11

2022-04-06 Thread Steve Yang
Backport all the i40e share code to 19.11.11 based on cid-i40e.2022.03.08. Backport all DPDK bug fixes of i40e & i40evf to 19.11.11 from 22.03. Signed-off-by: Steve Yang --- v2: add new device id for i40e --- drivers/net/i40e/base/README| 2 +- drivers/net/i40e/

[RFC] net/i40e: backport i40e fixes and share code to 21.11

2022-03-28 Thread Steve Yang
Backport all the i40e share code to 21.11 based on cid-i40e.2022.03.08. Backport all the iavf share code to 21.11 based on cid-avf.2022.03.08. Backport all DPDK bug fixes of i40e and iavf to 21.11 from 22.03. Signed-off-by: Steve Yang --- drivers/common/iavf/README | 2

[RFC] net/i40e: backport i40e fixes and share code to 19.11.11

2022-03-28 Thread Steve Yang
Backport all the i40e share code to 19.11.11 based on cid-i40e.2022.03.08. Backport all DPDK bug fixes of i40e & i40evf to 19.11.11 from 22.03. Signed-off-by: Steve Yang --- drivers/net/i40e/base/README| 2 +- drivers/net/i40e/base/i40e_adminq.c | 217 -- drivers/net/

[PATCH v1] net/iavf: fix select wrong scan hw ring by rxdid

2022-03-14 Thread Steve Yang
;net/iavf: fix function pointer in multi-process") Cc: sta...@dpdk.org Signed-off-by: Steve Yang --- drivers/net/iavf/iavf_rxtx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 16e8d021f9..3b16609f7d 100644 --- a/driver

[PATCH v1] net/iavf: fix function pointer in multi-process

2022-02-28 Thread Steve Yang
flex desc metadata extraction") Cc: sta...@dpdk.org Signed-off-by: Steve Yang --- drivers/net/iavf/iavf_rxtx.c | 40 +++- drivers/net/iavf/iavf_rxtx.h | 2 -- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/driver

[PATCH v3] net/i40e: fix unintentional integer overflow

2022-02-24 Thread Steve Yang
t that expects an expression of type uint64_t (64 bits, unsigned). Coverity issue: 375812 Fixes: 5fec01c35c49 ("net/i40e: support Linux VF to configure IRQ link list") Cc: sta...@dpdk.org --- v2: update commit message; v3: use RTE_BIT64() to set bit; Signed-off-by: Steve Yang ---

[PATCH v2] net/i40e: fix unintentional integer overflow

2022-02-23 Thread Steve Yang
t that expects an expression of type uint64_t (64 bits, unsigned). Coverity issue: 375812 Fixes: 5fec01c35c49 ("net/i40e: support Linux VF to configure IRQ link list") Cc: sta...@dpdk.org --- v2: update commit message. Signed-off-by: Steve Yang --- drivers/net/i40e/i40e_pf.c | 2 +- 1

[PATCH v1] eal/linux: fix memory illegal accesses

2022-02-23 Thread Steve Yang
SG_LEN + 1' and ensure the last one can be set to 0 when received buffer size is EAL_UEV_MSG_LEN. CID 375864: Memory - illegal accesses (STRING_NULL) Passing unterminated string "buf" to "dev_uev_parse", which expects a null-terminated string. Coverity issue: 375864 Fixes

[PATCH v1] net/i40e: fix coverity issue

2022-02-22 Thread Steve Yang
t that expects an expression of type uint64_t (64 bits, unsigned). Coverity issue: 375812 Fixes: 5fec01c35c49 ("net/i40e: support Linux VF to configure IRQ link list") Signed-off-by: Steve Yang --- drivers/net/i40e/i40e_pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH v1] net/ice: fix dereference before null check

2022-02-07 Thread Steve Yang
s leading to the check. Coverity issue: 375065 Fixes: fd8480e61490 ("net/ice: support module EEPROM") Cc: sta...@dpdk.org Signed-off-by: Steve Yang --- drivers/net/ice/ice_ethdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/dr

[PATCH 2/2] app/testpmd: fix stack overflow for EEPROM display

2022-01-19 Thread Steve Yang
When the size of EEPROM exceeds the default thread stack size(8MB), e.g.: 10Mb size, it will be cashed with stack overflow. Allocate the data of EPPROM information on the heap. Fixes: 6b67721dee2a ("app/testpmd: add EEPROM command") Signed-off-by: Steve Yang --- app/test-pmd/con

[PATCH 1/2] net/ice: add module EEPROM ops for ice

2022-01-19 Thread Steve Yang
Add new callbacks for eth_dev_ops of ice to get the information and data of plugin module EEPROM. Signed-off-by: Steve Yang --- drivers/net/ice/ice_ethdev.c | 160 +++ drivers/net/ice/ice_ethdev.h | 25 ++ 2 files changed, 185 insertions(+) diff --git a

[PATCH 0/2] add module EEPROM ops for ice

2022-01-19 Thread Steve Yang
Added the following 2 items of ice_eth_dev_ops for ice: - ice_get_module_info - ice_get_module_eeprom Fixed stack overflow error when displaying a large size info. Steve Yang (2): net/ice: add module EEPROM ops for ice app/testpmd: fix stack overflow for EEPROM display app/test-pmd

[dpdk-dev] [PATCH v1 2/2] net/ice/base: support L4 for QinQ switch filter

2021-09-10 Thread Steve Yang
is 400 / end actions vf id 1 / end Signed-off-by: Steve Yang --- drivers/net/ice/base/ice_switch.c | 173 +- 1 file changed, 168 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 9179f66c20

[dpdk-dev] [PATCH v1 1/2] net/ice: add L4 support for QinQ switch filter

2021-09-10 Thread Steve Yang
Add L4 support for QinQ switch filter as following flow patterns: eth / vlan / vlan / ipv4 / udp eth / vlan / vlan / ipv4 / tcp eth / vlan / vlan / ipv6 / udp eth / vlan / vlan / ipv6 / tcp Signed-off-by: Steve Yang --- drivers/net/ice/ice_generic_flow.c | 4 drivers/net/ice

[dpdk-dev] [PATCH v1 0/2] support L4 for QinQ switch filter

2021-09-10 Thread Steve Yang
The requirement to support filter by dst MAC + outer VLAN id + inner VLAN id + dst IP + dst port. Currently we only support pattern eth / vlan/ vlan/ IP, in switch filter, the request to add l4 support as eth / vlan / vlan / IP / udp|tcp. Steve Yang (2): net/ice: add L4 support for QinQ switch

[dpdk-dev] [PATCH v3] net/i40e: fix set rss hash function invalid

2021-06-21 Thread Steve Yang
ixes: ef4c16fd9148 ("net/i40e: refactor RSS flow") Cc: sta...@dpdk.org Signed-off-by: Steve Yang --- v3: - add Cc stable line. v2: - add the fix line. - support simple_xor and toeplitz hash functions explicitly. drivers/net/i40e/i40e_hash.c | 20 ++-- 1 file changed, 14 in

[dpdk-dev] [PATCH v2] net/i40e: fix set rss hash function invalid

2021-06-10 Thread Steve Yang
ixes: ef4c16fd9148 ("net/i40e: refactor RSS flow") Signed-off-by: Steve Yang --- v2: - add the fix line. - support simple_xor and toeplitz hash functions explicitly. drivers/net/i40e/i40e_hash.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/dr

[dpdk-dev] [PATCH v1] net/i40e: fix set rss hash function invalid

2021-06-10 Thread Steve Yang
f-by: Steve Yang --- drivers/net/i40e/i40e_hash.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/i40e/i40e_hash.c b/drivers/net/i40e/i40e_hash.c index b1cb24f437..bd734722d9 100644 --- a/drivers/net/i40e/i40e_hash.c +++ b/drivers/net/i40e/i40e_hash.c @@ -1107,11 +11

[dpdk-dev] [PATCH v1] net/i40e: fix flow director does not work

2021-05-18 Thread Steve Yang
0e: fix flow director for common pctypes") Signed-off-by: Steve Yang --- drivers/net/i40e/i40e_fdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c index ac0e09bfdd..3c7cf1ba90 100644 --- a/drivers/net/i40e/i40e

[dpdk-dev] [PATCH v4 2/2] app/testpmd: fix max-pkt-len option invalid

2021-01-25 Thread Steve Yang
per-queue offload capabilities 0x0 in rte_eth_rx_queue_setup() Fail to configure port 0 rx queues //<-- Fail error info; ------ Fixes: 761c4d6690 ("app/testpmd: fix max Rx packet length for VLAN packets") Signed-off-by: Steve Yang --- app/test-pmd/cmdline.c| 1 + app/test-pmd/parameters.

[dpdk-dev] [PATCH v4 1/2] ethdev: fix MTU doesn't update when jumbo frame disabled

2021-01-25 Thread Steve Yang
een used for other purposes in many places now, even though the 'max_rx_pkt_len' is expected 'Only used if JUMBO_FRAME enabled'. For examples, 'max_rx_pkt_len' perhaps can be used as the 'rx_ctx.rxmax' in i40e. Fixes: bf0f90d92d30 ("ethdev: fix max

[dpdk-dev] [PATCH v4 0/2] fix 'max-pkt-len' errors

2021-01-25 Thread Steve Yang
e update logic to 'rxtx_port_config'; * added the 'tx_conf' part; * optimized the 'default' assignment; --- Steve Yang (2): ethdev: fix MTU doesn't update when jumbo frame disabled app/testpmd: fix max-pkt-len option invalid app/test-pmd/cmdline.c | 1

[dpdk-dev] [PATCH v3 3/3] app/testpmd: fix dynamic config error

2021-01-22 Thread Steve Yang
estpmd: fix offload flags after port config") Signed-off-by: Steve Yang --- app/test-pmd/testpmd.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index a2c9aad960..8307c7f9e9 100644 --- a/app/te

[dpdk-dev] [PATCH v3 2/3] app/testpmd: fix max-pkt-len option invalid

2021-01-22 Thread Steve Yang
)', and detect if 'max_rx_pkt_len' should be update to 1500 + overhead as default configuration. Fixes: 761c4d6690 ("app/testpmd: fix max Rx packet length for VLAN packets") Signed-off-by: Steve Yang --- app/test-pmd/cmdline.c| 1 + app/test-pmd/parameters.c |

[dpdk-dev] [PATCH v3 1/3] ethdev: fix MTU doesn't update when jumbo frame disabled

2021-01-22 Thread Steve Yang
een used for other purposes in many places now, even though the 'max_rx_pkt_len' is expected 'Only used if JUMBO_FRAME enabled'. For examples, 'max_rx_pkt_len' perhaps can be used as the 'rx_ctx.rxmax' in i40e. Fixes: bf0f90d92d30 ("ethdev: fix max

[dpdk-dev] [PATCH v3 0/3] fix 'max-pkt-len' errors

2021-01-22 Thread Steve Yang
tarted; 3. When rx/tx queue offloads capabilities aren't specified, the rx/tx queue setup will be failed once the port offloads changed. --- v3: * rebased code to latest; * splited to 3 commits; v2: * moved the update logic to 'rxtx_port_config'; * added the 'tx_conf&#

[dpdk-dev] [PATCH v4 22/22] net/liquidio: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 9f1c00266d82 ("net/liquidio: add API to set MTU") Cc: Shijith Thotton Cc: Srisivasubramanian Srinivasan Signed-off-by: Steve Yang --- drivers/net/liquidio/lio_ethdev.c | 2 +- drivers/net/liquidio/

[dpdk-dev] [PATCH v4 21/22] net/nfp: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
#x27;RTE_ETHER_MTU', that perhaps impacts the cases of the jumbo frame related. Fixes: d4a27a3b092a ("nfp: add basic features") Cc: Heinrich Kuhn Signed-off-by: Steve Yang --- drivers/net/nfp/nfp_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/n

[dpdk-dev] [PATCH v4 20/22] net/hinic: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 254bd849b132 ("net/hinic: set jumbo frame offload flag") Cc: Ziyang Xuan Cc: Xiaoyun Wang Cc: Guoyang Zhou Signed-off-by: Steve Yang --- drivers/net/hinic/hinic_pmd_ethdev.c | 5 - 1 file changed, 4 in

[dpdk-dev] [PATCH v4 19/22] net/enetc: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 5d5589b0c858 ("net/enetc: support MTU update and jumbo frames") Cc: Gagandeep Singh Cc: Sachin Saxena Signed-off-by: Steve Yang --- drivers/net/enetc/enetc.h| 4 drivers/net/enetc/enetc_ethdev

[dpdk-dev] [PATCH v4 18/22] net/axgbe: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: b58d8781fa1f ("net/axgbe: support setting MTU") Cc: Somalapuram Amaranath Signed-off-by: Steve Yang --- drivers/net/axgbe/axgbe_ethdev.c | 2 +- drivers/net/axgbe/axgbe_ethdev.h | 6 ++ 2 files chang

[dpdk-dev] [PATCH v4 17/22] net/cxgbe: fix the jumbo frame flag condition

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 4b2eff452d2e ("cxgbe: enable jumbo frames") Fixes: 0ec33be4c857 ("cxgbe: allow to change mtu") Cc: Rahul Lakkireddy Signed-off-by: Steve Yang --- drivers/net/cxgbe/cxgbe.h| 4 drivers/

[dpdk-dev] [PATCH v4 16/22] net/ixgbe: fix the jumbo frame flag condition

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") Fixes: 95a27b3ba5f5 ("net/ixgbe: enable jumbo frame for VF") Cc: Jeff Guo Cc: Haiyue Wang Acked-by: Jeff Guo Signed-off-by: Steve Yang --- drivers/

[dpdk-dev] [PATCH v4 15/22] net/thunderx: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 65d9804edc05 ("net/thunderx: support MTU configuration") Cc: Jerin Jacob Cc: Maciej Czekaj Signed-off-by: Steve Yang --- drivers/net/thunderx/base/nicvf_hw_defs.h | 1 + drive

[dpdk-dev] [PATCH v4 14/22] net/sfc: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
#x27;RTE_ETHER_MTU', that perhaps impacts the cases of the jumbo frame related. Fixes: ff6a1197c3b1 ("net/sfc: convert to new Rx offload API") Cc: Andrew Rybchenko Signed-off-by: Steve Yang --- drivers/net/sfc/sfc_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[dpdk-dev] [PATCH v4 12/22] net/octeontx2: fix the jumbo frame flag condition for mtu

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 0e2efd02db58 ("net/octeontx2: add MTU set operation") Cc: Jerin Jacob Cc: Nithin Dabilpuram Cc: Kiran Kumar K Acked-by: Nithin Dabilpuram Signed-off-by: Steve Yang --- dri

[dpdk-dev] [PATCH v4 13/22] net/qede: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 200645ac7909 ("net/qede: set MTU") Cc: Rasesh Mody Cc: Shahed Shaikh Signed-off-by: Steve Yang --- drivers/net/qede/qede_ethdev.c | 2 +- drivers/net/qede/qede_rxtx.h |

[dpdk-dev] [PATCH v4 11/22] net/octeontx: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 3151e6a687a3 ("net/octeontx: support MTU") Cc: Harman Kalra Acked-by: Harman Kalra Signed-off-by: Steve Yang --- drivers/net/octeontx/octeontx_ethdev.c | 2 +- drivers/net/o

[dpdk-dev] [PATCH v4 10/22] net/ipn3ke: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor") Cc: Rosen Xu Reviewed-by: Rosen Xu Signed-off-by: Steve Yang --- drivers/net/ipn3ke/ipn3ke_ethdev.h | 1 + drivers/net/ipn

[dpdk-dev] [PATCH v4 09/22] net/ice: fix the jumbo frame flag condition

2021-01-17 Thread Steve Yang
Fixes: 50370662b727 ("net/ice: support device and queue ops") Cc: Qiming Yang Cc: Qi Zhang Signed-off-by: Steve Yang --- drivers/net/ice/ice_dcf_ethdev.c | 8 drivers/net/ice/ice_ethdev.c | 2 +- drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_rxtx.c

[dpdk-dev] [PATCH v4 08/22] net/iavf: fix the jumbo frame flag condition

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 3fd7a3719c66 ("net/avf: enable ops for MTU setting") Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: Beilei Xing Cc: Jingjing Wu Signed-off-by: Steve Yang -

[dpdk-dev] [PATCH v4 07/22] net/i40e: fix the jumbo frame flag condition

2021-01-17 Thread Steve Yang
tor") Fixes: c3ac7c5b0b8a ("net/i40e: convert to new Rx offloads API") Cc: Jeff Guo Cc: Beilei Xing Acked-by: Jeff Guo Signed-off-by: Steve Yang --- drivers/net/i40e/i40e_ethdev.c| 2 +- drivers/net/i40e/i40e_ethdev.h| 1 + drivers/net/i40e/i40e_ethdev_vf.c | 10 +

[dpdk-dev] [PATCH v4 06/22] net/hns3: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
ndary condition with 'HSN3_DEFAULT_FRAME_LEN', that perhaps impacts the cases of the jumbo frame related. Fixes: 1f5ca0b460cd ("net/hns3: support some device operations") Fixes: a5475d61fa34 ("net/hns3: support VF") Cc: "Min Hu (Connor)" Cc: Yisen Zhuang Cc: Lijun Ou Acke

[dpdk-dev] [PATCH v4 05/22] net/e1000: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: ef990fb56e55 ("net/e1000: convert to new Rx offloads API") Cc: Jeff Guo Cc: Haiyue Wang Acked-by: Jeff Guo Signed-off-by: Steve Yang --- drivers/net/e1000/e1000_ethdev.h | 2

[dpdk-dev] [PATCH v4 04/22] net/dpaa2: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: e16408499412 ("net/dpaa2: configure jumbo frames") Cc: Hemant Agrawal Cc: Sachin Saxena Acked-by: Hemant Agrawal Signed-off-by: Steve Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 2

[dpdk-dev] [PATCH v4 03/22] net/dpaa: fix the jumbo frame flag condition for mtu set

2021-01-17 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 25f854197abc ("net/dpaa: support jumbo frames") Cc: Hemant Agrawal Cc: Sachin Saxena Acked-by: Hemant Agrawal Signed-off-by: Steve Yang --- drivers/net/dpaa/dpaa_ethdev.c | 2 +- dr

[dpdk-dev] [PATCH v4 02/22] app/testpmd: fix max rx packet length for VLAN packets

2021-01-17 Thread Steve Yang
loads API") Fixes: 150c9ac2df13 ("app/testpmd: update Rx offload after setting MTU") Cc: Wenzhuo Lu Cc: Beilei Xing Cc: Bernard Iremonger Signed-off-by: Steve Yang --- app/test-pmd/cmdline.c| 6 -- app/test-pmd/config.c | 2 +- app/test-pmd/parameters.c | 7 ++-

[dpdk-dev] [PATCH v4 01/22] ethdev: fix MTU size exceeds max rx packet length

2021-01-17 Thread Steve Yang
for port, instead of default one. Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") Cc: Thomas Monjalon Cc: Ferruh Yigit Cc: Andrew Rybchenko Signed-off-by: Steve Yang --- lib/librte_ethdev/rte_ethdev.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) dif

[dpdk-dev] [PATCH v4 00/22] fix rx packets dropped issue

2021-01-17 Thread Steve Yang
stpmd; - adjusted the alignment style; - added offload check before updating mtu; v2: - defined the 'RTE_ETHER_MTU + overhead' to 'driver_ETH_MAX_LEN'; - changed the 'mtu > RTE_ETHER_MTU' to 'frame_size > driver_ETH_MAX_LEN'; --- Steve Yang (22): ethde

[dpdk-dev] [PATCH v3 22/22] net/liquidio: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 9f1c00266d82 ("net/liquidio: add API to set MTU") Signed-off-by: Steve Yang --- drivers/net/liquidio/lio_ethdev.c | 2 +- drivers/net/liquidio/lio_ethdev.h | 3 +++ 2 files changed, 4 insertions(+), 1 deleti

[dpdk-dev] [PATCH v3 21/22] net/nfp: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
#x27;RTE_ETHER_MTU', that perhaps impacts the cases of the jumbo frame related. Fixes: d4a27a3b092a ("nfp: add basic features") Signed-off-by: Steve Yang --- drivers/net/nfp/nfp_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/nfp_net.c b/dr

[dpdk-dev] [PATCH v3 20/22] net/hinic: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 254bd849b132 ("net/hinic: set jumbo frame offload flag") Signed-off-by: Steve Yang --- drivers/net/hinic/hinic_pmd_ethdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v3 19/22] net/enetc: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 5d5589b0c858 ("net/enetc: support MTU update and jumbo frames") Signed-off-by: Steve Yang --- drivers/net/enetc/enetc.h| 4 drivers/net/enetc/enetc_ethdev.c | 2 +- 2 files changed, 5 insertions

[dpdk-dev] [PATCH v3 18/22] net/axgbe: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: b58d8781fa1f ("net/axgbe: support setting MTU") Signed-off-by: Steve Yang --- drivers/net/axgbe/axgbe_ethdev.c | 2 +- drivers/net/axgbe/axgbe_ethdev.h | 6 ++ 2 files changed, 7 insertions(+), 1 del

[dpdk-dev] [PATCH v3 17/22] net/cxgbe: fix the jumbo frame flag condition

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 4b2eff452d2e ("cxgbe: enable jumbo frames") Fixes: 0ec33be4c857 ("cxgbe: allow to change mtu") Signed-off-by: Steve Yang --- drivers/net/cxgbe/cxgbe.h| 4 drivers/net/cxgbe/cxgbe_ethd

[dpdk-dev] [PATCH v3 16/22] net/ixgbe: fix the jumbo frame flag condition

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead even though current overhead is 18. Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") Fixes: 95a27b3ba5f5 ("net/ixgbe: enable jumbo frame for VF") Acked-by: Jeff Guo Signed-off-by: Steve Yang --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- dri

[dpdk-dev] [PATCH v3 15/22] net/thunderx: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 65d9804edc05 ("net/thunderx: support MTU configuration") Signed-off-by: Steve Yang --- drivers/net/thunderx/base/nicvf_hw_defs.h | 1 + drivers/net/thunderx/nicvf_ethdev.c | 2

[dpdk-dev] [PATCH v3 14/22] net/sfc: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
#x27;RTE_ETHER_MTU', that perhaps impacts the cases of the jumbo frame related. Fixes: ff6a1197c3b1 ("net/sfc: convert to new Rx offload API") Signed-off-by: Steve Yang --- drivers/net/sfc/sfc_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[dpdk-dev] [PATCH v3 13/22] net/qede: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 200645ac7909 ("net/qede: set MTU") Signed-off-by: Steve Yang --- drivers/net/qede/qede_ethdev.c | 2 +- drivers/net/qede/qede_rxtx.h | 1 + 2 files changed, 2 insertions(+), 1 de

[dpdk-dev] [PATCH v3 12/22] net/octeontx2: fix the jumbo frame flag condition for mtu

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 0e2efd02db58 ("net/octeontx2: add MTU set operation") Acked-by: Nithin Dabilpuram Signed-off-by: Steve Yang --- drivers/net/octeontx2/otx2_ethdev.h | 2 ++ drivers/net/oct

[dpdk-dev] [PATCH v3 11/22] net/octeontx: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 3151e6a687a3 ("net/octeontx: support MTU") Acked-by: Harman Kalra Signed-off-by: Steve Yang --- drivers/net/octeontx/octeontx_ethdev.c | 2 +- drivers/net/octeontx/octeontx_ethde

[dpdk-dev] [PATCH v3 10/22] net/ipn3ke: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor") Reviewed-by: Rosen Xu Signed-off-by: Steve Yang --- drivers/net/ipn3ke/ipn3ke_ethdev.h | 1 + drivers/net/ipn3ke/ipn3ke_

[dpdk-dev] [PATCH v3 08/22] net/iavf: fix the jumbo frame flag condition

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 3fd7a3719c66 ("net/avf: enable ops for MTU setting") Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: Steve Yang --- drivers/net/iavf/iavf.h

[dpdk-dev] [PATCH v3 09/22] net/ice: fix the jumbo frame flag condition

2021-01-14 Thread Steve Yang
Fixes: 50370662b727 ("net/ice: support device and queue ops") Signed-off-by: Steve Yang --- drivers/net/ice/ice_dcf_ethdev.c | 8 drivers/net/ice/ice_ethdev.c | 2 +- drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_rxtx.c | 10 +- 4 files ch

[dpdk-dev] [PATCH v3 06/22] net/hns3: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
ndary condition with 'HSN3_DEFAULT_FRAME_LEN', that perhaps impacts the cases of the jumbo frame related. Fixes: 1f5ca0b460cd ("net/hns3: support some device operations") Fixes: a5475d61fa34 ("net/hns3: support VF") Signed-off-by: Steve Yang --- drivers/net/hns3/hns3_ethdev.c| 2 +-

[dpdk-dev] [PATCH v3 07/22] net/i40e: fix the jumbo frame flag condition

2021-01-14 Thread Steve Yang
tor") Fixes: c3ac7c5b0b8a ("net/i40e: convert to new Rx offloads API") Acked-by: Jeff Guo Signed-off-by: Steve Yang --- drivers/net/i40e/i40e_ethdev.c| 2 +- drivers/net/i40e/i40e_ethdev.h| 1 + drivers/net/i40e/i40e_ethdev_vf.c | 10 +- drivers/net/i40e/i40e_f

[dpdk-dev] [PATCH v3 05/22] net/e1000: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: ef990fb56e55 ("net/e1000: convert to new Rx offloads API") Acked-by: Jeff Guo Signed-off-by: Steve Yang --- drivers/net/e1000/e1000_ethdev.h | 2 +- drivers/net/e1000/em_ethdev.c|

[dpdk-dev] [PATCH v3 04/22] net/dpaa2: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: e16408499412 ("net/dpaa2: configure jumbo frames") Signed-off-by: Steve Yang --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- drivers/net/dpaa2/dpaa2_ethdev.h | 4 2 files changed, 5 in

[dpdk-dev] [PATCH v3 03/22] net/dpaa: fix the jumbo frame flag condition for mtu set

2021-01-14 Thread Steve Yang
'RTE_ETHER_MTU' and overhead, that perhaps impacts the cases of the jumbo frame related. Fixes: 25f854197abc ("net/dpaa: support jumbo frames") Signed-off-by: Steve Yang --- drivers/net/dpaa/dpaa_ethdev.c | 2 +- drivers/net/dpaa/dpaa_ethdev.h | 4 2 files changed, 5 insertions

[dpdk-dev] [PATCH v3 02/22] app/testpmd: fix max rx packet length for VLAN packets

2021-01-14 Thread Steve Yang
loads API") Fixes: 150c9ac2df13 ("app/testpmd: update Rx offload after setting MTU") Signed-off-by: Steve Yang --- app/test-pmd/cmdline.c| 6 -- app/test-pmd/config.c | 2 +- app/test-pmd/parameters.c | 7 ++- app/test-pmd/testpmd.c| 18 ++ 4 fi

[dpdk-dev] [PATCH v3 01/22] ethdev: fix MTU size exceeds max rx packet length

2021-01-14 Thread Steve Yang
for port, instead of default one. Fixes: 59d0ecdbf0e1 ("ethdev: MTU accessors") Signed-off-by: Steve Yang --- lib/librte_ethdev/rte_ethdev.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev

  1   2   >