[PATCH v9 6/9] net/zxdh: add zxdh get device backend infos
Ferruh Yigit
ferruh.yigit at amd.com
Sat Nov 2 02:06:40 CET 2024
On 11/1/2024 6:21 AM, Junlong Wang wrote:
> Add zxdh get device backend infos,
> use msg chan to send msg get.
>
> Signed-off-by: Junlong Wang <wang.junlong1 at zte.com.cn>
>
<...>
> +uint16_t zxdh_vport_to_vfid(union zxdh_virport_num v)
> +{
> + /* epid > 4 is local soft queue. return 1192 */
> + if (v.epid > 4)
> + return 1192;
> + if (v.vf_flag)
> + return v.epid * 256 + v.vfid;
> + else
> + return (v.epid * 8 + v.pfid) + 1152;
> +}
>
Is there a reason to not make this function static? This way can get rid
of the decleration in the header file.
More information about the dev
mailing list