Re: [PATCH v2 4/4] net/hns3: use stdatomic API

2023-12-08 Thread Ferruh Yigit
On 12/8/2023 7:24 AM, Jie Hai wrote: > On 2023/12/8 1:42, Ferruh Yigit wrote: >> On 12/7/2023 1:57 PM, Ferruh Yigit wrote: >>> On 12/7/2023 1:42 AM, Jie Hai wrote: Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API. Si

Re: [PATCH v2 4/4] net/hns3: use stdatomic API

2023-12-07 Thread Jie Hai
On 2023/12/8 1:42, Ferruh Yigit wrote: On 12/7/2023 1:57 PM, Ferruh Yigit wrote: On 12/7/2023 1:42 AM, Jie Hai wrote: Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API. Signed-off-by: Jie Hai <...> static void @@ -643,8 +643

Re: [PATCH v2 4/4] net/hns3: use stdatomic API

2023-12-07 Thread Jie Hai
On 2023/12/7 21:57, Ferruh Yigit wrote: On 12/7/2023 1:42 AM, Jie Hai wrote: Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API. Signed-off-by: Jie Hai <...> static void @@ -643,8 +643,8 @@ hns3vf_get_push_lsc_cap(struct hns3_

Re: [PATCH v2 4/4] net/hns3: use stdatomic API

2023-12-07 Thread Ferruh Yigit
On 12/7/2023 1:57 PM, Ferruh Yigit wrote: > On 12/7/2023 1:42 AM, Jie Hai wrote: >> Replace the use of gcc builtin __atomic_xxx intrinsics with >> corresponding rte_atomic_xxx optional stdatomic API. >> >> Signed-off-by: Jie Hai >> > > <...> > >> static void >> @@ -643,8 +643,8 @@ hns3vf_get_pu

Re: [PATCH v2 4/4] net/hns3: use stdatomic API

2023-12-07 Thread Ferruh Yigit
On 12/7/2023 1:42 AM, Jie Hai wrote: > Replace the use of gcc builtin __atomic_xxx intrinsics with > corresponding rte_atomic_xxx optional stdatomic API. > > Signed-off-by: Jie Hai > <...> > diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c > index b8f7e408d1e0..4572

Re: [PATCH v2 4/4] net/hns3: use stdatomic API

2023-12-07 Thread Ferruh Yigit
On 12/7/2023 1:42 AM, Jie Hai wrote: > Replace the use of gcc builtin __atomic_xxx intrinsics with > corresponding rte_atomic_xxx optional stdatomic API. > > Signed-off-by: Jie Hai > <...> > static void > @@ -643,8 +643,8 @@ hns3vf_get_push_lsc_cap(struct hns3_hw *hw) > uint16_t exp = H

[PATCH v2 4/4] net/hns3: use stdatomic API

2023-12-06 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| 50 ++