]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: Factorize the .xmit transmit function
authorNimrod Andy <B38611@freescale.com>
Thu, 12 Jun 2014 00:16:18 +0000 (08:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jun 2014 18:01:57 +0000 (11:01 -0700)
commitbcbf60ecf0d67f72bcad26718a0ab96bc07cbf51
treef2c33f6f6d52885fd69578b030ebbe9a041990f3
parent6d4ddfb6f3dee477aa2fe6ede60b9c2b13dcee18
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>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c