Lines Matching defs: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,
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;
377 headers = &tc_fltr->inner_headers;
383 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto;
384 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto;
392 l2_key = &headers->l2_key;
393 l2_mask = &headers->l2_mask;
419 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id;
431 headers->vlan_hdr.vlan_prio;
438 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid);
449 list[i].h_u.vlan_hdr.vlan = headers->cvlan_hdr.vlan_id;
461 headers->cvlan_hdr.vlan_prio;
477 vals->session_id = headers->pppoe_hdr.session_id;
482 vals->ppp_prot_id = headers->pppoe_hdr.ppp_proto;
495 l3_key = &headers->l3_key;
496 l3_mask = &headers->l3_mask;
514 l3_key = &headers->l3_key;
515 l3_mask = &headers->l3_mask;
532 if (headers->l2_key.n_proto == htons(ETH_P_IP) &&
537 list[i].h_u.ipv4_hdr.tos = headers->l3_key.tos;
538 list[i].m_u.ipv4_hdr.tos = headers->l3_mask.tos;
543 headers->l3_key.ttl;
545 headers->l3_mask.ttl;
551 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) &&
561 headers->l3_key.tos,
564 headers->l3_mask.tos,
569 hdr_h->hop_limit = headers->l3_key.ttl;
570 hdr_m->hop_limit = headers->l3_mask.ttl;
580 headers->l2tpv3_hdr.session_id;
592 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto);
593 l4_key = &headers->l4_key;
594 l4_mask = &headers->l4_mask;
772 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers;
787 lkups_cnt = ice_tc_count_lkups(flags, headers, fltr);
976 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers;
1012 lkups_cnt = ice_tc_count_lkups(flags, headers, tc_fltr);
1117 * @headers: Pointer to outer header fields
1123 struct ice_tc_flower_lyr_2_4_hdrs *headers)
1127 headers->pppoe_hdr.session_id = match->key->session_id;
1132 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto;
1142 * @headers: inner or outer header fields
1148 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap)
1155 headers->l3_key.dst_ipv4 = match->key->dst;
1156 headers->l3_mask.dst_ipv4 = match->mask->dst;
1163 headers->l3_key.src_ipv4 = match->key->src;
1164 headers->l3_mask.src_ipv4 = match->mask->src;
1173 * @headers: inner or outer header fields
1179 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap)
1210 l3_key = &headers->l3_key;
1211 l3_mask = &headers->l3_mask;
1235 * @headers: inner or outer header fields
1241 struct ice_tc_flower_lyr_2_4_hdrs *headers,
1250 headers->l3_key.tos = match->key->tos;
1251 headers->l3_mask.tos = match->mask->tos;
1260 headers->l3_key.ttl = match->key->ttl;
1261 headers->l3_mask.ttl = match->mask->ttl;
1269 * @headers: inner or outer header fields
1275 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap)
1283 headers->l4_key.dst_port = match.key->dst;
1284 headers->l4_mask.dst_port = match.mask->dst;
1292 headers->l4_key.src_port = match.key->src;
1293 headers->l4_mask.src_port = match.mask->src;
1354 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers;
1358 headers->l3_key.ip_proto = IPPROTO_UDP;
1379 if (ice_tc_set_ipv4(&match, fltr, headers, true))
1386 if (ice_tc_set_ipv6(&match, fltr, headers, true))
1394 ice_tc_set_tos_ttl(&match, fltr, headers, true);
1404 if (ice_tc_set_port(match, fltr, headers, true))
1441 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers;
1484 /* header pointers should point to the inner headers, outer
1487 headers = &fltr->inner_headers;
1519 headers->l2_key.n_proto = cpu_to_be16(n_proto_key);
1520 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask);
1521 headers->l3_key.ip_proto = match.key->ip_proto;
1530 ether_addr_copy(headers->l2_key.dst_mac,
1532 ether_addr_copy(headers->l2_mask.dst_mac,
1538 ether_addr_copy(headers->l2_key.src_mac,
1540 ether_addr_copy(headers->l2_mask.src_mac,
1566 headers->vlan_hdr.vlan_id =
1577 headers->vlan_hdr.vlan_prio =
1583 headers->vlan_hdr.vlan_tpid = match.key->vlan_tpid;
1601 headers->cvlan_hdr.vlan_id =
1613 headers->cvlan_hdr.vlan_prio =
1623 n_proto_key = ice_tc_set_pppoe(&match, fltr, headers);
1630 headers->l2_key.n_proto = cpu_to_be16(n_proto_key);
1631 headers->l2_mask.n_proto = cpu_to_be16(0xFFFF);
1647 if (ice_tc_set_ipv4(&match, fltr, headers, false))
1655 if (ice_tc_set_ipv6(&match, fltr, headers, false))
1663 ice_tc_set_tos_ttl(&match, fltr, headers, false);
1672 headers->l2tpv3_hdr.session_id = match.key->session_id;
1679 if (ice_tc_set_port(match, fltr, headers, false))
1681 switch (headers->l3_key.ip_proto) {
1713 * ice_prep_adq_filter - Prepare ADQ filter with the required additional headers