[v6, net-next 00/10] Add more functionality to BNGE

Bhargava Marreddy posted 10 patches 2 days, 17 hours ago
drivers/net/ethernet/broadcom/Kconfig         |    1 +
drivers/net/ethernet/broadcom/bnge/bnge.h     |   27 +
.../net/ethernet/broadcom/bnge/bnge_core.c    |   16 +
drivers/net/ethernet/broadcom/bnge/bnge_db.h  |   34 +
.../ethernet/broadcom/bnge/bnge_hwrm_lib.c    |  485 ++++
.../ethernet/broadcom/bnge/bnge_hwrm_lib.h    |   31 +
.../net/ethernet/broadcom/bnge/bnge_netdev.c  | 2211 +++++++++++++++++
.../net/ethernet/broadcom/bnge/bnge_netdev.h  |  251 +-
.../net/ethernet/broadcom/bnge/bnge_resc.c    |    4 +-
.../net/ethernet/broadcom/bnge/bnge_resc.h    |    1 +
.../net/ethernet/broadcom/bnge/bnge_rmem.c    |   67 +-
.../net/ethernet/broadcom/bnge/bnge_rmem.h    |   14 +
12 files changed, 3136 insertions(+), 6 deletions(-)
create mode 100644 drivers/net/ethernet/broadcom/bnge/bnge_db.h
[v6, net-next 00/10] Add more functionality to BNGE
Posted by Bhargava Marreddy 2 days, 17 hours ago
Hi,

This patch series adds the infrastructure to make the netdevice
functional. It allocates data structures for core resources,
followed by their initialisation and registration with the firmware.
The core resources include the RX, TX, AGG, CMPL, and NQ rings,
as well as the VNIC. RX/TX functionality will be introduced in the
next patch series to keep this one at a reviewable size.

Changes from:

v5->v6
Addressed comments from Jakub Kicinski:
    - Add appropriate error handling in several functions
    - Enable device lock for bnge netdev ops

v4->v5
Addressed comments from Alok Tiwari
    - Remove the redundant `size` assignment

v3->v4
Addressed a comment from Jakub Kicinski:
    - To handle the page pool for both RX and AGG rings
    - Use the appropriate page allocation mechanism for the AGG ring
      when PAGE_SIZE is larger

v2->v3
Addressed a comment from Jakub Kicinski: 
    - Changed uses of atomic_t to refcount_t

v1->v2

Addressed warnings and errors in the patch series.

Thanks,

Bhargava Marreddy (10):
  bng_en: make bnge_alloc_ring() self-unwind on failure
  bng_en: Add initial support for RX and TX rings
  bng_en: Add initial support for CP and NQ rings
  bng_en: Introduce VNIC
  bng_en: Initialise core resources
  bng_en: Allocate packet buffers
  bng_en: Allocate stat contexts
  bng_en: Register rings with the firmware
  bng_en: Register default VNIC
  bng_en: Configure default VNIC

 drivers/net/ethernet/broadcom/Kconfig         |    1 +
 drivers/net/ethernet/broadcom/bnge/bnge.h     |   27 +
 .../net/ethernet/broadcom/bnge/bnge_core.c    |   16 +
 drivers/net/ethernet/broadcom/bnge/bnge_db.h  |   34 +
 .../ethernet/broadcom/bnge/bnge_hwrm_lib.c    |  485 ++++
 .../ethernet/broadcom/bnge/bnge_hwrm_lib.h    |   31 +
 .../net/ethernet/broadcom/bnge/bnge_netdev.c  | 2211 +++++++++++++++++
 .../net/ethernet/broadcom/bnge/bnge_netdev.h  |  251 +-
 .../net/ethernet/broadcom/bnge/bnge_resc.c    |    4 +-
 .../net/ethernet/broadcom/bnge/bnge_resc.h    |    1 +
 .../net/ethernet/broadcom/bnge/bnge_rmem.c    |   67 +-
 .../net/ethernet/broadcom/bnge/bnge_rmem.h    |   14 +
 12 files changed, 3136 insertions(+), 6 deletions(-)
 create mode 100644 drivers/net/ethernet/broadcom/bnge/bnge_db.h

-- 
2.47.3
Re: [v6, net-next 00/10] Add more functionality to BNGE
Posted by Jakub Kicinski 2 days, 17 hours ago
On Fri,  5 Sep 2025 22:46:42 +0000 Bhargava Marreddy wrote:
> Date: Fri,  5 Sep 2025 22:46:42 +0000

Please fix the time(zone) on your system. I already asked you once.
Re: [v6, net-next 00/10] Add more functionality to BNGE
Posted by Bhargava Chenna Marreddy 3 hours ago
On Sat, Sep 6, 2025 at 3:49 AM Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Fri,  5 Sep 2025 22:46:42 +0000 Bhargava Marreddy wrote:
> > Date: Fri,  5 Sep 2025 22:46:42 +0000
>
> Please fix the time(zone) on your system. I already asked you once.
Apologies for overlooking your earlier note—timezone is fixed locally,
and future patches will have correct timestamps.