Searched refs:ip6_offset (Results 1 – 1 of 1) sorted by relevance
284 u32 offset, val, ip6_offset; in mlx5_tc_ct_rule_to_tuple_nat() local304 ip6_offset = (offset - offsetof(struct ipv6hdr, saddr)); in mlx5_tc_ct_rule_to_tuple_nat()305 ip6_offset /= 4; in mlx5_tc_ct_rule_to_tuple_nat()306 if (ip6_offset < 4) in mlx5_tc_ct_rule_to_tuple_nat()307 tuple->ip.src_v6.s6_addr32[ip6_offset] = cpu_to_be32(val); in mlx5_tc_ct_rule_to_tuple_nat()308 else if (ip6_offset < 8) in mlx5_tc_ct_rule_to_tuple_nat()309 tuple->ip.dst_v6.s6_addr32[ip6_offset - 4] = cpu_to_be32(val); in mlx5_tc_ct_rule_to_tuple_nat()