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

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

2023-03-09 Thread Chaoyong He
From: James Hershaw Due to changes in the firmware for NFPs, firmware will no longer write the link speed of a port to the control BAR. In line with the behaviour of the kernel NFP driver, this is now handled by the PMD by reading the value provided by the NSP in the nfp_eth_table struct within t