Home
last modified time | relevance | path

Searched refs:hw_checksum (Results 1 – 1 of 1) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c569 static inline __wsum get_fixed_vlan_csum(__wsum hw_checksum, in get_fixed_vlan_csum() argument
572 return csum_add(hw_checksum, *(__wsum *)vlanh); in get_fixed_vlan_csum()
579 static int get_fixed_ipv4_csum(__wsum hw_checksum, struct sk_buff *skb, in get_fixed_ipv4_csum() argument
592 skb->csum = csum_sub(hw_checksum, csum_pseudo_header); in get_fixed_ipv4_csum()
601 static int get_fixed_ipv6_csum(__wsum hw_checksum, struct sk_buff *skb, in get_fixed_ipv6_csum() argument
613 temp = csum_add(hw_checksum, *(__wsum *)ipv6h); in get_fixed_ipv6_csum()
628 __wsum hw_checksum = 0; in check_csum() local
643 hw_checksum = csum_unfold((__force __sum16)cqe->checksum); in check_csum()
647 hw_checksum = get_fixed_vlan_csum(hw_checksum, hdr); in check_csum()
653 return get_fixed_ipv6_csum(hw_checksum, skb, hdr); in check_csum()
[all …]