mbox

[v2,0/2] write link speed to control BAR

Message ID 20230310062542.817107-1-chaoyong.he@corigine.com (mailing list archive)
Headers

Message

Chaoyong He March 10, 2023, 6:25 a.m. UTC
  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 the pf_dev
of the port and subsequently writing this value to the control BAR.

---
V2:
* Using the 16bit read/write helper functions
---
James Hershaw (2):
  net/nfp: add helper functions for read/write 16b values
  net/nfp: write link speed to control BAR

 drivers/net/nfp/nfp_common.c | 104 +++++++++++++++++++++++------------
 drivers/net/nfp/nfp_common.h |  17 ++++++
 drivers/net/nfp/nfp_ctrl.h   |   9 +++
 3 files changed, 94 insertions(+), 36 deletions(-)