]> www.infradead.org Git - users/hch/configfs.git/commit
net: ravb: Refactor RX ring refill
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Tue, 4 Jun 2024 07:28:21 +0000 (08:28 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Jun 2024 07:59:57 +0000 (09:59 +0200)
commit37a01c12e9e89fe2545657d7b42ca2de9c780c45
treef3dbce700c499dde67a37054e70ca3aadefbcc28
parentb0e0e20dc60e9e37b7e5bc71f0c912f66ad75529
net: ravb: Refactor RX ring refill

To reduce code duplication, we add a new RX ring refill function which
can handle both the initial RX ring population (which was split between
ravb_ring_init() and ravb_ring_format()) and the RX ring refill after
polling (in ravb_rx()).

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/renesas/ravb_main.c