Re: [PATCH v2 2/2] net/nfp: write link speed to control BAR

2023-03-13 Thread Ferruh Yigit
On 3/13/2023 3:03 AM, Chaoyong He wrote: >> On 3/10/2023 6:25 AM, Chaoyong He wrote: >>> + /** >>> +* Shift and mask nn_link_status so that it is effectively the value >>> +* at offset NFP_NET_CFG_STS_NSP_LINK_RATE. >>> +*/ >>> + nn_link_status = (nn_link_status >> >> NFP_NET_CFG_ST

RE: [PATCH v2 2/2] net/nfp: write link speed to control BAR

2023-03-12 Thread Chaoyong He
> On 3/10/2023 6:25 AM, Chaoyong He wrote: > > + /** > > +* Shift and mask nn_link_status so that it is effectively the value > > +* at offset NFP_NET_CFG_STS_NSP_LINK_RATE. > > +*/ > > + nn_link_status = (nn_link_status >> > NFP_NET_CFG_STS_LINK_RATE_SHIFT) & > > +

Re: [PATCH v2 2/2] net/nfp: write link speed to control BAR

2023-03-10 Thread Ferruh Yigit
On 3/10/2023 6:25 AM, Chaoyong He wrote: > + /** > + * Shift and mask nn_link_status so that it is effectively the value > + * at offset NFP_NET_CFG_STS_NSP_LINK_RATE. > + */ > + nn_link_status = (nn_link_status >> NFP_NET_CFG_STS_LINK_RATE_SHIFT) & > + N