Lines Matching refs:csum
463 uint16_t csum; in net_rx_pkt_validate_l3_csum() local
479 csum = net_checksum_finish(cntr); in net_rx_pkt_validate_l3_csum()
481 *csum_valid = (csum == 0); in net_rx_pkt_validate_l3_csum()
484 cntr, csum, *csum_valid); in net_rx_pkt_validate_l3_csum()
493 uint16_t csum; in _net_rx_pkt_calc_l4_csum() local
534 csum = net_checksum_finish_nozero(cntr); in _net_rx_pkt_calc_l4_csum()
536 trace_net_rx_pkt_l4_csum_calc_csum(pkt->l4hdr_off, csl, cntr, csum); in _net_rx_pkt_calc_l4_csum()
538 return csum; in _net_rx_pkt_calc_l4_csum()
579 uint32_t csum; in net_rx_pkt_validate_l4_csum() local
596 csum = _net_rx_pkt_calc_l4_csum(pkt); in net_rx_pkt_validate_l4_csum()
597 *csum_valid = ((csum == 0) || (csum == 0xFFFF)); in net_rx_pkt_validate_l4_csum()
616 uint16_t csum = 0; in net_rx_pkt_fix_l4_csum() local
649 &csum, sizeof(csum)); in net_rx_pkt_fix_l4_csum()
652 csum = cpu_to_be16(_net_rx_pkt_calc_l4_csum(pkt)); in net_rx_pkt_fix_l4_csum()
657 &csum, sizeof(csum)); in net_rx_pkt_fix_l4_csum()
659 trace_net_rx_pkt_l4_csum_fix_csum(pkt->l4hdr_off + l4_cso, csum); in net_rx_pkt_fix_l4_csum()