diff options
author | Nimrod Andy <B38611@freescale.com> | 2014-06-12 02:16:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-12 20:01:57 +0200 |
commit | 61a4427b955f79dfaa735788511ce558962c9d70 (patch) | |
tree | f2c33f6f6d52885fd69578b030ebbe9a041990f3 /drivers/net/ethernet/freescale/fec.h | |
parent | bridge: fix compile error when compiling without IPv6 support (diff) | |
download | linux-61a4427b955f79dfaa735788511ce558962c9d70.tar.xz linux-61a4427b955f79dfaa735788511ce558962c9d70.zip |
net: fec: Factorize the .xmit transmit function
Make the code more readable and easy to support other features like
SG, TSO, moving the common transmit function to one api.
And the patch also factorize the getting BD index to it own function.
CC: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.h')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 3b8d6d19ff05..db967a08637d 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -296,6 +296,7 @@ struct fec_enet_private { /* The ring entries to be free()ed */ struct bufdesc *dirty_tx; + unsigned short bufdesc_size; unsigned short tx_ring_size; unsigned short rx_ring_size; |