]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Simplify tx bd assignments
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 27 Jul 2011 14:20:47 +0000 (14:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jul 2011 05:39:31 +0000 (22:39 -0700)
commit2ddac7b4ad269d84e97632632324f69f154dd372
treef4883d546a721e2ee9320f66d918f5845cfedf77
parent2b77a96b058a55a6f3e8cf148fc3f984f882fefc
tg3: Simplify tx bd assignments

In the following patches, the process the driver will use to assign skb
fragments to transmit BDs will get more complicated.  To prepare for
that new code, this patch seeks to simplify how transmit BDs are
populated.  It does this by separating the code that assigns the BD
members from the logic that controls how the fields are set.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c