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.junlo...@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.