ring: Move generic code for ring layout setup to own function
commitdbd83f04dfb4b4265a290bad6a1813825f7ab3c6
authorTobias Klauser <tklauser@distanz.ch>
Thu, 29 Oct 2015 13:18:03 +0000 (29 14:18 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 29 Oct 2015 13:20:46 +0000 (29 14:20 +0100)
tree7565751ab618dcb5b130e990c1336614d878cdad
parenta81b515484828e0cff848fb7689d4a4b77f020d8
ring: Move generic code for ring layout setup to own function

Initialization of the ring->layout members is the same for RX and TX
rings. Instead of duplicating the code in setup_rx_ring_layout() and
setup_tx_ring_layout(), create a new function
setup_ring_layout_generic() which is called from the former two.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
ring.c
ring.h
ring_rx.c
ring_tx.c