Lines Matching refs:headers
19 ice_tc_count_lkups(u32 flags, struct ice_tc_flower_lyr_2_4_hdrs *headers, in ice_tc_count_lkups() argument
217 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers; in ice_tc_fill_rules() local
225 headers = &tc_fltr->inner_headers; in ice_tc_fill_rules()
229 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
230 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules()
238 l2_key = &headers->l2_key; in ice_tc_fill_rules()
239 l2_mask = &headers->l2_mask; in ice_tc_fill_rules()
260 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules()
271 l3_key = &headers->l3_key; in ice_tc_fill_rules()
272 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
290 l3_key = &headers->l3_key; in ice_tc_fill_rules()
291 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
313 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto); in ice_tc_fill_rules()
314 l4_key = &headers->l4_key; in ice_tc_fill_rules()
315 l4_mask = &headers->l4_mask; in ice_tc_fill_rules()
395 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_eswitch_add_tc_fltr() local
411 lkups_cnt = ice_tc_count_lkups(flags, headers, fltr); in ice_eswitch_add_tc_fltr()
486 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers; in ice_add_tc_flower_adv_fltr() local
521 lkups_cnt = ice_tc_count_lkups(flags, headers, tc_fltr); in ice_add_tc_flower_adv_fltr()
614 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv4() argument
621 headers->l3_key.dst_ipv4 = match->key->dst; in ice_tc_set_ipv4()
622 headers->l3_mask.dst_ipv4 = match->mask->dst; in ice_tc_set_ipv4()
629 headers->l3_key.src_ipv4 = match->key->src; in ice_tc_set_ipv4()
630 headers->l3_mask.src_ipv4 = match->mask->src; in ice_tc_set_ipv4()
645 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv6() argument
676 l3_key = &headers->l3_key; in ice_tc_set_ipv6()
677 l3_mask = &headers->l3_mask; in ice_tc_set_ipv6()
707 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_port() argument
715 headers->l4_key.dst_port = match.key->dst; in ice_tc_set_port()
716 headers->l4_mask.dst_port = match.mask->dst; in ice_tc_set_port()
724 headers->l4_key.src_port = match.key->src; in ice_tc_set_port()
725 headers->l4_mask.src_port = match.mask->src; in ice_tc_set_port()
752 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_tunnel_attr() local
756 headers->l3_key.ip_proto = IPPROTO_UDP; in ice_parse_tunnel_attr()
777 if (ice_tc_set_ipv4(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
784 if (ice_tc_set_ipv6(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
792 headers->l3_key.tos = match.key->tos; in ice_parse_tunnel_attr()
793 headers->l3_key.ttl = match.key->ttl; in ice_parse_tunnel_attr()
794 headers->l3_mask.tos = match.mask->tos; in ice_parse_tunnel_attr()
795 headers->l3_mask.ttl = match.mask->ttl; in ice_parse_tunnel_attr()
803 if (ice_tc_set_port(match, fltr, headers, true)) in ice_parse_tunnel_attr()
822 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_cls_flower() local
863 headers = &fltr->inner_headers; in ice_parse_cls_flower()
890 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
891 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask); in ice_parse_cls_flower()
892 headers->l3_key.ip_proto = match.key->ip_proto; in ice_parse_cls_flower()
901 ether_addr_copy(headers->l2_key.dst_mac, in ice_parse_cls_flower()
903 ether_addr_copy(headers->l2_mask.dst_mac, in ice_parse_cls_flower()
909 ether_addr_copy(headers->l2_key.src_mac, in ice_parse_cls_flower()
911 ether_addr_copy(headers->l2_mask.src_mac, in ice_parse_cls_flower()
943 headers->vlan_hdr.vlan_id = in ice_parse_cls_flower()
946 headers->vlan_hdr.vlan_prio = match.key->vlan_priority; in ice_parse_cls_flower()
961 if (ice_tc_set_ipv4(&match, fltr, headers, false)) in ice_parse_cls_flower()
969 if (ice_tc_set_ipv6(&match, fltr, headers, false)) in ice_parse_cls_flower()
977 if (ice_tc_set_port(match, fltr, headers, false)) in ice_parse_cls_flower()
979 switch (headers->l3_key.ip_proto) { in ice_parse_cls_flower()