[v9,6/9] net/zxdh: add zxdh get device backend infos
Junlong Wang
wang.junlong1 at zte.com.cn
Mon Nov 4 04:30:45 CET 2024
>> +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.
In subsequent submission, it will be used by other file functions. Therefore, this function is not set to static.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20241104/3a0b0db2/attachment.htm>
More information about the dev
mailing list