>> +uint16_t zxdh_vport_to_vfid(union zxdh_virport_num v)<br />>> +{<br />>> +    /* epid > 4 is local soft queue. return 1192 */<br />>> +    if (v.epid > 4)<br />>> +        return 1192;<br />>> +    if (v.vf_flag)<br />>> +        return v.epid * 256 + v.vfid;<br />>> +    else<br />>> +        return (v.epid * 8 + v.pfid) + 1152;<br />>> +}<br />>> <br /> <br />> Is there a reason to not make this function static? This way can get rid<br />> of the decleration in the header file.<br /> <br />In subsequent submission, it will be used by other file functions. Therefore, this function is not set to static.<br /> <br />Thanks!