Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bnx2x: Use helpers instead of direct access to the shinfo(skb) fields

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>

authored by

Vladislav Zolotarov and committed by
David S. Miller
5892b9e9 be7ff1af

+4 -5
+4 -5
drivers/net/bnx2x/bnx2x_cmn.c
··· 1692 1692 } 1693 1693 } 1694 1694 1695 - if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) 1696 - rc |= (XMIT_GSO_V4 | XMIT_CSUM_V4 | XMIT_CSUM_TCP); 1697 - 1698 - else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) 1699 - rc |= (XMIT_GSO_V6 | XMIT_CSUM_TCP | XMIT_CSUM_V6); 1695 + if (skb_is_gso_v6(skb)) 1696 + rc |= XMIT_GSO_V6 | XMIT_CSUM_TCP | XMIT_CSUM_V6; 1697 + else if (skb_is_gso(skb)) 1698 + rc |= XMIT_GSO_V4 | XMIT_CSUM_V4 | XMIT_CSUM_TCP; 1700 1699 1701 1700 return rc; 1702 1701 }