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)
commit92cd3a17ce9c719abb4c28dee3438e0c641f8de4
treef4883d546a721e2ee9320f66d918f5845cfedf77
parentdf8944cf5cd3794c46e95e0404038376ee7f8dda
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