Lines Matching refs:hw_checksum
572 static inline __wsum get_fixed_vlan_csum(__wsum hw_checksum, in get_fixed_vlan_csum() argument
575 return csum_add(hw_checksum, *(__wsum *)vlanh); in get_fixed_vlan_csum()
582 static int get_fixed_ipv4_csum(__wsum hw_checksum, struct sk_buff *skb, in get_fixed_ipv4_csum() argument
595 skb->csum = csum_sub(hw_checksum, csum_pseudo_header); in get_fixed_ipv4_csum()
604 static int get_fixed_ipv6_csum(__wsum hw_checksum, struct sk_buff *skb, in get_fixed_ipv6_csum() argument
616 temp = csum_add(hw_checksum, *(__wsum *)ipv6h); in get_fixed_ipv6_csum()
631 __wsum hw_checksum = 0; in check_csum() local
646 hw_checksum = csum_unfold((__force __sum16)cqe->checksum); in check_csum()
650 hw_checksum = get_fixed_vlan_csum(hw_checksum, hdr); in check_csum()
656 return get_fixed_ipv6_csum(hw_checksum, skb, hdr); in check_csum()
658 return get_fixed_ipv4_csum(hw_checksum, skb, hdr); in check_csum()