mbox series

[net-next,00/12] Refactoring/cleanup for NXP ENETC

Message ID 20210310120351.542292-1-vladimir.oltean@nxp.com (mailing list archive)
Headers show
Series Refactoring/cleanup for NXP ENETC | expand

Message

Vladimir Oltean March 10, 2021, 12:03 p.m. UTC
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(-)

Comments

Claudiu Manoil March 10, 2021, 1:33 p.m. UTC | #1
>-----Original Message-----
>From: Vladimir Oltean <olteanv@gmail.com>
>Sent: Wednesday, March 10, 2021 2:04 PM
>To: David S . Miller <davem@davemloft.net>; Jakub Kicinski
><kuba@kernel.org>; netdev@vger.kernel.org
>Cc: Alexandru Marginean <alexandru.marginean@nxp.com>; Claudiu Manoil
><claudiu.manoil@nxp.com>
>Subject: [PATCH net-next 00/12] Refactoring/cleanup for NXP ENETC
>
>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.
>

For the series -
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
patchwork-bot+netdevbpf@kernel.org March 10, 2021, 9:30 p.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (refs/heads/master):

On Wed, 10 Mar 2021 14:03:39 +0200 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,01/12] net: enetc: move the CBDR API to enetc_cbdr.c
    https://git.kernel.org/netdev/net-next/c/176769d10f96
  - [net-next,02/12] net: enetc: save the DMA device for enetc_free_cbdr
    https://git.kernel.org/netdev/net-next/c/01121ab73924
  - [net-next,03/12] net: enetc: squash enetc_alloc_cbdr and enetc_setup_cbdr
    https://git.kernel.org/netdev/net-next/c/24be14e3260a
  - [net-next,04/12] net: enetc: save the mode register address inside struct enetc_cbdr
    https://git.kernel.org/netdev/net-next/c/27f9025d4941
  - [net-next,05/12] net: enetc: squash clear_cbdr and free_cbdr into teardown_cbdr
    https://git.kernel.org/netdev/net-next/c/0bfde022b345
  - [net-next,06/12] net: enetc: pass bd_count as an argument to enetc_setup_cbdr
    https://git.kernel.org/netdev/net-next/c/5b4daa7f1256
  - [net-next,07/12] net: enetc: don't initialize unused ports from a separate code path
    https://git.kernel.org/netdev/net-next/c/4b47c0b81ffd
  - [net-next,08/12] net: enetc: simplify callers of enetc_rxbd_next
    https://git.kernel.org/netdev/net-next/c/c027aa9201eb
  - [net-next,09/12] net: enetc: use enum enetc_active_offloads
    https://git.kernel.org/netdev/net-next/c/7f071a450b08
  - [net-next,10/12] net: enetc: remove forward-declarations of enetc_clean_{rx,tx}_ring
    https://git.kernel.org/netdev/net-next/c/8580b3c3d786
  - [net-next,11/12] net: enetc: remove forward declaration for enetc_map_tx_buffs
    https://git.kernel.org/netdev/net-next/c/0486185ee244
  - [net-next,12/12] net: enetc: make enetc_refill_rx_ring update the consumer index
    https://git.kernel.org/netdev/net-next/c/7a5222cb7a56

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html