Home
last modified time | relevance | path

Searched refs:enc_ports (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_vxlan.c23 struct flow_match_ports enc_ports; in mlx5e_tc_tun_check_udp_dport_vxlan() local
28 flow_rule_match_enc_ports(rule, &enc_ports); in mlx5e_tc_tun_check_udp_dport_vxlan()
33 be16_to_cpu(enc_ports.key->dst))) { in mlx5e_tc_tun_check_udp_dport_vxlan()
38 be16_to_cpu(enc_ports.key->dst)); in mlx5e_tc_tun_check_udp_dport_vxlan()
Dtc_tun.c518 struct flow_match_ports enc_ports; in mlx5e_tc_tun_parse_udp_ports() local
530 flow_rule_match_enc_ports(rule, &enc_ports); in mlx5e_tc_tun_parse_udp_ports()
532 if (memchr_inv(&enc_ports.mask->dst, 0xff, in mlx5e_tc_tun_parse_udp_ports()
533 sizeof(enc_ports.mask->dst))) { in mlx5e_tc_tun_parse_udp_ports()
547 ntohs(enc_ports.mask->dst)); in mlx5e_tc_tun_parse_udp_ports()
549 ntohs(enc_ports.key->dst)); in mlx5e_tc_tun_parse_udp_ports()
557 ntohs(enc_ports.mask->src)); in mlx5e_tc_tun_parse_udp_ports()
559 ntohs(enc_ports.key->src)); in mlx5e_tc_tun_parse_udp_ports()
Dtc_tun_geneve.c27 struct flow_match_ports enc_ports; in mlx5e_tc_tun_check_udp_dport_geneve() local
32 flow_rule_match_enc_ports(rule, &enc_ports); in mlx5e_tc_tun_check_udp_dport_geneve()
37 if (be16_to_cpu(enc_ports.key->dst) != GENEVE_UDP_PORT) { in mlx5e_tc_tun_check_udp_dport_geneve()
42 be16_to_cpu(enc_ports.key->dst)); in mlx5e_tc_tun_check_udp_dport_geneve()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Doffload.c166 nfp_flower_calc_udp_tun_layer(struct flow_dissector_key_ports *enc_ports, in nfp_flower_calc_udp_tun_layer() argument
175 switch (enc_ports->dst) { in nfp_flower_calc_udp_tun_layer()
272 struct flow_match_ports enc_ports; in nfp_flower_calculate_key_layers() local
315 flow_rule_match_enc_ports(rule, &enc_ports); in nfp_flower_calculate_key_layers()
316 if (enc_ports.mask->dst != cpu_to_be16(~0)) { in nfp_flower_calculate_key_layers()
321 err = nfp_flower_calc_udp_tun_layer(enc_ports.key, in nfp_flower_calculate_key_layers()