Searched refs:csum_type (Results 1 – 13 of 13) sorted by relevance
627 if ((priv->csum_type == NFT_PAYLOAD_CSUM_INET || priv->csum_flags) && in nft_payload_set_eval()633 if (priv->csum_type == NFT_PAYLOAD_CSUM_INET && in nft_payload_set_eval()646 if (priv->csum_type == NFT_PAYLOAD_CSUM_SCTP && in nft_payload_set_eval()663 u32 csum_offset, csum_type = NFT_PAYLOAD_CSUM_NONE; in nft_payload_set_init() local671 csum_type = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_CSUM_TYPE])); in nft_payload_set_init()690 switch (csum_type) { in nft_payload_set_init()704 priv->csum_type = csum_type; in nft_payload_set_init()718 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) || in nft_payload_set_dump()
80 u8 csum_type; member
1082 int csum_type; in hwcsum() local1087 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()
287 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_supported_super_csum() argument289 switch (csum_type) { in btrfs_supported_super_csum()2243 static int btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash() argument2246 const char *csum_driver = btrfs_super_csum_driver(csum_type); in btrfs_init_csum_hash()2920 u16 csum_type; in open_ctree() local2971 csum_type = btrfs_super_csum_type(disk_super); in open_ctree()2972 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree()2974 csum_type); in open_ctree()2980 ret = btrfs_init_csum_hash(fs_info, csum_type); in open_ctree()
53 const char *btrfs_super_csum_name(u16 csum_type) in btrfs_super_csum_name() argument56 return btrfs_csums[csum_type].name; in btrfs_super_csum_name()63 const char *btrfs_super_csum_driver(u16 csum_type) in btrfs_super_csum_driver() argument66 return btrfs_csums[csum_type].driver[0] ? in btrfs_super_csum_driver()67 btrfs_csums[csum_type].driver : in btrfs_super_csum_driver()68 btrfs_csums[csum_type].name; in btrfs_super_csum_driver()
258 __le16 csum_type; member2303 csum_type, 16);2311 const char *btrfs_super_csum_name(u16 csum_type);2312 const char *btrfs_super_csum_driver(u16 csum_type);
812 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_checksum_show() local815 btrfs_super_csum_name(csum_type), in btrfs_checksum_show()
3353 fi_args->csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_ioctl_fs_info()
1160 int csum_type; in hwcsum() local1180 csum_type = TX_CSUM_TCPIP; in hwcsum()1182 csum_type = TX_CSUM_UDPIP; in hwcsum()1195 csum_type = TX_CSUM_TCPIP6; in hwcsum()1197 csum_type = TX_CSUM_UDPIP6; in hwcsum()1202 if (likely(csum_type >= TX_CSUM_TCPIP)) { in hwcsum()1222 return TXPKT_CSUM_TYPE_V(csum_type) | hdr_len; in hwcsum()1226 return TXPKT_CSUM_TYPE_V(csum_type) | in hwcsum()
169 __u16 csum_type; member
266 __u16 csum_type; /* out */ member
294 u8 csum_type; member
1594 if (meta->csum_type) { in nfp_net_rx_csum()1595 skb->ip_summed = meta->csum_type; in nfp_net_rx_csum()1692 meta->csum_type = CHECKSUM_COMPLETE; in nfp_net_parse_meta()