[dpdk-dev] [PATCH 0/2] add symmetric toeplitz hash support

2019-07-24 Thread simei
From: Simei Su [PATCH 1/2] ethdev: add new hash function "Symmetric Toeplitz" supported by hardware. [PATCH 2/2] app/testpmd: add command line support for symmetric toeplitz hash configuration. Simei Su (2): ethdev: add symmetric toeplitz hash support app/testpmd: add symmetri

[dpdk-dev] [PATCH 1/2] ethdev: add symmetric toeplitz hash support

2019-07-24 Thread simei
From: Simei Su Currently, there are DEFAULT,TOEPLITZ and SIMPLE_XOR hash funtion. To support symmetric hash by rte_flow RSS action, this patch adds new hash function "Symmetric Toeplitz" which is supported by some hardware. Signed-off-by: Simei Su --- lib/librte_ethdev/rte_flow.

[dpdk-dev] [PATCH 2/2] app/testpmd: add symmetric toeplitz hash support

2019-07-24 Thread simei
From: Simei Su This patch adds command line support for Symmetric Toeplitz hash configuration. Signed-off-by: Simei Su --- app/test-pmd/cmdline.c | 12 +--- app/test-pmd/cmdline_flow.c | 12 +++- doc/guides/testpmd_app_ug/testpmd_funcs.rst

[dpdk-dev] [RFC] ethdev: extend RSS offload types

2019-07-25 Thread simei
From: Simei Su This RFC reserves several bits as input set selection from bottom of the 64 bits. The flow type is combined with input set to represent rss types. for example: ETH_RSS_IPV4 | ETH_RSS_L3_SRC_ONLY: hash on src ip address only ETH_RSS_IPV4_UDP | ETH_RSS_L4_DST_ONLY: hash on

[dpdk-dev] [RFC,v2] ethdev: extend RSS offload types

2019-07-25 Thread simei
From: Simei Su This RFC reserves several bits as input set selection from bottom of the 64 bits. The flow type is combined with input set to represent rss types. Correct the input set mask to align with the definition in rte_ethdev.h. for example: ETH_RSS_IPV4 | ETH_RSS_INSET_L3_SRC: hash

[dpdk-dev] [PATCH v2 1/2] ethdev: add symmetric toeplitz hash support

2019-07-25 Thread simei
From: Simei Su Currently, there are DEFAULT,TOEPLITZ and SIMPLE_XOR hash function. To support symmetric hash by rte_flow RSS action, this patch adds new hash function "Symmetric Toeplitz" which is supported by some hardware. Signed-off-by: Simei Su --- lib/librte_ethdev/rte_flow.

[dpdk-dev] [PATCH v2 0/2] add symmetric toeplitz hash support

2019-07-25 Thread simei
From: Simei Su This v2 patch rebase to 19.08-rc2. [PATCH v2 1/2] ethdev: add new hash function "Symmetric Toeplitz" supported by hardware. [PATCH v2 2/2] app/testpmd: add command line support for symmetric toeplitz hash configuration. Simei Su (2): ethdev: add symmetric toe

[dpdk-dev] [PATCH v2 2/2] app/testpmd: add symmetric toeplitz hash support

2019-07-25 Thread simei
From: Simei Su This patch adds command line support for Symmetric Toeplitz hash configuration. Signed-off-by: Simei Su --- app/test-pmd/cmdline.c | 12 +--- app/test-pmd/cmdline_flow.c | 12 +++- doc/guides/testpmd_app_ug/testpmd_funcs.rst

[dpdk-dev] [RFC,v3] ethdev: extend RSS offload types

2019-07-28 Thread simei
From: Simei Su Make it easier to represent to define macro values as (1ULL << ###). This RFC reserves several bits as input set selection from bottom of the 64 bits. The flow type is combined with input set to represent rss types. for example: ETH_RSS_IPV4 | ETH_RSS_INSET_L3_SRC: h

[dpdk-dev] [RFC,v4] ethdev: extend RSS offload types

2019-07-31 Thread simei
From: Simei Su This RFC cover two aspects: (1)decouple RTE_ETH_FLOW_* and ETH_RSS_*. Because both serve different purposes. (2)reserve several bits as input set selection from bottom of the 64 bits.It is combined with exisiting ETH_RSS_* to represent rss types. for

[dpdk-dev] [PATCH 0/2] extend RSS offload types

2019-08-08 Thread simei
From: Simei Su [PATCH 1/2] ethdev: add several bits for extending rss offload types. [PATCH 2/2] app/testpmd: add cmdline support for extending rss types. Simei Su (2): ethdev: extend RSS offload types app/testpmd: add RSS offload types extending support app/test-pmd/config.c

[dpdk-dev] [PATCH 2/2] app/testpmd: add RSS offload types extending support

2019-08-08 Thread simei
From: Simei Su This patch adds cmdline support for extended rss types configuration. Signed-off-by: Simei Su --- app/test-pmd/config.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 1a5a5c1..b95bd43 100644 --- a/app/test-pmd

[dpdk-dev] [PATCH 1/2] ethdev: extend RSS offload types

2019-08-08 Thread simei
From: Simei Su This patch cover two aspects: (1)decouple RTE_ETH_FLOW_* and ETH_RSS_*. Because both serve different purposes. (2)reserve several bits as input set selection from bottom of the 64 bits. It is combined with exisitingi ETH_RSS_* to represent rss types

[dpdk-dev] [PATCH] doc: announce ABI change for RSS hash funtion

2019-07-03 Thread simei
From: Simei Su Add new field SYMMETRIC_TOEPLITZ in rte_eth_hash_function. This can support symmetric hash function by rte_flow RSS action. Signed-off-by: Simei Su --- doc/guides/rel_notes/deprecation.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [RFC] ethdev: support symmetric hash function

2019-07-03 Thread simei
From: Simei Su Currently, there are DEFAULT,TOEPLITZ and SIMPLE_XOR hash funtion. To support symmetric hash by rte_flow RSS action, this RFC introduces SYMMETRIC_TOEPLITZ to rte_eth_hash_function. Signed-off-by: Simei Su --- lib/librte_ethdev/rte_flow.h | 1 + 1 file changed, 1 insertion

[dpdk-dev] [PATCH] doc: announce ABI change for rte flow RSS action

2019-07-03 Thread simei
From: Simei Su Add new structure inputset in rte_flow_action_rss. This can support input set configuration by rte_flow RSS action. Signed-off-by: Simei Su --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b

[dpdk-dev] [RFC] ethdev: support input set change by RSS action

2019-07-03 Thread simei
From: Simei Su This RFC introduces inputset structure to rte_flow_action_rss to support input set specific configuration by rte_flow RSS action. We can give an testpmd command line example to make it more clear. For example, below flow selects the l4 port as inputset for any eth/ipv4/tcp

[dpdk-dev] [DPDK] net/ice: fix Rx statistics

2019-04-24 Thread simei
The RX stats will increase even no packets sent, this patch fix this issue by modifying ipackets and ibytes statistics based on vsi instead of port to avoid statistics error. Fixes: a37bde56314d ("net/ice: support statistics") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- drive

[PATCH] net/idpf: fix incorrect status calculation

2023-10-16 Thread Simei Su
Fix the incorrect ingress and egress packet number calculation. Fixes: 7514d76d407b ("net/idpf: add basic statistics") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- drivers/net/idpf/idpf_ethdev.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH] net/cpfl: fix incorrect status calculation

2023-10-16 Thread Simei Su
Fix the incorrect ingress and egress packet number calculation. Fixes: e3289d8fb63f ("net/cpfl: support basic statistics") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- drivers/net/cpfl/cpfl_ethdev.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH] net/i40e: rework maximum frame size configuration

2023-01-16 Thread Simei Su
sta...@dpdk.org Signed-off-by: Simei Su --- drivers/net/i40e/i40e_ethdev.c | 47 +- 1 file changed, 10 insertions(+), 37 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 7726a89d..e21e4d9 100644 --- a/driver

RE: [PATCH v2] net/i40e: don't check link status on device start

2023-01-16 Thread Su, Simei
> > > Does it break all the application or just a specific application? > > > > > > I don't see how it would not affect all applications seeing how the > > > original patch is dumb. > > > > > > > We may need to understand the i

RE: [PATCH] net/i40e: rework maximum frame size configuration

2023-01-16 Thread Su, Simei
Hi David, > -Original Message- > From: David Marchand > Sent: Monday, January 16, 2023 7:19 PM > To: Su, Simei > Cc: Xing, Beilei ; Zhang, Yuying > ; dev@dpdk.org; Zhang, Qi Z > ; Yang, Qiming ; > sta...@dpdk.org; Zhang, Helin > Subject: Re: [PATCH] net/i40e

RE: [PATCH v3 3/7] net/e1000: fix whitespace

2023-01-16 Thread Su, Simei
> -Original Message- > From: Stephen Hemminger > Sent: Tuesday, January 17, 2023 8:15 AM > To: dev@dpdk.org > Cc: Stephen Hemminger ; Su, Simei > ; Wu, Wenjun1 ; Burakov, > Anatoly > Subject: [PATCH v3 3/7] net/e1000: fix whitespace > > The style

RE: [PATCH 1/3] net/igc: code refactoring

2023-01-16 Thread Su, Simei
Hi Qi, > -Original Message- > From: Zhang, Qi Z > Sent: Tuesday, January 17, 2023 10:25 AM > To: Su, Simei ; Guo, Junfeng > Cc: dev@dpdk.org; Wu, Wenjun1 > Subject: RE: [PATCH 1/3] net/igc: code refactoring > > > > > -Original Message- >

[PATCH v2 0/3] net/igc: support PTP timesync

2023-01-17 Thread Simei Su
[PATCH v2 1/3] code refactoring. [PATCH v2 2/3] add related definitions for ptp timesync. [PATCH v2 3/3] add IEEE1588 API to support timesync. v2: * Refine commit log. * Update the doc/guides/nics/features/igc.ini to add "Timesync" feature. * Add release notes. Simei Su (3): net

[PATCH v2 1/3] net/igc: code refactoring

2023-01-17 Thread Simei Su
This patch moves some structures from rxtx.c to rxtx.h for the timesync enabling feature. For example, variables in "igc_rx_queue" structure can be used by variables both in igc_ethdev.c and igc_txrx.c more conveniently. It is also consistent with other PMD coding styles. Signed-off-by

[PATCH v2 2/3] net/igc/base: support PTP timesync

2023-01-17 Thread Simei Su
Add definitions for timesync enabling. Signed-off-by: Simei Su --- drivers/net/igc/base/igc_defines.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/igc/base/igc_defines.h b/drivers/net/igc/base/igc_defines.h index 61964bc..dd7330a 100644 --- a/drivers/net/igc

[PATCH v2 3/3] net/igc: support IEEE 1588 PTP

2023-01-17 Thread Simei Su
Add igc support for new ethdev APIs to enable/disable and read/write/adjust IEEE1588 PTP timestamps. The example command for running ptpclient is as below: ./build/examples/dpdk-ptpclient -c 1 -n 3 -- -T 0 -p 0x1 Signed-off-by: Simei Su --- doc/guides/nics/features/igc.ini | 1 + doc

RE: [PATCH] net/i40e: rework maximum frame size configuration

2023-01-20 Thread Su, Simei
Hi David, > -Original Message- > From: David Marchand > Sent: Friday, January 20, 2023 3:34 PM > To: Su, Simei > Cc: Xing, Beilei ; Zhang, Yuying > ; dev@dpdk.org; Zhang, Qi Z > ; Yang, Qiming ; > sta...@dpdk.org; Zhang, Helin > Subject: Re: [PATCH] net/i40e

RE: [PATCH] net/i40e: rework maximum frame size configuration

2023-01-20 Thread Su, Simei
> -Original Message- > From: David Marchand > Sent: Friday, January 20, 2023 10:47 PM > To: Su, Simei > Cc: Xing, Beilei ; Zhang, Yuying > ; dev@dpdk.org; Zhang, Qi Z > ; Yang, Qiming ; > sta...@dpdk.org; Zhang, Helin ; Mcnamara, John > > Subject: Re: [P

[PATCH v2] net/i40e: rework maximum frame size configuration

2023-01-30 Thread Simei Su
me Rx with X722") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- v2: * Refine commit log. * Add link update. drivers/net/i40e/i40e_ethdev.c | 54 +++--- 1 file changed, 14 insertions(+), 40 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/driver

[PATCH v3] net/i40e: rework maximum frame size configuration

2023-01-31 Thread Simei Su
me Rx with X722") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- v3: * Put link update before interrupt enable. v2: * Refine commit log. * Add link update. drivers/net/i40e/i40e_ethdev.c | 58 +++--- 1 file changed, 15 insertions(+), 43 deletions(-)

[PATCH v2 0/2] net/igc: support launch time offloading

2023-01-31 Thread Simei Su
[PATCH v2 1/2] expose packet pacing registers [PATCH v2 2/2] enable launch time offloading v2: * Refine title and commit log. * Add release notes. * Rename variable name. Simei Su (2): net/igc/base: expose packet pacing registers net/igc: enable launch time offloading doc/guides/rel_notes

[PATCH v2 1/2] net/igc/base: expose packet pacing registers

2023-01-31 Thread Simei Su
Add definitions for packet pacing(launch time offloading) related registers. Signed-off-by: Simei Su --- drivers/net/igc/base/igc_defines.h | 9 + drivers/net/igc/base/igc_regs.h| 8 2 files changed, 17 insertions(+) diff --git a/drivers/net/igc/base/igc_defines.h b

[PATCH v2 2/2] net/igc: enable launch time offloading

2023-01-31 Thread Simei Su
leveraging offload flag "RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP". We should set the expected launchtime to the advanced transmit descriptor. Signed-off-by: Simei Su --- doc/guides/rel_notes/release_23_03.rst | 2 +- drivers/net/igc/igc_ethdev.c | 70 ++ d

[PATCH v3 0/2] net/igc: support launch time offloading

2023-02-01 Thread Simei Su
[PATCH v3 1/2] expose packet pacing registers [PATCH v3 2/2] enable launch time offloading v3: * Fix coding style issue. v2: * Refine title and commit log. * Add release notes. * Rename variable name. Simei Su (2): net/igc/base: expose packet pacing registers net/igc: enable launch time

[PATCH v3 1/2] net/igc/base: expose packet pacing registers

2023-02-01 Thread Simei Su
Add definitions for packet pacing(launch time offloading) related registers. Signed-off-by: Simei Su --- drivers/net/igc/base/igc_defines.h | 9 + drivers/net/igc/base/igc_regs.h| 8 2 files changed, 17 insertions(+) diff --git a/drivers/net/igc/base/igc_defines.h b

[PATCH v3 2/2] net/igc: enable launch time offloading

2023-02-01 Thread Simei Su
leveraging offload flag "RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP". We should set the expected launchtime to the advanced transmit descriptor. Signed-off-by: Simei Su --- doc/guides/rel_notes/release_23_03.rst | 2 +- drivers/net/igc/igc_ethdev.c | 70 ++ d

[PATCH v4] net/i40e: rework maximum frame size configuration

2023-02-02 Thread Simei Su
e maximum frame size at port level") Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port level") Fixes: 719469f13b11 ("net/i40e: fix jumbo frame Rx with X722") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- v4: * Refine commit log. * Avoid duplicate call

[PATCH v5] net/i40e: rework maximum frame size configuration

2023-02-02 Thread Simei Su
e maximum frame size at port level") Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port level") Fixes: 719469f13b11 ("net/i40e: fix jumbo frame Rx with X722") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- v5: * Fix misspelling in commit log. v4: * Refine c

RE: [PATCH v3 2/2] net/igc: enable launch time offloading

2023-02-02 Thread Su, Simei
Hi Stephen, > -Original Message- > From: Stephen Hemminger > Sent: Friday, February 3, 2023 8:31 AM > To: Su, Simei > Cc: Zhang, Qi Z ; Guo, Junfeng > ; dev@dpdk.org; Wu, Wenjun1 > > Subject: Re: [PATCH v3 2/2] net/igc: enable launch time offloading > >

RE: [PATCH v5] net/i40e: rework maximum frame size configuration

2023-02-02 Thread Su, Simei
Hi David, > -Original Message- > From: David Marchand > Sent: Thursday, February 2, 2023 8:56 PM > To: Su, Simei ; Zhang, Qi Z > Cc: Xing, Beilei ; Zhang, Yuying > ; dev@dpdk.org; Yang, Qiming > ; sta...@dpdk.org > Subject: Re: [PATCH v5] net/i40e: r

RE: [PATCH v5] net/i40e: rework maximum frame size configuration

2023-02-02 Thread Su, Simei
Hi David, > -Original Message- > From: David Marchand > Sent: Thursday, February 2, 2023 9:24 PM > To: Su, Simei > Cc: Xing, Beilei ; Zhang, Yuying > ; dev@dpdk.org; Zhang, Qi Z > ; Yang, Qiming ; > sta...@dpdk.org > Subject: Re: [PATCH v5] net/i40e

[PATCH v2] common/idpf: refactor single queue Tx function

2023-09-04 Thread Simei Su
This patch replaces flex Tx descriptor with base Tx descriptor to align with kernel driver practice. Signed-off-by: Simei Su --- v2: * Refine commit title and commit log. * Remove redundant definition. * Modify base mode context TSO descriptor. drivers/common/idpf/idpf_common_rxtx.c

[PATCH v3] common/idpf: refactor single queue Tx function

2023-09-08 Thread Simei Su
This patch replaces flex Tx descriptor with base Tx descriptor to align with kernel driver practice. Signed-off-by: Simei Su --- v3: * Change context TSO descriptor from base mode to flex mode. v2: * Refine commit title and commit log. * Remove redundant definition. * Modify base mode context

[PATCH v4 0/3] refactor single queue Tx data path

2023-09-13 Thread Simei Su
commit title and commit log. * Remove redundant definition. * Modify base mode context TSO descriptor. Simei Su (3): common/idpf: refactor single queue Tx data path net/idpf: refine Tx queue setup net/cpfl: refine Tx queue setup drivers/common/idpf/idpf_common_rxtx.c| 39

[PATCH v4 2/3] net/idpf: refine Tx queue setup

2023-09-13 Thread Simei Su
This patch refines Tx single queue setup to align with Tx data path. Signed-off-by: Simei Su Acked-by: Wenjun Wu --- drivers/net/idpf/idpf_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/idpf/idpf_rxtx.c b/drivers/net/idpf/idpf_rxtx.c index 3e3d81ca6d

[PATCH v4 1/3] common/idpf: refactor single queue Tx data path

2023-09-13 Thread Simei Su
Currently, single queue Tx data path uses flex Tx data descriptor which is changed in the latest idpf spec. This patch replaces flex Tx data descriptor with base Tx data descriptor for single queue Tx data path. Signed-off-by: Simei Su Acked-by: Wenjun Wu --- drivers/common/idpf

[PATCH v4 3/3] net/cpfl: refine Tx queue setup

2023-09-13 Thread Simei Su
This patch refines Tx single queue setup to align with Tx data path. Signed-off-by: Simei Su Acked-by: Wenjun Wu --- drivers/net/cpfl/cpfl_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c index 2ef6871a85

[PATCH v5] common/idpf: refactor single queue Tx data path

2023-09-13 Thread Simei Su
: Simei Su Acked-by: Wenjun Wu Acked-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.c| 39 +-- drivers/common/idpf/idpf_common_rxtx.h| 2 +- drivers/common/idpf/idpf_common_rxtx_avx512.c | 37 +- drivers/net/cpfl/cpfl_rxtx.c

[PATCH v3 00/17] update idpf base code

2023-09-14 Thread Simei Su
This patch set updates idpf base code. v3: * Fix coding style issue. * Modify unexpected error in the update version patch. v2: * Add two patches for share code update. * Add version update. * Fix coding style issue. Simei Su (17): common/idpf/base: enable support for physical port stats

[PATCH v3 01/17] common/idpf/base: enable support for physical port stats

2023-09-14 Thread Simei Su
Add support to indicate physical port representor and query its statistics. Signed-off-by: Zhenning Xiao Signed-off-by: Jayaprakash Shanmugam Signed-off-by: Simei Su --- .mailmap | 2 + drivers/common/idpf/base/virtchnl2.h | 80 +++- 2

[PATCH v3 03/17] common/idpf/base: initial PTP support

2023-09-14 Thread Simei Su
. Signed-off-by: Milena Olech Signed-off-by: Simei Su --- drivers/common/idpf/base/virtchnl2.h | 145 +++ 1 file changed, 145 insertions(+) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base/virtchnl2.h index c49e4b943c..320430df6f 100644 --- a/drivers

[PATCH v3 02/17] common/idpf/base: add miss completion capabilities

2023-09-14 Thread Simei Su
Add miss completion tag to other capabilities list, to indicate support for detecting a miss completion based on the upper bit of the completion tag. Signed-off-by: Josh Hay Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/virtchnl2.h | 4 2

[PATCH v3 04/17] common/idpf/base: remove mailbox registers

2023-09-14 Thread Simei Su
Chittim Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/siov_regs.h | 13 ++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.mailmap b/.mailmap index 91d8cca78f..d8782cd67e 100644 --- a/.mailmap +++ b/.mailmap

[PATCH v3 05/17] common/idpf/base: add some adi specific fields

2023-09-14 Thread Simei Su
a) Add maximum ADI count in capabilities message b) Add PF side ADI index to create_adi message c) Define another constant to indicate 'Function active' state of ADI Signed-off-by: Shailendra Bhatnagar Signed-off-by: Simei Su --- .mailmap | 1 + drivers/c

[PATCH v3 06/17] common/idpf/base: add necessary check

2023-09-14 Thread Simei Su
Add necessary check for payload and message buffer. Signed-off-by: Julianx Grajkowski Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/idpf_common.c | 6 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap

[PATCH v3 07/17] common/idpf/base: add union for SW cookie fields in ctlq msg

2023-09-14 Thread Simei Su
Instead of using something like a byte offset, we can add a union to the struct here to enable direct addressing. Signed-off-by: Alan Brady Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/idpf_controlq_api.h | 5 + 2 files changed, 6

[PATCH v3 08/17] common/idpf/base: define non-flexible size structure for ADI

2023-09-14 Thread Simei Su
) Define virtchnl2_non_flex_vector_chunks with a single chunk in it. c) Rename and modify virtchnl2_create_adi to use the above 2 new structs. New structure is virtchnl2_non_flex_create_adi. Signed-off-by: Shailendra Bhatnagar Signed-off-by: Simei Su --- drivers/common/idpf/base/virtchnl2.h | 66

[PATCH v3 09/17] common/idpf/base: use local pointer before updating 'CQ out'

2023-09-14 Thread Simei Su
Instead of updating directly to 'cq_out' double pointer, use a local pointer and update only when we return success. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_controlq.c | 43 +--- 1 file changed, 23 inserti

[PATCH v3 10/17] common/idpf/base: use 'void' return type

2023-09-14 Thread Simei Su
Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_common.c | 4 ++-- drivers/common/idpf/base/idpf_controlq.c | 7 ++- drivers/common/idpf/base/idpf_controlq_api.h | 2 +- drivers/common/idpf/base/idpf_prototype.h| 2 +- 4 files changed

[PATCH v3 11/17] common/idpf/base: refactor descriptor 'ret val' stripping

2023-09-14 Thread Simei Su
Conditional check is not necessary to strip and get status bits from the descriptor. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_controlq.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/common/idpf/base

[PATCH v3 12/17] common/idpf/base: refine comments and alignment

2023-09-14 Thread Simei Su
Refine the macros and definitions by using 'tab' spaces and new lines wherever necessary. Also refine the comment in 'idpf_ctlq_setup_regs' and remove the TODO comment in idpf_rss_hash enum as it doesn't make any sense. Signed-off-by: Pavan Kumar Linga Signed-off-b

[PATCH v3 13/17] common/idpf/base: use GENMASK macro

2023-09-14 Thread Simei Su
Instead of using a custom defined macro for generating a mask, use the standard GENMASK macro. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_lan_pf_regs.h | 26 ++--- drivers/common/idpf/base/idpf_lan_txrx.h| 116 +--- drivers

[PATCH v3 14/17] common/idpf/base: use 'type functionname(args)' style

2023-09-14 Thread Simei Su
Instead of splitting the function name and function type into multiple lines, use then in a single line. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_controlq.c | 5 ++--- drivers/common/idpf/base/idpf_controlq_setup.c | 5 ++--- 2 files

[PATCH v3 15/17] common/idpf/base: don't declare union with 'flex'

2023-09-14 Thread Simei Su
In idpf_flex_tx_desc structure, instead of naming the union with 'flex', use no name union as the union name is not really necessary there. This reduces the level of indirection in the hotpath. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common

[PATCH v3 17/17] common/idpf/base: update version

2023-09-14 Thread Simei Su
Update README Signed-off-by: Simei Su --- drivers/common/idpf/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/README b/drivers/common/idpf/base/README index 693049c057..ff26f736ec 100644 --- a/drivers/common/idpf/base/README +++ b/drivers

[PATCH v3 16/17] common/idpf/base: remove unused Tx descriptor types

2023-09-14 Thread Simei Su
Remove the unused TX descriptor types and mark them as reserved. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_lan_txrx.h | 132 ++- 1 file changed, 10 insertions(+), 122 deletions(-) diff --git a/drivers/common/idpf/base

[PATCH v4 00/18] update idpf base code

2023-09-17 Thread Simei Su
update. * Fix coding style issue. Simei Su (18): common/idpf: refactor single queue Tx data path common/idpf/base: enable support for physical port stats common/idpf/base: add miss completion capabilities common/idpf/base: initial PTP support common/idpf/base: remove mailbox registers

[PATCH v4 01/18] common/idpf: refactor single queue Tx data path

2023-09-17 Thread Simei Su
: Simei Su Acked-by: Wenjun Wu Acked-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.c| 39 +-- drivers/common/idpf/idpf_common_rxtx.h| 2 +- drivers/common/idpf/idpf_common_rxtx_avx512.c | 37 +- drivers/net/cpfl/cpfl_rxtx.c

[PATCH v4 02/18] common/idpf/base: enable support for physical port stats

2023-09-17 Thread Simei Su
Add support to indicate physical port representor and query its statistics. Signed-off-by: Zhenning Xiao Signed-off-by: Jayaprakash Shanmugam Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 2 + drivers/common/idpf/base/virtchnl2.h | 80

[PATCH v4 03/18] common/idpf/base: add miss completion capabilities

2023-09-17 Thread Simei Su
Add miss completion tag to other capabilities list, to indicate support for detecting a miss completion based on the upper bit of the completion tag. Signed-off-by: Josh Hay Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 1 + drivers/common/idpf/base

[PATCH v4 05/18] common/idpf/base: remove mailbox registers

2023-09-17 Thread Simei Su
Chittim Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 1 + drivers/common/idpf/base/siov_regs.h | 13 ++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.mailmap b/.mailmap index 91d8cca78f..d8782cd67e 100644 --- a/.mailmap

[PATCH v4 04/18] common/idpf/base: initial PTP support

2023-09-17 Thread Simei Su
. Signed-off-by: Milena Olech Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/virtchnl2.h | 145 +++ 1 file changed, 145 insertions(+) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base/virtchnl2.h index c49e4b943c

[PATCH v4 06/18] common/idpf/base: add some adi specific fields

2023-09-17 Thread Simei Su
a) Add maximum ADI count in capabilities message b) Add PF side ADI index to create_adi message c) Define another constant to indicate 'Function active' state of ADI Signed-off-by: Shailendra Bhatnagar Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap

[PATCH v4 07/18] common/idpf/base: add necessary check

2023-09-17 Thread Simei Su
Add necessary check for payload and message buffer. Signed-off-by: Julianx Grajkowski Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 1 + drivers/common/idpf/base/idpf_common.c | 6 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH v4 08/18] common/idpf/base: add union for SW cookie fields in ctlq msg

2023-09-17 Thread Simei Su
Instead of using something like a byte offset, we can add a union to the struct here to enable direct addressing. Signed-off-by: Alan Brady Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 1 + drivers/common/idpf/base/idpf_controlq_api.h | 5

[PATCH v4 09/18] common/idpf/base: define non-flexible size structure for ADI

2023-09-17 Thread Simei Su
) Define virtchnl2_non_flex_vector_chunks with a single chunk in it. c) Rename and modify virtchnl2_create_adi to use the above 2 new structs. New structure is virtchnl2_non_flex_create_adi. Signed-off-by: Shailendra Bhatnagar Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base

[PATCH v4 10/18] common/idpf/base: use local pointer before updating 'CQ out'

2023-09-17 Thread Simei Su
Instead of updating directly to 'cq_out' double pointer, use a local pointer and update only when we return success. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_controlq.c | 43 +--- 1 file c

[PATCH v4 11/18] common/idpf/base: use 'void' return type

2023-09-17 Thread Simei Su
Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_common.c | 4 ++-- drivers/common/idpf/base/idpf_controlq.c | 7 ++- drivers/common/idpf/base/idpf_controlq_api.h | 2 +- drivers/common/idpf/base/idpf_prototype.h| 2

[PATCH v4 12/18] common/idpf/base: refactor descriptor 'ret val' stripping

2023-09-17 Thread Simei Su
Conditional check is not necessary to strip and get status bits from the descriptor. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_controlq.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH v4 13/18] common/idpf/base: refine comments and alignment

2023-09-17 Thread Simei Su
Refine the macros and definitions by using 'tab' spaces and new lines wherever necessary. Also refine the comment in 'idpf_ctlq_setup_regs' and remove the TODO comment in idpf_rss_hash enum as it doesn't make any sense. Signed-off-by: Pavan Kumar Linga Signed-off-by: S

[PATCH v4 14/18] common/idpf/base: use GENMASK macro

2023-09-17 Thread Simei Su
Instead of using a custom defined macro for generating a mask, use the standard GENMASK macro. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_lan_pf_regs.h | 26 ++--- drivers/common/idpf/base/idpf_lan_txrx.h| 116

[PATCH v4 16/18] common/idpf/base: don't declare union with 'flex'

2023-09-17 Thread Simei Su
In idpf_flex_tx_desc structure, instead of naming the union with 'flex', use no name union as the union name is not really necessary there. This reduces the level of indirection in the hotpath. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- driv

[PATCH v4 15/18] common/idpf/base: use 'type functionname(args)' style

2023-09-17 Thread Simei Su
Instead of splitting the function name and function type into multiple lines, use then in a single line. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_controlq.c | 5 ++--- drivers/common/idpf/base/idpf_controlq_setup.c

[PATCH v4 17/18] common/idpf/base: remove unused Tx descriptor types

2023-09-17 Thread Simei Su
Remove the unused TX descriptor types and mark them as reserved. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_lan_txrx.h | 132 ++- 1 file changed, 10 insertions(+), 122 deletions(-) diff --git a/drivers

[PATCH v4 18/18] common/idpf/base: update version

2023-09-17 Thread Simei Su
Update README Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/README b/drivers/common/idpf/base/README index 693049c057..ff26f736ec 100644 --- a/drivers/common/idpf

[PATCH v5 00/11] update idpf base code

2023-09-19 Thread Simei Su
update version patch. v2: * Add two patches for share code update. * Add version update. * Fix coding style issue. Simei Su (11): common/idpf: refactor single queue Tx data path common/idpf/base: enable support for physical port stats common/idpf/base: add miss completion capabilities

[PATCH v5 01/11] common/idpf: refactor single queue Tx data path

2023-09-19 Thread Simei Su
: Simei Su Acked-by: Wenjun Wu Acked-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.c| 39 +-- drivers/common/idpf/idpf_common_rxtx.h| 2 +- drivers/common/idpf/idpf_common_rxtx_avx512.c | 37 +- drivers/net/cpfl/cpfl_rxtx.c

[PATCH v5 02/11] common/idpf/base: enable support for physical port stats

2023-09-19 Thread Simei Su
Add support to indicate physical port representor and query its statistics. Signed-off-by: Zhenning Xiao Signed-off-by: Jayaprakash Shanmugam Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 2 + drivers/common/idpf/base/virtchnl2.h | 80

[PATCH v5 03/11] common/idpf/base: add miss completion capabilities

2023-09-19 Thread Simei Su
Add miss completion tag in other capability flags to indicate support for detecting a miss completion based on the upper bit of the completion tag. Signed-off-by: Josh Hay Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 1 + drivers/common/idpf/base

[PATCH v5 04/11] common/idpf/base: initialize PTP support

2023-09-19 Thread Simei Su
capabilities. Signed-off-by: Milena Olech Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/virtchnl2.h | 145 +++ 1 file changed, 145 insertions(+) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/idpf/base/virtchnl2.h index c49e4b943c

[PATCH v5 05/11] common/idpf/base: remove mailbox registers

2023-09-19 Thread Simei Su
Remove mailbox register offsets because individual drivers will define the offsets based on how registers address the registers. Signed-off-by: Madhu Chittim Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 1 + drivers/common/idpf/base/siov_regs.h

[PATCH v5 06/11] common/idpf/base: refine structure and necessary check

2023-09-19 Thread Simei Su
a) Refine queue chunk and vector chunk structures. b) Add non_flex prefix to distinguish the flex array definitions. c) Add some specific fields. d) Refine condition check. Signed-off-by: Shailendra Bhatnagar Signed-off-by: Julianx Grajkowski Signed-off-by: Simei Su Acked-by: Beilei Xing

[PATCH v5 07/11] common/idpf/base: add union for SW cookie fields

2023-09-19 Thread Simei Su
Instead of using something like a byte offset, we can add a union to the struct to enable direct addressing. Signed-off-by: Alan Brady Signed-off-by: Simei Su Acked-by: Beilei Xing --- .mailmap | 1 + drivers/common/idpf/base/idpf_controlq_api.h | 5

[PATCH v5 08/11] common/idpf/base: refine code and alignments

2023-09-19 Thread Simei Su
a) Refine double pointer with a local pointer. b) Refine return type for function instead of only returning success. c) Remove unnecessary check and comments. d) Use tab spaces and new lines wherever necessary. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing

[PATCH v5 09/11] common/idpf/base: use GENMASK macro

2023-09-19 Thread Simei Su
Instead of using a custom defined macro for generating a mask, use the standard GENMASK macro. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_lan_pf_regs.h | 26 ++--- drivers/common/idpf/base/idpf_lan_txrx.h| 116

[PATCH v5 11/11] common/idpf/base: update version

2023-09-19 Thread Simei Su
Update README Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/idpf/base/README b/drivers/common/idpf/base/README index 693049c057..ff26f736ec 100644 --- a/drivers/common/idpf

[PATCH v5 10/11] common/idpf/base: remove unused Tx descriptor types

2023-09-19 Thread Simei Su
Remove the unused TX descriptor types and mark them as reserved. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su Acked-by: Beilei Xing --- drivers/common/idpf/base/idpf_lan_txrx.h | 136 ++- 1 file changed, 12 insertions(+), 124 deletions(-) diff --git a/drivers

  1   2   3   4   5   >