[PATCH 2/2] net/hns3: use stdatomic API

2023-12-10 Thread Jie Hai
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API. Signed-off-by: Jie Hai --- drivers/net/hns3/hns3_cmd.c | 24 +++ drivers/net/hns3/hns3_dcb.c | 3 +- drivers/net/hns3/hns3_ethdev.c| 52 ++

[PATCH 1/2] eal: fix constraints on stdatomic API

2023-12-10 Thread Jie Hai
The first parameter of rte_atomic_exchange_explicit() must be a pointer to _Atomic type. If run command "meson setup --werror -Denable_stdatomic=true build && ninja -C build", error will occur. Thia patch fixes it. Fixes: 1ec6a845b5cb ("eal: use stdatomic API in public headers") Cc: sta...@dpdk.or

[PATCH 0/2] bugfix and replace on use of stdatomic API

2023-12-10 Thread Jie Hai
This patchset fixes bug on stdatomic API in lib and test, and replaces all __atomic_XX with rte_atomic_XXX of hns3 driver. Jie Hai (2): eal: fix constraints on stdatomic API net/hns3: use stdatomic API app/test/test_atomic.c | 6 +-- drivers/net/hns3/hns3_cmd.c | 24 +

Re: [PATCH v2 06/11] doc: add Traffic Manager feature for hns3

2023-12-10 Thread Jie Hai
On 2023/11/28 20:41, Huisong Li wrote: Hi, huisong, Acked-by: Jie Hai Add Traffic Manager feature for hns3. Cc: sta...@dpdk.org Signed-off-by: Huisong Li --- doc/guides/nics/features/hns3.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/hns3.ini b/doc/guid

[PATCH 2/2] net/nfp: fix invalid Rx descriptor data

2023-12-10 Thread Chaoyong He
From: Long Wu If the Rx loop is broken and PMD does not update the descriptor, packets will can not be received successfully. Fixes: 766d51c9ce29 ("net/nfp: merge receive function") Cc: chaoyong...@corigine.com Cc: sta...@dpdk.org Signed-off-by: Long Wu Reviewed-by: Chaoyong He Reviewed-by: P

[PATCH 1/2] net/nfp: fix receive function memory leak

2023-12-10 Thread Chaoyong He
From: Long Wu If the Rx ring is full and do not care its return value, this will cause memory leak. Fixes: 766d51c9ce29 ("net/nfp: merge receive function") Cc: chaoyong...@corigine.com Cc: sta...@dpdk.org Signed-off-by: Long Wu Reviewed-by: Chaoyong He Reviewed-by: Peng Zhang --- drivers/ne

[PATCH 0/2] fix problem in Rx

2023-12-10 Thread Chaoyong He
Fix two problems in the receive function. Long Wu (2): net/nfp: fix receive function memory leak net/nfp: fix invalid Rx descriptor data drivers/net/nfp/flower/nfp_flower.c | 4 +++- drivers/net/nfp/nfp_rxtx.c | 18 +- 2 files changed, 12 insertions(+), 10 deletions

[PATCH] net/ice: support FEC feature

2023-12-10 Thread Qiming Yang
This patch enable three FEC related ops in ice driver. As no speed information can get from HW, this patch only show FEC capability. Signed-off-by: Qiming Yang --- drivers/net/ice/ice_ethdev.c | 175 +++ 1 file changed, 175 insertions(+) diff --git a/drivers/net/

Re: [PATCH v2 00/11] add Traffic Manager feature

2023-12-10 Thread lihuisong (C)
kindly ping for review. 在 2023/11/28 20:40, Huisong Li 写道: The traffic management API has been introduced for a long time, please see commit 5d109deffa87 ("ethdev: add traffic management API"). And many PMD also support this feature. So this series add this feature to features.rst, default.ini a

[PATCH 7/7] net/nfp: support setting FEC mode

2023-12-10 Thread Chaoyong He
From: Zerun Fu Add support for configuring FEC mode. This feature allows to set any currently supported FEC mode. Signed-off-by: Zerun Fu Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers/net/nfp/nfp_ethdev.c | 1 + drivers/net/nfp/nfp_net_common.c | 5

[PATCH 6/7] net/nfp: support getting FEC mode

2023-12-10 Thread Chaoyong He
From: Zerun Fu Add support for querying current FEC mode from the device. Signed-off-by: Zerun Fu Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers/net/nfp/nfp_ethdev.c | 1 + drivers/net/nfp/nfp_net_common.c | 60 driver

[PATCH 5/7] net/nfp: support getting FEC capability

2023-12-10 Thread Chaoyong He
From: Zerun Fu Add support for querying FEC capabilities from the device. This feature only shows the current port speed and the supported FEC modes at that speed. Signed-off-by: Zerun Fu Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong He --- doc/guides/nics/features/nfp.

[PATCH 4/7] net/nfp: modify the link update function

2023-12-10 Thread Chaoyong He
From: Zerun Fu Modify the link update function to get the new port speed state after the port speed is changed, including the new speed and whether the auto negotiation mode is enabled. Signed-off-by: Zerun Fu Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers

[PATCH 3/7] net/nfp: support setting port speed

2023-12-10 Thread Chaoyong He
From: Zerun Fu Add support of setting speed of port. This feature allows to set any currently supported speed. When the port starts as default, the auto negotiation mode will be set if it is supported. Signed-off-by: Zerun Fu Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong

[PATCH 2/7] net/nfp: support getting speed capability

2023-12-10 Thread Chaoyong He
From: Zerun Fu Get the currently supported speed value from NSP. And the VF can not get the speed capacity now. Signed-off-by: Zerun Fu Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Chaoyong He --- drivers/net/nfp/nfp_ethdev.c | 121 ++ drivers/n

[PATCH 1/7] net/nfp: set a new parameter to hwinfo

2023-12-10 Thread Chaoyong He
From: Zerun Fu When switching speed the BSP needs to be informed whether the firmware needs to be switched. Considering that whether application firmware is indifferent to port speed is a firmware property instead of port property, now use a new rtsym to get the property. So 'sp_indiff' is writte

[PATCH 0/7] support link auto negotiation

2023-12-10 Thread Chaoyong He
This patch series add the support of link auto negotiation feature, including speed and FEC mode. Zerun Fu (7): net/nfp: set a new parameter to hwinfo net/nfp: support getting speed capability net/nfp: support setting port speed net/nfp: modify the link update function net/nfp: support g

RE: [PATCH v2 00/11] Add basic flow support for corenic firmware

2023-12-10 Thread Chaoyong He
> On 12/5/2023 2:54 AM, Chaoyong He wrote: > > Add the very basic rte_flow support for corenic firmware. > > > > --- > > v2: > > * Update the 'nfp.ini' document. > > * Rebase to the latest main branch. > > --- > > > > Chaoyong He (11): > > net/nfp: move some source files > > net/nfp: add the st

Re: [PATCH v2 03/14] net/bnxt: log a message when multicast promisc mode changes

2023-12-10 Thread Ajit Khaparde
On Sun, Dec 10, 2023 at 9:56 AM Stephen Hemminger wrote: > > On Sat, 9 Dec 2023 17:24:44 -0800 > Ajit Khaparde wrote: > > > + PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%d) exceeded > > Max supported (%d)\n", > > + nb_mc_addr, BNXT_MAX_MC_ADDRS); > > Use

Re: [PATCH v2 03/14] net/bnxt: log a message when multicast promisc mode changes

2023-12-10 Thread Stephen Hemminger
On Sat, 9 Dec 2023 17:24:44 -0800 Ajit Khaparde wrote: > + PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%d) exceeded Max > supported (%d)\n", > + nb_mc_addr, BNXT_MAX_MC_ADDRS); Use %u for unsigned variables. > + PMD_DRV_LOG(INFO, "Turning on

[RFC] ethdev: introduce entropy calculation

2023-12-10 Thread Ori Kam
When offloading rules with the encap action, the HW may calculate entropy based on the encap protocol. Each HW can implement a different algorithm. When the application receives packets that should have been encaped by the HW, but didn't reach this stage yet (for example TCP SYN packets), then w