Lines Matching full:headers
15 * @headers: Pointer to TC flower filter header structure
21 ice_tc_count_lkups(u32 flags, struct ice_tc_flower_lyr_2_4_hdrs *headers, in ice_tc_count_lkups() argument
348 * TC flower headers. This list should be used to add
358 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers; in ice_tc_fill_rules() local
377 headers = &tc_fltr->inner_headers; in ice_tc_fill_rules()
383 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
384 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules()
392 l2_key = &headers->l2_key; in ice_tc_fill_rules()
393 l2_mask = &headers->l2_mask; in ice_tc_fill_rules()
419 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules()
431 headers->vlan_hdr.vlan_prio; in ice_tc_fill_rules()
438 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid); in ice_tc_fill_rules()
449 list[i].h_u.vlan_hdr.vlan = headers->cvlan_hdr.vlan_id; in ice_tc_fill_rules()
461 headers->cvlan_hdr.vlan_prio; in ice_tc_fill_rules()
477 vals->session_id = headers->pppoe_hdr.session_id; in ice_tc_fill_rules()
482 vals->ppp_prot_id = headers->pppoe_hdr.ppp_proto; in ice_tc_fill_rules()
495 l3_key = &headers->l3_key; in ice_tc_fill_rules()
496 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
514 l3_key = &headers->l3_key; in ice_tc_fill_rules()
515 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
532 if (headers->l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_rules()
537 list[i].h_u.ipv4_hdr.tos = headers->l3_key.tos; in ice_tc_fill_rules()
538 list[i].m_u.ipv4_hdr.tos = headers->l3_mask.tos; in ice_tc_fill_rules()
543 headers->l3_key.ttl; in ice_tc_fill_rules()
545 headers->l3_mask.ttl; in ice_tc_fill_rules()
551 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_rules()
561 headers->l3_key.tos, in ice_tc_fill_rules()
564 headers->l3_mask.tos, in ice_tc_fill_rules()
569 hdr_h->hop_limit = headers->l3_key.ttl; in ice_tc_fill_rules()
570 hdr_m->hop_limit = headers->l3_mask.ttl; in ice_tc_fill_rules()
580 headers->l2tpv3_hdr.session_id; in ice_tc_fill_rules()
592 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto); in ice_tc_fill_rules()
593 l4_key = &headers->l4_key; in ice_tc_fill_rules()
594 l4_mask = &headers->l4_mask; in ice_tc_fill_rules()
731 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_eswitch_add_tc_fltr() local
746 lkups_cnt = ice_tc_count_lkups(flags, headers, fltr); in ice_eswitch_add_tc_fltr()
946 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers; in ice_add_tc_flower_adv_fltr() local
982 lkups_cnt = ice_tc_count_lkups(flags, headers, tc_fltr); in ice_add_tc_flower_adv_fltr()
1087 * @headers: Pointer to outer header fields
1093 struct ice_tc_flower_lyr_2_4_hdrs *headers) in ice_tc_set_pppoe() argument
1097 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe()
1102 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe()
1112 * @headers: inner or outer header fields
1118 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv4() argument
1125 headers->l3_key.dst_ipv4 = match->key->dst; in ice_tc_set_ipv4()
1126 headers->l3_mask.dst_ipv4 = match->mask->dst; in ice_tc_set_ipv4()
1133 headers->l3_key.src_ipv4 = match->key->src; in ice_tc_set_ipv4()
1134 headers->l3_mask.src_ipv4 = match->mask->src; in ice_tc_set_ipv4()
1143 * @headers: inner or outer header fields
1149 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv6() argument
1180 l3_key = &headers->l3_key; in ice_tc_set_ipv6()
1181 l3_mask = &headers->l3_mask; in ice_tc_set_ipv6()
1205 * @headers: inner or outer header fields
1211 struct ice_tc_flower_lyr_2_4_hdrs *headers, in ice_tc_set_tos_ttl() argument
1220 headers->l3_key.tos = match->key->tos; in ice_tc_set_tos_ttl()
1221 headers->l3_mask.tos = match->mask->tos; in ice_tc_set_tos_ttl()
1230 headers->l3_key.ttl = match->key->ttl; in ice_tc_set_tos_ttl()
1231 headers->l3_mask.ttl = match->mask->ttl; in ice_tc_set_tos_ttl()
1239 * @headers: inner or outer header fields
1245 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_port() argument
1253 headers->l4_key.dst_port = match.key->dst; in ice_tc_set_port()
1254 headers->l4_mask.dst_port = match.mask->dst; in ice_tc_set_port()
1262 headers->l4_key.src_port = match.key->src; in ice_tc_set_port()
1263 headers->l4_mask.src_port = match.mask->src; in ice_tc_set_port()
1324 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_tunnel_attr() local
1328 headers->l3_key.ip_proto = IPPROTO_UDP; in ice_parse_tunnel_attr()
1349 if (ice_tc_set_ipv4(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1356 if (ice_tc_set_ipv6(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1364 ice_tc_set_tos_ttl(&match, fltr, headers, true); in ice_parse_tunnel_attr()
1374 if (ice_tc_set_port(match, fltr, headers, true)) in ice_parse_tunnel_attr()
1411 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_cls_flower() local
1454 /* header pointers should point to the inner headers, outer in ice_parse_cls_flower()
1457 headers = &fltr->inner_headers; in ice_parse_cls_flower()
1489 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1490 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask); in ice_parse_cls_flower()
1491 headers->l3_key.ip_proto = match.key->ip_proto; in ice_parse_cls_flower()
1500 ether_addr_copy(headers->l2_key.dst_mac, in ice_parse_cls_flower()
1502 ether_addr_copy(headers->l2_mask.dst_mac, in ice_parse_cls_flower()
1508 ether_addr_copy(headers->l2_key.src_mac, in ice_parse_cls_flower()
1510 ether_addr_copy(headers->l2_mask.src_mac, in ice_parse_cls_flower()
1536 headers->vlan_hdr.vlan_id = in ice_parse_cls_flower()
1547 headers->vlan_hdr.vlan_prio = in ice_parse_cls_flower()
1553 headers->vlan_hdr.vlan_tpid = match.key->vlan_tpid; in ice_parse_cls_flower()
1571 headers->cvlan_hdr.vlan_id = in ice_parse_cls_flower()
1583 headers->cvlan_hdr.vlan_prio = in ice_parse_cls_flower()
1593 n_proto_key = ice_tc_set_pppoe(&match, fltr, headers); in ice_parse_cls_flower()
1600 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1601 headers->l2_mask.n_proto = cpu_to_be16(0xFFFF); in ice_parse_cls_flower()
1617 if (ice_tc_set_ipv4(&match, fltr, headers, false)) in ice_parse_cls_flower()
1625 if (ice_tc_set_ipv6(&match, fltr, headers, false)) in ice_parse_cls_flower()
1633 ice_tc_set_tos_ttl(&match, fltr, headers, false); in ice_parse_cls_flower()
1642 headers->l2tpv3_hdr.session_id = match.key->session_id; in ice_parse_cls_flower()
1649 if (ice_tc_set_port(match, fltr, headers, false)) in ice_parse_cls_flower()
1651 switch (headers->l3_key.ip_proto) { in ice_parse_cls_flower()
1683 * ice_prep_adq_filter - Prepare ADQ filter with the required additional headers