[PATCH 2/5] net/hns3: refactor VF mailbox message struct

Ferruh Yigit ferruh.yigit at amd.com
Thu Nov 9 19:51:17 CET 2023


On 11/8/2023 3:44 AM, Jie Hai wrote:
> From: Dengdui Huang <huangdengdui at huawei.com>
> 
> The data region in VF to PF mbx memssage command is
>

s/memssage/message/

Same for next patch


> used to communicate with PF driver. And this data
> region exists as an array. As a result, some complicated
> feature commands, like setting promisc mode, map/unmap
> ring vector and setting VLAN id, have to use magic number
> to set them. This isn't good for maintenance of driver.
> So this patch refactors these messages by extracting an
> hns3_vf_to_pf_msg structure.
> 
> In addition, the PF link change event message is reported
> by the firmware and is reported in hns3_mbx_vf_to_pf_cmd
> format, it also needs to be modified.
> 
> Fixes: 463e748964f5 ("net/hns3: support mailbox")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dengdui Huang <huangdengdui at huawei.com>
> Signed-off-by: Jie Hai <haijie1 at huawei.com>

<...>



More information about the dev mailing list