[0/5] net/hns3: fix and refactor mailbox code

Message ID 20231108034434.559030-1-haijie1@huawei.com (mailing list archive)
Headers
Series net/hns3: fix and refactor mailbox code |

Message

Jie Hai Nov. 8, 2023, 3:44 a.m. UTC
  This patchset fixes failure on sync mailbox and refactors some codes on mailbox.

Dengdui Huang (5):
  net/hns3: fix sync mailbox failure forever
  net/hns3: refactor VF mailbox message struct
  net/hns3: refactor PF mailbox message struct
  net/hns3: refactor send mailbox function
  net/hns3: refactor handle mailbox function

 drivers/net/hns3/hns3_cmd.c       |   3 -
 drivers/net/hns3/hns3_ethdev.c    |   2 +-
 drivers/net/hns3/hns3_ethdev_vf.c | 181 ++++++++++++----------
 drivers/net/hns3/hns3_mbx.c       | 244 +++++++++++++-----------------
 drivers/net/hns3/hns3_mbx.h       | 104 +++++++++----
 drivers/net/hns3/hns3_rxtx.c      |  18 +--
 6 files changed, 290 insertions(+), 262 deletions(-)
  

Comments

Ferruh Yigit Nov. 9, 2023, 6:50 p.m. UTC | #1
On 11/8/2023 3:44 AM, Jie Hai wrote:
> This patchset fixes failure on sync mailbox and refactors some codes on mailbox.
> 
> Dengdui Huang (5):
>   net/hns3: fix sync mailbox failure forever
>   net/hns3: refactor VF mailbox message struct
>   net/hns3: refactor PF mailbox message struct
>   net/hns3: refactor send mailbox function
>   net/hns3: refactor handle mailbox function
>

Hi Jie,

Overall patchset looks good with minor issue below [1], but this set has
high impact and not solving a critical defect etc, but mainly refactoring.
We are very close to the release, there won't be enough time to fix any
issue caused by this refactoring.

My suggestion is to postpone the refactoring to next release, maybe get
only the first fix patch in this release, what do you think?



[1]
Can you please fix the checkpatch warning:

 ### [PATCH] net/hns3: refactor handle mailbox function

  Warning in drivers/net/hns3/hns3_mbx.c:
  Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer
rte_atomic_xxx/rte_memory_order_xxx
  
Jie Hai Nov. 10, 2023, 6:21 a.m. UTC | #2
On 2023/11/10 2:50, Ferruh Yigit wrote:
> On 11/8/2023 3:44 AM, Jie Hai wrote:
>> This patchset fixes failure on sync mailbox and refactors some codes on mailbox.
>>
>> Dengdui Huang (5):
>>    net/hns3: fix sync mailbox failure forever
>>    net/hns3: refactor VF mailbox message struct
>>    net/hns3: refactor PF mailbox message struct
>>    net/hns3: refactor send mailbox function
>>    net/hns3: refactor handle mailbox function
>>
> 
> Hi Jie,
> 
> Overall patchset looks good with minor issue below [1], but this set has
> high impact and not solving a critical defect etc, but mainly refactoring.
> We are very close to the release, there won't be enough time to fix any
> issue caused by this refactoring.
> 
> My suggestion is to postpone the refactoring to next release, maybe get
> only the first fix patch in this release, what do you think?
> 
I think it's OK.
> 
> 
> [1]
> Can you please fix the checkpatch warning:
> 
>   ### [PATCH] net/hns3: refactor handle mailbox function
> 
>    Warning in drivers/net/hns3/hns3_mbx.c:
>    Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer
> rte_atomic_xxx/rte_memory_order_xxx
> 
Thanks, I'will send V2 with these fixes.
> .
  
Ferruh Yigit Nov. 10, 2023, 12:35 p.m. UTC | #3
On 11/10/2023 6:21 AM, Jie Hai wrote:
> On 2023/11/10 2:50, Ferruh Yigit wrote:
>> On 11/8/2023 3:44 AM, Jie Hai wrote:
>>> This patchset fixes failure on sync mailbox and refactors some codes
>>> on mailbox.
>>>
>>> Dengdui Huang (5):
>>>    net/hns3: fix sync mailbox failure forever
>>>    net/hns3: refactor VF mailbox message struct
>>>    net/hns3: refactor PF mailbox message struct
>>>    net/hns3: refactor send mailbox function
>>>    net/hns3: refactor handle mailbox function
>>>
>>
>> Hi Jie,
>>
>> Overall patchset looks good with minor issue below [1], but this set has
>> high impact and not solving a critical defect etc, but mainly
>> refactoring.
>> We are very close to the release, there won't be enough time to fix any
>> issue caused by this refactoring.
>>
>> My suggestion is to postpone the refactoring to next release, maybe get
>> only the first fix patch in this release, what do you think?
>>
> I think it's OK.
>

OK, I will proceed with it, please be sure it is fully verified.


>>
>>
>> [1]
>> Can you please fix the checkpatch warning:
>>
>>   ### [PATCH] net/hns3: refactor handle mailbox function
>>
>>    Warning in drivers/net/hns3/hns3_mbx.c:
>>    Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer
>> rte_atomic_xxx/rte_memory_order_xxx
>>
> Thanks, I'will send V2 with these fixes.
>> .