bnx2x: Use helpers instead of direct access to the shinfo(skb) fields
authorVladislav Zolotarov <vladz@broadcom.com>
Sun, 28 Nov 2010 00:23:35 +0000 (00:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 19:08:11 +0000 (11:08 -0800)
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_cmn.c

index 94d5f59d5a6f0a1de6dd8cc5ad44fc2083649b98..e20b2d378929444de1a06dfa3693e00542fbe2c4 100644 (file)
@@ -1692,11 +1692,10 @@ static inline u32 bnx2x_xmit_type(struct bnx2x *bp, struct sk_buff *skb)
                }
        }
 
-       if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4)
-               rc |= (XMIT_GSO_V4 | XMIT_CSUM_V4 | XMIT_CSUM_TCP);
-
-       else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6)
-               rc |= (XMIT_GSO_V6 | XMIT_CSUM_TCP | XMIT_CSUM_V6);
+       if (skb_is_gso_v6(skb))
+               rc |= XMIT_GSO_V6 | XMIT_CSUM_TCP | XMIT_CSUM_V6;
+       else if (skb_is_gso(skb))
+               rc |= XMIT_GSO_V4 | XMIT_CSUM_V4 | XMIT_CSUM_TCP;
 
        return rc;
 }