[PATCH] net/ice: fix cannot setup queue at runtime

2022-10-17 Thread Kevin Liu
Failed to set queue at runtime, the reason is that 'dev_capa' is an invalid value. Add valid value to support rx/tx queue setup after device started. Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") Signed-off-by: Kevin Liu --- drivers/net/ice/ice_ethdev.c | 4 +++

[PATCH v2 2/2] net/ice: check illegal packets

2022-09-27 Thread Kevin Liu
e: support basic Rx/Tx") Signed-off-by: Kevin Liu --- drivers/net/ice/ice_rxtx.c | 11 +++ drivers/net/ice/ice_rxtx.h | 2 ++ 2 files changed, 13 insertions(+) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 5af7c0c8f6..d1e1fadf9d 100644 --- a/drivers/net

[PATCH v2 1/2] net/iavf: check illegal packets

2022-09-27 Thread Kevin Liu
vf: enable basic Rx Tx") Signed-off-by: Kevin Liu --- drivers/net/iavf/iavf_rxtx.c | 9 + drivers/net/iavf/iavf_rxtx.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 3deabe1d7e..be34d6210b 100644 --- a/d

[PATCH v2 0/2] check illegal packets

2022-09-27 Thread Kevin Liu
Check whether the data packet is illegal of ice and iavf driver. v2: Change the scheme, check the data_len and update commit log. Kevin Liu (2): net/iavf: check illegal packets net/ice: check illegal packets drivers/net/iavf/iavf_rxtx.c | 9 + drivers/net/iavf/iavf_rxtx.h | 2

[PATCH 2/2] net/ice: check illegal packets

2022-09-22 Thread Kevin Liu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This patch check those illegal packets and protect TX/RX from hanging. Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") Signed-off-by: Kevin Liu --- drivers/net/ice/ice_rxtx.c | 13 +

[PATCH 1/2] net/iavf: check illegal packets

2022-09-22 Thread Kevin Liu
Some illegal packets will lead to TX/RX hang and can't recover automatically. This patch check those illegal packets and protect TX/RX from hanging. Fixes: a2b29a7733ef ("net/avf: enable basic Rx Tx") Signed-off-by: Kevin Liu --- drivers/net/iavf/iavf_rxtx.c | 10 +- d

[PATCH 0/2] check illegal packets

2022-09-22 Thread Kevin Liu
Check whether the data packet is illegal of ice and iavf driver. Kevin Liu (2): net/iavf: check illegal packets net/ice: check illegal packets drivers/net/iavf/iavf_rxtx.c | 10 +- drivers/net/iavf/iavf_rxtx.h | 2 ++ drivers/net/ice/ice_rxtx.c | 13 + drivers/net/ice

[PATCH v4] net/i40e: fix single VLAN cannot work normally

2022-09-07 Thread Kevin Liu
valid_flags to 'I40E_AQ_SET_SWITCH_CFG_OUTER_VLAN' and set first_tag to 'RTE_ETHER_TYPE_QINQ'. Fixes: 38e9762be16a ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu --- v2: refine code --- v3: refine code --- v4: refine code and commit log --- doc/guides/nics/i

[PATCH v3] net/i40e: fix single VLAN cannot work normal

2022-09-06 Thread Kevin Liu
0x0008 and set first_tag to 0x88a8. Fixes: 38e9762be16a ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu Tested-by: Jiale Song --- v2: refine code --- v3: refine code --- doc/guides/nics/i40e.rst | 1 - drivers/net/i40e/i40e_ethd

[PATCH v2] net/i40e: fix single VLAN cannot work normal

2022-09-05 Thread Kevin Liu
0x0008 and set first_tag to 0x88a8. Fixes: 38e9762be16a ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu Tested-by: Jiale Song --- v2: refine code --- doc/guides/nics/i40e.rst | 1 - drivers/net/i40e/i40e_ethdev.c | 146 ++--- 2 fil

[PATCH] net/i40e: fix incorrect VLAN stripping for QinQ

2022-08-31 Thread Kevin Liu
ure inner VLAN strip. Signed-off-by: Kevin Liu --- doc/guides/nics/i40e.rst | 2 - drivers/net/i40e/i40e_ethdev.c | 170 +++-- drivers/net/i40e/i40e_ethdev.h | 4 + 3 files changed, 164 insertions(+), 12 deletions(-) diff --git a/doc/guides/nics/i40e.rst b/doc/

[PATCH v5] net/ice: refactor proto_ext to remove global variable

2022-08-29 Thread Kevin Liu
to PMD with devargs. Remove related private API in 'rte_pmd_ice.h' and 'rte_pmd_ice.h' file. Signed-off-by: Kevin Liu Tested-by: Jin Ling --- v2: Delete doc content related to 'rte_pmd_ice.h'. --- v3: Delete doc content related to 'rte_pmd_ice.h'. --- v4:

[PATCH v4] net/ice: refactor proto_ext to remove global variable

2022-08-25 Thread Kevin Liu
to PMD with devargs. Remove related private API in 'rte_pmd_ice.h' and 'rte_pmd_ice.h' file. Signed-off-by: Kevin Liu --- v2: Delete doc content related to 'rte_pmd_ice.h'. --- v3: Delete doc content related to 'rte_pmd_ice.h'. --- v4: refine code an

[PATCH] net/i40e: fix single VLAN cannot work normal

2022-08-18 Thread Kevin Liu
0x0008 and set first_tag to 0x88a8. Signed-off-by: Kevin Liu --- doc/guides/nics/i40e.rst | 1 - drivers/net/i40e/i40e_ethdev.c | 159 +++-- 2 files changed, 111 insertions(+), 49 deletions(-) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst

[PATCH v3] net/ice: refactor proto_ext to remove global variable

2022-08-04 Thread Kevin Liu
to PMD with devargs. Remove related private API in 'rte_pmd_ice.h' and 'rte_pmd_ice.h' file. Signed-off-by: Kevin Liu --- v2: Delete doc content related to 'rte_pmd_ice.h'. --- v3: Delete doc content related to 'rte_pmd_ice.h'. --- doc/api/doxy-ap

[PATCH v2] net/ice: refactor proto_ext to remove global variable

2022-08-04 Thread Kevin Liu
to PMD with devargs. Remove related private API in 'rte_pmd_ice.h' and 'rte_pmd_ice.h' file. Signed-off-by: Kevin Liu --- v2: Delete doc content related to 'rte_pmd_ice.h'. --- doc/api/doxy-api-index.md | 1 - doc/guides/nics/ice.rst

[PATCH] net/ice: refactor proto_ext to remove global variable

2022-07-27 Thread Kevin Liu
to PMD with devargs. Remove related private API in 'rte_pmd_ice.h' and 'rte_pmd_ice.h' file. Signed-off-by: Kevin Liu --- doc/guides/nics/ice.rst | 25 ++- drivers/net/ice/ice_ddp_package.c | 1 - drivers/net/ice/ice_ethdev.c | 70 ++--- drivers/

[PATCH v4] net/i40e: restore disable double VLAN by default

2022-07-07 Thread Kevin Liu
Previously, QinQ is enabled by default and can't be disabled, but there'll be performance drop if QinQ is enabled. So, disable QinQ by default. Fixes: ae97b8b89826 ("net/i40e: fix error disable double VLAN") Signed-off-by: Kevin Liu --- v2: update doc and refine commi

[PATCH v3] net/i40e: restore disable double VLAN by default

2022-07-07 Thread Kevin Liu
Previously, QinQ is enabled by default and can't be disabled, but there'll be performance drop if QinQ is enabled. So, disable QinQ by default. Fixes: ae97b8b89826 ("net/i40e: fix error disable double VLAN") Signed-off-by: Kevin Liu --- v2: update doc and refine commi

[PATCH v2] net/i40e: restore disable double VLAN by default

2022-07-07 Thread Kevin Liu
issue. Fixes: ae97b8b89826 ("net/i40e: fix error disable double VLAN") Signed-off-by: Kevin Liu --- v2: update doc and refine commit log --- doc/guides/nics/i40e.rst | 11 +++ drivers/net/i40e/i40e_ethdev.c | 12 2 files changed, 7 insertions(+), 16 deletion

[PATCH] net/i40e: restore disable double VLAN by default

2022-07-06 Thread Kevin Liu
Restore disable double VLAN by default. Fixes: ae97b8b89826 ("net/i40e: fix error disable double VLAN") Signed-off-by: Kevin Liu --- doc/guides/nics/i40e.rst | 6 +++--- drivers/net/i40e/i40e_ethdev.c | 12 2 files changed, 3 insertions(+), 15 deletions(-) diff -

[PATCH] doc: fix missing title underline

2022-07-04 Thread Kevin Liu
Title underline too short. Fill title underline. Fixes: ae97b8b89826 ("net/i40e: fix error disable double VLAN") Signed-off-by: Kevin Liu --- doc/guides/nics/i40e.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e

[PATCH v5] net/i40e: fix error disable double VLAN

2022-06-29 Thread Kevin Liu
Enable double VLAN by default after firmware v8.3 and disable double VLAN is not allowed in subsequent operations. Fixes: 4f13a78f1b8f ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu v4: fix warnig v3: refine commit log v2: update the document --- doc/guides/nic

[PATCH v4] net/i40e: fix error disable double VLAN

2022-06-28 Thread Kevin Liu
Enable double VLAN by default after firmware v8.3 and disable double VLAN is not allowed in subsequent operations. Fixes: 4f13a78f1b8f ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu v4: fix warnig v3: refine commit log v2: update the document --- doc/guides/nic

[PATCH v3] net/i40e: fix error disable double VLAN

2022-06-28 Thread Kevin Liu
Enable double VLAN by default after firmware v8.3 and disable double VLAN is not allowed in subsequent operations. Fixes: 4f13a78f1b8f ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu v3: refine commit log v2: update the document --- doc/guides/nics/i40e.rst

[PATCH v2] net/i40e: fix error disable double VLAN

2022-06-28 Thread Kevin Liu
Sync the kernel driver, enable double VLAN by default after firmware v8.3 and disable double VLAN is not allowed in subsequent operations. Fixes: 4f13a78f1b8f ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu v2: update the document --- doc/guides/nics/i40e.rst

[PATCH] net/i40e: fix error disable double VLAN

2022-06-28 Thread Kevin Liu
Sync the kernel driver, enable double VLAN by default after firmware v8.3 and disable double VLAN is not allowed in subsequent operations. Fixes: 4f13a78f1b8f ("net/i40e: add outer VLAN processing") Signed-off-by: Kevin Liu --- drivers/net/i40e/i40e_eth

RE: [PATCH 07/14] net/nfp: support NFDK firmware

2022-06-14 Thread Kevin Liu
something like 'nfp_netvf_ethdev_ops_mount()'. the logic I just use once in nfp_ethdev_vf.c, so not create a function. I will create 'nfp_netvf_ethdev_ops_mount()' in nfp_ethdev_vf.c later -Original Message----- From: Ferruh Yigit Sent: Tuesday, June 14, 2022 17:22 To:

RE: [PATCH 06/14] net/nfp: support NFP3800 card

2022-06-14 Thread Kevin Liu
Will do, thanks -Original Message- From: Ferruh Yigit Sent: Friday, June 3, 2022 06:53 To: Kevin Liu ; dev@dpdk.org Cc: Niklas Soderlund ; Diana Wang ; Nole Zhang ; Chaoyong He Subject: Re: [PATCH 06/14] net/nfp: support NFP3800 card On 6/2/2022 2:52 AM, Jin Liu wrote: > Add supp

RE: [PATCH 01/14] net/nfp: change the coding style

2022-06-14 Thread Kevin Liu
Will do, thanks -Original Message- From: Ferruh Yigit Sent: Friday, June 3, 2022 06:52 To: Kevin Liu ; dev@dpdk.org Cc: Niklas Soderlund ; Chaoyong He Subject: Re: [PATCH 01/14] net/nfp: change the coding style On 6/2/2022 2:52 AM, Jin Liu wrote: > From: Chaoyong He > > C

RE: [PATCH 14/14] net/nfp: modify RSS logic

2022-06-14 Thread Kevin Liu
RL_RSS2; else new_ctrl |= NFP_NET_CFG_CTRL_RSS; -Original Message- From: Ferruh Yigit Sent: Friday, June 3, 2022 06:57 To: Kevin Liu ; dev@dpdk.org Cc: Niklas Soderlund ; Diana Wang ; Nole Zhang ; Chaoyong He Subject: Re: [PATCH 14/14] net/nfp: mod

RE: [PATCH 08/14] net/nfp: structure adjustment

2022-06-14 Thread Kevin Liu
We want to distinguish between NFD3 and NFDk, and maybe it is not necessary, I will update it, thanks -Original Message- From: Ferruh Yigit Sent: Friday, June 3, 2022 06:54 To: Kevin Liu ; dev@dpdk.org Cc: Niklas Soderlund ; Diana Wang ; Nole Zhang ; Chaoyong He Subject: Re: [PATCH

RE: [PATCH 07/14] net/nfp: support NFDK firmware

2022-06-14 Thread Kevin Liu
; + default: > + PMD_DRV_LOG(ERR, "The version of firmware is not correct."); > + return -EINVAL; -Original Message- From: Ferruh Yigit Sent: Friday, June 3, 2022 06:54 To: Kevin Liu ; dev@dpdk.org Cc: Niklas Soderlund ; Diana Wang

RE: [PATCH 00/14] Add support of NFP3800 chip and firmware with NFDk

2022-06-14 Thread Kevin Liu
Yes, I will update documentation and release notes, thanks -Original Message- From: Ferruh Yigit Sent: Friday, June 3, 2022 06:51 To: Kevin Liu Cc: Niklas Soderlund ; dev@dpdk.org Subject: Re: [PATCH 00/14] Add support of NFP3800 chip and firmware with NFDk On 6/2/2022 2:52 AM, Jin

[PATCH v7] net/i40e: add outer VLAN processing

2022-06-10 Thread Kevin Liu
configuration while there are MAC/VLAN filters in the switch table. Therefore, we need to clear the MAC table before setting config, and then restore the MAC table after setting. This will not impact on an old firmware. Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/i40e

[PATCH v6] net/i40e: add outer VLAN processing

2022-06-10 Thread Kevin Liu
configuration while there are MAC/VLAN filters in the switch table. Therefore, we need to clear the MAC table before setting config, and then restore the MAC table after setting. This will not impact on an old firmware. Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/i40e

[PATCH v5] net/i40e: add outer VLAN processing

2022-06-10 Thread Kevin Liu
configuration while there are MAC/VLAN filters in the switch table. Therefore, we need to clear the MAC table before setting config, and then restore the MAC table after setting. This will not impact on an old firmware. Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/i40e

[PATCH v4] net/i40e: add outer VLAN processing

2022-06-08 Thread Kevin Liu
configuration while there are MAC/VLAN filters in the switch table. Therefore, we need to clear the MAC table before setting config, and then restore the MAC table after setting. This will not impact on an old firmware. Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/i40e

[PATCH v3] net/i40e: add outer VLAN processing

2022-06-08 Thread Kevin Liu
configuration while there are MAC/VLAN filters in the switch table. Therefore, we need to clear the MAC table before setting config, and then restore the MAC table after setting. This will not impact on an old firmware. Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/i40e

[PATCH v2] net/ice: fix missing MTU value setting

2022-05-17 Thread Kevin Liu
In the DCF module, Missing maximum and minimum MTU value settings. This patch adds the settings of the maximum and minimum MTU to correctly calculate the MTU value. Fixes: bf89db4409bb ("net/ice: complete device info get in DCF") Cc: sta...@dpdk.org v2: - update fixline Signed-off

[PATCH] net/ice: fix missing MTU value setting

2022-05-16 Thread Kevin Liu
In the DCF module, Missing maximum and minimum MTU value settings. This patch adds the settings of the maximum and minimum MTU to correctly calculate the MTU value. Fixes: 2fe6f1b76279 ("drivers/net: advertise no support for keeping flow rules") Cc: sta...@dpdk.org Signed-off-by:

[PATCH v7 12/12] net/ice: support DCF new VLAN capabilities

2022-04-28 Thread Kevin Liu
negotiation; and DCF is able to configure outer VLAN (0x8100) if port VLAN is disabled to be compatible with legacy mode. When port VLAN is updated by DCF, the DCF needs to reset to query the new VLAN capabilities. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c

[PATCH v7 11/12] net/ice: add implement power management

2022-04-28 Thread Kevin Liu
Implement support for the power management API by implementing a 'get_monitor_addr' function that will return an address of an RX ring's status bit. Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + drivers/net/ice/ice_dcf_ethdev.c | 1 + 2 files change

[PATCH v7 08/12] net/ice: support dcf VLAN filter and offload configuration

2022-04-28 Thread Kevin Liu
From: Alvin Zhang Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 2 + doc/guides/rel_notes

[PATCH v7 10/12] net/ice: support queue information getting

2022-04-28 Thread Kevin Liu
Add below ops, rxq_info_get txq_info_get Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index 6503700e02..9217392d04 100644 --- a/drivers/net/ice

[PATCH v7 09/12] net/ice: add extended stats

2022-04-28 Thread Kevin Liu
Add implementation of xstats() functions in DCF PMD. Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + drivers/net/ice/ice_dcf.h| 22 drivers/net/ice/ice_dcf_ethdev.c | 75 3 files changed, 98 insertions(+) diff

[PATCH v7 07/12] net/ice: support dcf MAC configuration

2022-04-28 Thread Kevin Liu
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list = dcf_set_mc_addr_list .mac_addr_set = dcf_dev_set_default_mac_addr Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- doc

[PATCH v7 06/12] net/ice: support dcf promisc configuration

2022-04-28 Thread Kevin Liu
From: Alvin Zhang Support configuration of unicast and multicast promisc on dcf. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 2 + doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf_ethdev.c | 77

[PATCH v7 05/12] net/ice: add ops dev-supported-ptypes-get to dcf

2022-04-28 Thread Kevin Liu
From: Jie Wang add API "dev_supported_ptypes_get" to dcf, that dcf pmd can get ptypes through the new API. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 80 +++- 1 file changed, 49 insertions(+), 31 deletion

[PATCH v7 04/12] net/ice: support for MTU configure in DCF mode

2022-04-28 Thread Kevin Liu
From: Jie Wang add API "mtu_set" to dcf, and it can configure the port mtu through cmdline. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf_ethdev.c

[PATCH v7 03/12] net/ice: support cleanup Tx buffers in DCF mode

2022-04-28 Thread Kevin Liu
From: Robin Zhang Add support for ops rte_eth_tx_done_cleanup in dcf Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index

[PATCH v7 02/12] net/ice: support for RSS HASH configure in DCF mode

2022-04-28 Thread Kevin Liu
d-off-by: Steve Yang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf.c | 2 +- drivers/net/ice/ice_dcf.h | 1 + drivers/net/ice/ice_dcf_ethdev.c | 51

[PATCH v7 01/12] net/ice: support for RSS RETA configure in DCF mode

2022-04-28 Thread Kevin Liu
From: Steve Yang RSS RETA should be updated and queried by application, Add related ops ('.reta_update', '.reta_query') for DCF. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst

[PATCH v7 00/12] complete common VF features for DCF

2022-04-28 Thread Kevin Liu
promisc configuration net/ice: support dcf VLAN filter and offload configuration net/ice: support DCF new VLAN capabilities Jie Wang (2): net/ice: support for MTU configure in DCF mode net/ice: add ops dev-supported-ptypes-get to dcf Kevin Liu (4): net/ice: support dcf MAC configuration

[PATCH v6 12/12] net/ice: support DCF new VLAN capabilities

2022-04-27 Thread Kevin Liu
negotiation; and DCF is able to configure outer VLAN (0x8100) if port VLAN is disabled to be compatible with legacy mode. When port VLAN is updated by DCF, the DCF needs to reset to query the new VLAN capabilities. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- doc/guides/rel_notes

[PATCH v6 11/12] net/ice: implement power management

2022-04-27 Thread Kevin Liu
Implement support for the power management API by implementing a 'get_monitor_addr' function that will return an address of an RX ring's status bit. Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst | 1 +

[PATCH v6 10/12] net/ice: support queue information getting

2022-04-27 Thread Kevin Liu
Add below ops, rxq_info_get txq_info_get Signed-off-by: Kevin Liu --- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf_ethdev.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/release_22_07.rst b/doc/guides/rel_notes/release_22_07.rst

[PATCH v6 09/12] net/ice: add extended stats

2022-04-27 Thread Kevin Liu
Add implementation of xstats() functions in DCF PMD. Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf.h | 22 drivers/net/ice/ice_dcf_ethdev.c | 75

[PATCH v6 08/12] net/ice: support dcf VLAN filter and offload configuration

2022-04-27 Thread Kevin Liu
From: Alvin Zhang Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 2 + doc/guides/rel_notes

[PATCH v6 07/12] net/ice: support dcf MAC configuration

2022-04-27 Thread Kevin Liu
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list = dcf_set_mc_addr_list .mac_addr_set = dcf_dev_set_default_mac_addr Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- doc

[PATCH v6 06/12] net/ice: support dcf promisc configuration

2022-04-27 Thread Kevin Liu
From: Alvin Zhang Support configuration of unicast and multicast promisc on dcf. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 2 + doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf_ethdev.c | 77

[PATCH v6 05/12] net/ice: add ops dev-supported-ptypes-get to dcf

2022-04-27 Thread Kevin Liu
From: Jie Wang add API "dev_supported_ptypes_get" to dcf, that dcf pmd can get ptypes through the new API. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf_ethdev.c | 80 -

[PATCH v6 04/12] net/ice: add ops MTU-SET to dcf

2022-04-27 Thread Kevin Liu
From: Jie Wang add API "mtu_set" to dcf, and it can configure the port mtu through cmdline. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf_ethdev.c

[PATCH v6 03/12] net/ice: cleanup Tx buffers

2022-04-27 Thread Kevin Liu
From: Robin Zhang Add support for ops rte_eth_tx_done_cleanup in dcf Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf_ethdev.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/guides/rel_notes

[PATCH v6 02/12] net/ice: enable RSS HASH ops for DCF hardware

2022-04-27 Thread Kevin Liu
d-off-by: Steve Yang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst | 1 + drivers/net/ice/ice_dcf.c | 2 +- drivers/net/ice/ice_dcf.h | 1 + drivers/net/ice/ice_dcf_ethdev.c | 51

[PATCH v6 01/12] net/ice: enable RSS RETA ops for DCF hardware

2022-04-27 Thread Kevin Liu
From: Steve Yang RSS RETA should be updated and queried by application, Add related ops ('.reta_update', '.reta_query') for DCF. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + doc/guides/rel_notes/release_22_07.rst

[PATCH v6 00/12] complete common VF features for DCF

2022-04-27 Thread Kevin Liu
VLAN filter and offload configuration net/ice: support DCF new VLAN capabilities Jie Wang (2): net/ice: add ops MTU-SET to dcf net/ice: add ops dev-supported-ptypes-get to dcf Kevin Liu (4): net/ice: support dcf MAC configuration net/ice: add extended stats net/ice: support queue

[PATCH v5 12/12] doc: update for ice DCF datapath configuration

2022-04-20 Thread Kevin Liu
Update "ice_dcf" driver feature list. Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 15 +++ 1 file changed, 15 insertions(+) diff --git a/doc/guides/nics/features/ice_dcf.ini b/doc/guides/nics/features/ice_dcf.ini index 54073f0b88..2f3e14a24e 100644

[PATCH v5 11/12] net/ice: implement power management

2022-04-20 Thread Kevin Liu
Implement support for the power management API by implementing a 'get_monitor_addr' function that will return an address of an RX ring's status bit. Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/i

[PATCH v5 10/12] net/ice: support queue information getting

2022-04-20 Thread Kevin Liu
Add below ops, rxq_info_get txq_info_get Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index 6503700e02..9217392d04 100644 --- a/drivers/net/ice

[PATCH v5 09/12] net/ice: add extended stats

2022-04-20 Thread Kevin Liu
Add implementation of xstats() functions in DCF PMD. Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.h| 22 ++ drivers/net/ice/ice_dcf_ethdev.c | 75 2 files changed, 97 insertions(+) diff --git a/drivers/net/ice/ice_dcf.h b/drivers/net/ice

[PATCH v5 08/12] net/ice: support dcf VLAN filter and offload configuration

2022-04-20 Thread Kevin Liu
From: Alvin Zhang Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 101 +++ 1 file

[PATCH v5 07/12] net/ice: support dcf MAC configuration

2022-04-20 Thread Kevin Liu
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list = dcf_set_mc_addr_list .mac_addr_set = dcf_dev_set_default_mac_addr Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu

[PATCH v5 06/12] net/ice: support dcf promisc configuration

2022-04-20 Thread Kevin Liu
From: Alvin Zhang Support configuration of unicast and multicast promisc on dcf. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 77 ++-- drivers/net/ice/ice_dcf_ethdev.h | 3 ++ 2 files changed, 76 insertions(+), 4

[PATCH v5 05/12] net/ice: add ops dev-supported-ptypes-get to dcf

2022-04-20 Thread Kevin Liu
From: Jie Wang add API "dev_supported_ptypes_get" to dcf, that dcf pmd can get ptypes through the new API. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 80 +++- 1 file changed, 49 insertions(+), 31 deletion

[PATCH v5 04/12] net/ice: add ops MTU-SET to dcf

2022-04-20 Thread Kevin Liu
From: Jie Wang add API "mtu_set" to dcf, and it can configure the port mtu through cmdline. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 14 ++ drivers/net/ice/ice_dcf_ethdev.h | 6 ++ 2 files changed, 20 insertions(+) di

[PATCH v5 03/12] net/ice: cleanup Tx buffers

2022-04-20 Thread Kevin Liu
From: Robin Zhang Add support for ops rte_eth_tx_done_cleanup in dcf Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index

[PATCH v5 02/12] net/ice: enable RSS HASH ops for DCF hardware

2022-04-20 Thread Kevin Liu
d-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c| 2 +- drivers/net/ice/ice_dcf.h| 1 + drivers/net/ice/ice_dcf_ethdev.c | 51 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_dcf.c b/drivers

[PATCH v5 00/12] complete common VF features for DCF

2022-04-20 Thread Kevin Liu
: disable ACL function for MDCF instance Alvin Zhang (2): net/ice: support dcf promisc configuration net/ice: support dcf VLAN filter and offload configuration Jie Wang (2): net/ice: add ops MTU-SET to dcf net/ice: add ops dev-supported-ptypes-get to dcf Kevin Liu (5): net/ice: support dcf

[PATCH v5 01/12] net/ice: enable RSS RETA ops for DCF hardware

2022-04-20 Thread Kevin Liu
From: Steve Yang RSS RETA should be updated and queried by application, Add related ops ('.reta_update', '.reta_query') for DCF. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c| 2 +- drivers/net/ice/ice_dcf.h|

[PATCH v4 2/2] net/ice: fix DCF reset

2022-04-19 Thread Kevin Liu
("net/ice: support DCF device reset") Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_common.c | 4 +++- drivers/net/ice/ice_dcf.c | 2 +- drivers/net/ice/ice_dcf_ethdev.c | 17 - drivers/net/ice/ice_dcf_parent.c | 3 ++

[PATCH v4 1/2] net/ice: fix DCF ACL flow engine

2022-04-19 Thread Kevin Liu
engine. Fixes: 40d466fa9f76 ("net/ice: support ACL filter in DCF") Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_acl_filter.c | 20 ++ drivers/net/ice/ice_generic_flow.c | 34 +++--- 2 files changed, 42 inserti

[PATCH v4 0/2] fix DCF function defect

2022-04-19 Thread Kevin Liu
ACL flow engine Kevin Liu (1): net/ice: fix DCF reset drivers/net/ice/base/ice_common.c | 4 +++- drivers/net/ice/ice_acl_filter.c | 20 ++ drivers/net/ice/ice_dcf.c | 2 +- drivers/net/ice/ice_dcf_ethdev.c | 17 ++- drivers/net/ice/ice_dcf_parent.c

[PATCH v4 23/23] doc: update for ice DCF datapath configuration

2022-04-19 Thread Kevin Liu
Update "ice_dcf" driver feature list. Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 15 +++ 1 file changed, 15 insertions(+) diff --git a/doc/guides/nics/features/ice_dcf.ini b/doc/guides/nics/features/ice_dcf.ini index 54073f0b88..2f3e14a24e 100644

[PATCH v4 22/23] net/ice: implement power management

2022-04-19 Thread Kevin Liu
Implement support for the power management API by implementing a 'get_monitor_addr' function that will return an address of an RX ring's status bit. Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/i

[PATCH v4 21/23] net/ice: support queue information getting

2022-04-19 Thread Kevin Liu
Add below ops, rxq_info_get txq_info_get Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index a4f0ec36a1..02d9bd0fa7 100644 --- a/drivers/net/ice

[PATCH v4 20/23] net/ice: add extended stats

2022-04-19 Thread Kevin Liu
Add implementation of xstats() functions in DCF PMD. Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.h| 23 +- drivers/net/ice/ice_dcf_ethdev.c | 75 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_dcf.h b

[PATCH v4 19/23] net/ice: add enable/disable queues for DCF large VF

2022-04-19 Thread Kevin Liu
The current virtchnl structure for enable/disable queues only supports max 32 queue pairs. Use a new opcode and structure to indicate up to 256 queue pairs, in order to enable/disable queues in large VF case. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c

[PATCH v4 18/23] net/ice: enable IRQ mapping configuration for large VF

2022-04-19 Thread Kevin Liu
to send the virtchnl message multiple times if needed. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c| 50 +++ drivers/net/ice/ice_dcf.h| 10 ++- drivers/net/ice/ice_dcf_ethdev.c | 51

[PATCH v4 17/23] net/ice: enable multiple queues configurations for large VF

2022-04-19 Thread Kevin Liu
time. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c| 11 ++- drivers/net/ice/ice_dcf.h| 3 ++- drivers/net/ice/ice_dcf_ethdev.c | 20 ++-- drivers/net/ice/ice_dcf_ethdev.h | 1 + 4 files changed, 27 insertions(+), 8

[PATCH v4 16/23] net/ice: negotiate large VF and request more queues

2022-04-19 Thread Kevin Liu
max RSS queue region cannot be 16 anymore. Add the function to query max RSS queue region from PF, use it in the RSS initialization and future filters configuration. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c| 34 +++- drivers/net/ice

[PATCH v4 15/23] net/ice: add DCF request queues function

2022-04-19 Thread Kevin Liu
From: Steve Yang Add a new virtchnl function to request additional queues from PF. Current default queue pairs number is 16. In order to support up to 256 queue pairs DCF port, enable this request queues function. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice

[PATCH v4 14/23] net/ice: handle virtchnl event message without interrupt

2022-04-19 Thread Kevin Liu
the event message and handle it with interrupt disabled. To solve this issue, we add the virtchnl event message handling in the process of reading vitchnl messages in adminq from PF. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c | 25

[PATCH v4 13/23] net/ice: treat unknown package as OS default package

2022-04-19 Thread Kevin Liu
From: Alvin Zhang In order to use custom package, unknown package should be treated as OS default package. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_ethdev.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice

[PATCH v4 12/23] net/ice: support new pattern of IPv4

2022-04-19 Thread Kevin Liu
From: Alvin Zhang Add definition and pattern entry for IPv4 pattern: MAC/VLAN/IPv4 Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_switch_filter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ice

[PATCH v4 11/23] net/ice: support IPv6 NVGRE tunnel

2022-04-19 Thread Kevin Liu
From: Alvin Zhang Add protocol definition and pattern matching for IPv6 NVGRE tunnel. Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_switch_filter.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ice

[PATCH v4 10/23] net/ice: enable CVL DCF device reset API

2022-04-19 Thread Kevin Liu
From: Dapeng Yu Enable CVL DCF device reset API. Signed-off-by: Dapeng Yu Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c | 24 drivers/net/ice/ice_dcf.h | 1 + 2 files changed, 25 insertions(+) diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice

[PATCH v4 09/23] net/ice: support DCF new VLAN capabilities

2022-04-19 Thread Kevin Liu
negotiation; and DCF is able to configure outer VLAN (0x8100) if port VLAN is disabled to be compatible with legacy mode. When port VLAN is updated by DCF, the DCF needs to reset to query the new VLAN capabilities. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c

[PATCH v4 08/23] net/ice: support dcf VLAN filter and offload configuration

2022-04-19 Thread Kevin Liu
From: Alvin Zhang Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 101 +++ 1 file

[PATCH v4 07/23] net/ice: support dcf MAC configuration

2022-04-19 Thread Kevin Liu
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list = dcf_set_mc_addr_list .mac_addr_set = dcf_dev_set_default_mac_addr Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu

  1   2   3   >