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,
370 * TC flower headers. This list should be used to add
380 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers;
399 /* PFCP is considered non-tunneled - don't swap headers. */
401 headers = &tc_fltr->inner_headers;
408 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto;
409 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto;
417 l2_key = &headers->l2_key;
418 l2_mask = &headers->l2_mask;
444 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id;
456 headers->vlan_hdr.vlan_prio;
463 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid);
474 list[i].h_u.vlan_hdr.vlan = headers->cvlan_hdr.vlan_id;
486 headers->cvlan_hdr.vlan_prio;
502 vals->session_id = headers->pppoe_hdr.session_id;
507 vals->ppp_prot_id = headers->pppoe_hdr.ppp_proto;
520 l3_key = &headers->l3_key;
521 l3_mask = &headers->l3_mask;
539 l3_key = &headers->l3_key;
540 l3_mask = &headers->l3_mask;
557 if (headers->l2_key.n_proto == htons(ETH_P_IP) &&
562 list[i].h_u.ipv4_hdr.tos = headers->l3_key.tos;
563 list[i].m_u.ipv4_hdr.tos = headers->l3_mask.tos;
568 headers->l3_key.ttl;
570 headers->l3_mask.ttl;
576 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) &&
586 headers->l3_key.tos,
589 headers->l3_mask.tos,
594 hdr_h->hop_limit = headers->l3_key.ttl;
595 hdr_m->hop_limit = headers->l3_mask.ttl;
605 headers->l2tpv3_hdr.session_id;
617 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto);
618 l4_key = &headers->l4_key;
619 l4_mask = &headers->l4_mask;
773 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers;
788 lkups_cnt = ice_tc_count_lkups(flags, headers, fltr);
977 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers;
1013 lkups_cnt = ice_tc_count_lkups(flags, headers, tc_fltr);
1118 * @headers: Pointer to outer header fields
1124 struct ice_tc_flower_lyr_2_4_hdrs *headers)
1128 headers->pppoe_hdr.session_id = match->key->session_id;
1133 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto;
1143 * @headers: inner or outer header fields
1149 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap)
1156 headers->l3_key.dst_ipv4 = match->key->dst;
1157 headers->l3_mask.dst_ipv4 = match->mask->dst;
1164 headers->l3_key.src_ipv4 = match->key->src;
1165 headers->l3_mask.src_ipv4 = match->mask->src;
1174 * @headers: inner or outer header fields
1180 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap)
1211 l3_key = &headers->l3_key;
1212 l3_mask = &headers->l3_mask;
1236 * @headers: inner or outer header fields
1242 struct ice_tc_flower_lyr_2_4_hdrs *headers,
1251 headers->l3_key.tos = match->key->tos;
1252 headers->l3_mask.tos = match->mask->tos;
1261 headers->l3_key.ttl = match->key->ttl;
1262 headers->l3_mask.ttl = match->mask->ttl;
1270 * @headers: inner or outer header fields
1276 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap)
1284 headers->l4_key.dst_port = match.key->dst;
1285 headers->l4_mask.dst_port = match.mask->dst;
1293 headers->l4_key.src_port = match.key->src;
1294 headers->l4_mask.src_port = match.mask->src;
1355 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers;
1359 headers->l3_key.ip_proto = IPPROTO_UDP;
1380 if (ice_tc_set_ipv4(&match, fltr, headers, true))
1387 if (ice_tc_set_ipv6(&match, fltr, headers, true))
1395 ice_tc_set_tos_ttl(&match, fltr, headers, true);
1405 if (ice_tc_set_port(match, fltr, headers, true))
1457 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers;
1500 /* PFCP is considered non-tunneled - don't swap headers. */
1502 /* Header pointers should point to the inner headers,
1506 headers = &fltr->inner_headers;
1539 headers->l2_key.n_proto = cpu_to_be16(n_proto_key);
1540 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask);
1541 headers->l3_key.ip_proto = match.key->ip_proto;
1550 ether_addr_copy(headers->l2_key.dst_mac,
1552 ether_addr_copy(headers->l2_mask.dst_mac,
1558 ether_addr_copy(headers->l2_key.src_mac,
1560 ether_addr_copy(headers->l2_mask.src_mac,
1586 headers->vlan_hdr.vlan_id =
1597 headers->vlan_hdr.vlan_prio =
1603 headers->vlan_hdr.vlan_tpid = match.key->vlan_tpid;
1621 headers->cvlan_hdr.vlan_id =
1633 headers->cvlan_hdr.vlan_prio =
1643 n_proto_key = ice_tc_set_pppoe(&match, fltr, headers);
1650 headers->l2_key.n_proto = cpu_to_be16(n_proto_key);
1651 headers->l2_mask.n_proto = cpu_to_be16(0xFFFF);
1671 if (ice_tc_set_ipv4(&match, fltr, headers, false))
1679 if (ice_tc_set_ipv6(&match, fltr, headers, false))
1687 ice_tc_set_tos_ttl(&match, fltr, headers, false);
1696 headers->l2tpv3_hdr.session_id = match.key->session_id;
1703 if (ice_tc_set_port(match, fltr, headers, false))
1705 switch (headers->l3_key.ip_proto) {
1737 * ice_prep_adq_filter - Prepare ADQ filter with the required additional headers