>> +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!