This series performs the following:
- makes the API for Control Buffer Descriptor Rings in enetc_cbdr.c a
  bit more tightly knit.
- moves more logic into enetc_rxbd_next to make the callers simpler
- moves more logic into enetc_refill_rx_ring to make the callers simpler
- removes forward declarations
- simplifies the probe path to unify probing for used and unused PFs.

Nothing radical.

Vladimir Oltean (12):
  net: enetc: move the CBDR API to enetc_cbdr.c
  net: enetc: save the DMA device for enetc_free_cbdr
  net: enetc: squash enetc_alloc_cbdr and enetc_setup_cbdr
  net: enetc: save the mode register address inside struct enetc_cbdr
  net: enetc: squash clear_cbdr and free_cbdr into teardown_cbdr
  net: enetc: pass bd_count as an argument to enetc_setup_cbdr
  net: enetc: don't initialize unused ports from a separate code path
  net: enetc: simplify callers of enetc_rxbd_next
  net: enetc: use enum enetc_active_offloads
  net: enetc: remove forward-declarations of enetc_clean_{rx,tx}_ring
  net: enetc: remove forward declaration for enetc_map_tx_buffs
  net: enetc: make enetc_refill_rx_ring update the consumer index

 drivers/net/ethernet/freescale/enetc/enetc.c  | 284 ++++++------------
 drivers/net/ethernet/freescale/enetc/enetc.h  |  34 ++-
 .../net/ethernet/freescale/enetc/enetc_cbdr.c |  82 ++++-
 .../net/ethernet/freescale/enetc/enetc_pf.c   |  56 ++--
 .../net/ethernet/freescale/enetc/enetc_vf.c   |   7 +
 5 files changed, 212 insertions(+), 251 deletions(-)

-- 
2.25.1

Reply via email to