]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
tg3: Move transmit comment to a better location
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 10:20:12 +0000 (10:20 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:21:31 +0000 (15:21 +0800)
This patch moves a comment in the transmit path to a better location.

(cherry picked from commit c5665a538da6b887a5096358a12527785506e5ac)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c

index da73a9ca031da5701f5d6a1cdb7914823b4fba69..18524f99a2fca2c4155b89d7413ffe2da10071ea 100644 (file)
@@ -6926,7 +6926,6 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
                          ((skb_shinfo(skb)->nr_frags == 0) ? TXD_FLAG_END : 0),
                            mss, vlan)) {
                would_hit_hwbug = 1;
-       /* Now loop through additional data fragments, and queue them. */
        } else if (skb_shinfo(skb)->nr_frags > 0) {
                u32 tmp_mss = mss;
 
@@ -6935,6 +6934,9 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
                    !tg3_flag(tp, HW_TSO_3))
                        tmp_mss = 0;
 
+               /* Now loop through additional data
+                * fragments, and queue them.
+                */
                last = skb_shinfo(skb)->nr_frags - 1;
                for (i = 0; i <= last; i++) {
                        skb_frag_t *frag = &skb_shinfo(skb)->frags[i];