Skip to content

Commit

Permalink
ucc_geth: separate out rx/tx ring alloc and free operations
Browse files Browse the repository at this point in the history
Factor out the the existing allocation and free operations
so that they can be used individually.

This is to improve code readability, and also to prepare for
possible future changes like better error recovery and more
dynamic configuration (e.g on-the-fly resizing of the rings).

This change represents a straight up relocation of the existing
code into separate routines without changing any of the contained
code itself.  Local variables are relocated as necessary.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Paul Gortmaker authored and David S. Miller committed Mar 5, 2012
1 parent 4b32da2 commit e19a82c
Showing 1 changed file with 257 additions and 196 deletions.
Loading

0 comments on commit e19a82c

Please sign in to comment.