]> 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)
commit318c60a1ff1e5a655f928da8771640627ab36b65
treef2c33f6f6d52885fd69578b030ebbe9a041990f3
parentabdbddf3873ea4849f586f696c2de2f7d683b07d
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