Home
last modified time | relevance | path

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

/Linux-v5.4/net/netfilter/
Dnft_payload.c522 if ((priv->csum_type == NFT_PAYLOAD_CSUM_INET || priv->csum_flags) && in nft_payload_set_eval()
528 if (priv->csum_type == NFT_PAYLOAD_CSUM_INET && in nft_payload_set_eval()
558 priv->csum_type = in nft_payload_set_init()
573 switch (priv->csum_type) { in nft_payload_set_init()
592 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) || in nft_payload_set_dump()
/Linux-v5.4/include/net/netfilter/
Dnf_tables_core.h62 u8 csum_type; member
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1082 int csum_type; in hwcsum() local
1087 csum_type = TX_CSUM_TCPIP; in hwcsum()
1089 csum_type = TX_CSUM_UDPIP; in hwcsum()
1105 csum_type = TX_CSUM_TCPIP6; in hwcsum()
1107 csum_type = TX_CSUM_UDPIP6; in hwcsum()
1112 if (likely(csum_type >= TX_CSUM_TCPIP)) { in hwcsum()
1120 return TXPKT_CSUM_TYPE_V(csum_type) | hdr_len; in hwcsum()
1124 return TXPKT_CSUM_TYPE_V(csum_type) | in hwcsum()
/Linux-v5.4/fs/btrfs/
Ddisk-io.c351 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_supported_super_csum() argument
353 switch (csum_type) { in btrfs_supported_super_csum()
2233 static int btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash() argument
2236 const char *csum_name = btrfs_super_csum_name(csum_type); in btrfs_init_csum_hash()
2601 u16 csum_type; in open_ctree() local
2811 csum_type = btrfs_super_csum_type((struct btrfs_super_block *)bh->b_data); in open_ctree()
2812 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree()
2814 csum_type); in open_ctree()
2820 ret = btrfs_init_csum_hash(fs_info, csum_type); in open_ctree()
Dctree.h248 __le16 csum_type; member
2157 csum_type, 16);
2165 const char *btrfs_super_csum_name(u16 csum_type);
Dctree.c48 const char *btrfs_super_csum_name(u16 csum_type) in btrfs_super_csum_name() argument
51 return btrfs_csums[csum_type].name; in btrfs_super_csum_name()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1095 int csum_type; in hwcsum() local
1115 csum_type = TX_CSUM_TCPIP; in hwcsum()
1117 csum_type = TX_CSUM_UDPIP; in hwcsum()
1130 csum_type = TX_CSUM_TCPIP6; in hwcsum()
1132 csum_type = TX_CSUM_UDPIP6; in hwcsum()
1137 if (likely(csum_type >= TX_CSUM_TCPIP)) { in hwcsum()
1157 return TXPKT_CSUM_TYPE_V(csum_type) | hdr_len; in hwcsum()
1161 return TXPKT_CSUM_TYPE_V(csum_type) | in hwcsum()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_net.h294 u8 csum_type; member
Dnfp_net_common.c1598 if (meta->csum_type) { in nfp_net_rx_csum()
1599 skb->ip_summed = meta->csum_type; in nfp_net_rx_csum()
1696 meta->csum_type = CHECKSUM_COMPLETE; in nfp_net_parse_meta()