]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit61a4427b955f79dfaa735788511ce558962c9d70
treef2c33f6f6d52885fd69578b030ebbe9a041990f3
parent3993c4e159eba0e10c0628737736d6fcf97ab9ef
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