Searched refs:ip6_offset (Results 1 – 1 of 1) sorted by relevance
294 u32 offset, val, ip6_offset; in mlx5_tc_ct_rule_to_tuple_nat() local314 ip6_offset = (offset - offsetof(struct ipv6hdr, saddr)); in mlx5_tc_ct_rule_to_tuple_nat()315 ip6_offset /= 4; in mlx5_tc_ct_rule_to_tuple_nat()316 if (ip6_offset < 4) in mlx5_tc_ct_rule_to_tuple_nat()317 tuple->ip.src_v6.s6_addr32[ip6_offset] = cpu_to_be32(val); in mlx5_tc_ct_rule_to_tuple_nat()318 else if (ip6_offset < 8) in mlx5_tc_ct_rule_to_tuple_nat()319 tuple->ip.dst_v6.s6_addr32[ip6_offset - 4] = cpu_to_be32(val); in mlx5_tc_ct_rule_to_tuple_nat()