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
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; in ice_tc_fill_rules() local
399 /* PFCP is considered non-tunneled - don't swap headers. */ in ice_tc_fill_rules()
401 headers = &tc_fltr->inner_headers; in ice_tc_fill_rules()
408 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
409 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules()
417 l2_key = &headers->l2_key; in ice_tc_fill_rules()
418 l2_mask = &headers->l2_mask; in ice_tc_fill_rules()
444 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules()
456 headers->vlan_hdr.vlan_prio; in ice_tc_fill_rules()
463 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid); in ice_tc_fill_rules()
474 list[i].h_u.vlan_hdr.vlan = headers->cvlan_hdr.vlan_id; in ice_tc_fill_rules()
486 headers->cvlan_hdr.vlan_prio; in ice_tc_fill_rules()
502 vals->session_id = headers->pppoe_hdr.session_id; in ice_tc_fill_rules()
507 vals->ppp_prot_id = headers->pppoe_hdr.ppp_proto; in ice_tc_fill_rules()
520 l3_key = &headers->l3_key; in ice_tc_fill_rules()
521 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
539 l3_key = &headers->l3_key; in ice_tc_fill_rules()
540 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
557 if (headers->l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_rules()
562 list[i].h_u.ipv4_hdr.tos = headers->l3_key.tos; in ice_tc_fill_rules()
563 list[i].m_u.ipv4_hdr.tos = headers->l3_mask.tos; in ice_tc_fill_rules()
568 headers->l3_key.ttl; in ice_tc_fill_rules()
570 headers->l3_mask.ttl; in ice_tc_fill_rules()
576 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_rules()
586 headers->l3_key.tos, in ice_tc_fill_rules()
589 headers->l3_mask.tos, in ice_tc_fill_rules()
594 hdr_h->hop_limit = headers->l3_key.ttl; in ice_tc_fill_rules()
595 hdr_m->hop_limit = headers->l3_mask.ttl; in ice_tc_fill_rules()
605 headers->l2tpv3_hdr.session_id; in ice_tc_fill_rules()
617 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto); in ice_tc_fill_rules()
618 l4_key = &headers->l4_key; in ice_tc_fill_rules()
619 l4_mask = &headers->l4_mask; in ice_tc_fill_rules()
773 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_eswitch_add_tc_fltr() local
788 lkups_cnt = ice_tc_count_lkups(flags, headers, fltr); in ice_eswitch_add_tc_fltr()
988 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers; in ice_add_tc_flower_adv_fltr() local
1024 lkups_cnt = ice_tc_count_lkups(flags, headers, tc_fltr); in ice_add_tc_flower_adv_fltr()
1129 * @headers: Pointer to outer header fields
1135 struct ice_tc_flower_lyr_2_4_hdrs *headers) in ice_tc_set_pppoe() argument
1139 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe()
1144 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe()
1154 * @headers: inner or outer header fields
1160 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv4() argument
1167 headers->l3_key.dst_ipv4 = match->key->dst; in ice_tc_set_ipv4()
1168 headers->l3_mask.dst_ipv4 = match->mask->dst; in ice_tc_set_ipv4()
1175 headers->l3_key.src_ipv4 = match->key->src; in ice_tc_set_ipv4()
1176 headers->l3_mask.src_ipv4 = match->mask->src; in ice_tc_set_ipv4()
1185 * @headers: inner or outer header fields
1191 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv6() argument
1222 l3_key = &headers->l3_key; in ice_tc_set_ipv6()
1223 l3_mask = &headers->l3_mask; in ice_tc_set_ipv6()
1247 * @headers: inner or outer header fields
1253 struct ice_tc_flower_lyr_2_4_hdrs *headers, in ice_tc_set_tos_ttl() argument
1262 headers->l3_key.tos = match->key->tos; in ice_tc_set_tos_ttl()
1263 headers->l3_mask.tos = match->mask->tos; in ice_tc_set_tos_ttl()
1272 headers->l3_key.ttl = match->key->ttl; in ice_tc_set_tos_ttl()
1273 headers->l3_mask.ttl = match->mask->ttl; in ice_tc_set_tos_ttl()
1281 * @headers: inner or outer header fields
1287 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_port() argument
1295 headers->l4_key.dst_port = match.key->dst; in ice_tc_set_port()
1296 headers->l4_mask.dst_port = match.mask->dst; in ice_tc_set_port()
1304 headers->l4_key.src_port = match.key->src; in ice_tc_set_port()
1305 headers->l4_mask.src_port = match.mask->src; in ice_tc_set_port()
1366 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_tunnel_attr() local
1371 headers->l3_key.ip_proto = IPPROTO_UDP; in ice_parse_tunnel_attr()
1395 if (ice_tc_set_ipv4(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1402 if (ice_tc_set_ipv6(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1410 ice_tc_set_tos_ttl(&match, fltr, headers, true); in ice_parse_tunnel_attr()
1420 if (ice_tc_set_port(match, fltr, headers, true)) in ice_parse_tunnel_attr()
1472 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_cls_flower() local
1515 /* PFCP is considered non-tunneled - don't swap headers. */ in ice_parse_cls_flower()
1517 /* Header pointers should point to the inner headers, in ice_parse_cls_flower()
1521 headers = &fltr->inner_headers; in ice_parse_cls_flower()
1554 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1555 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask); in ice_parse_cls_flower()
1556 headers->l3_key.ip_proto = match.key->ip_proto; in ice_parse_cls_flower()
1565 ether_addr_copy(headers->l2_key.dst_mac, in ice_parse_cls_flower()
1567 ether_addr_copy(headers->l2_mask.dst_mac, in ice_parse_cls_flower()
1573 ether_addr_copy(headers->l2_key.src_mac, in ice_parse_cls_flower()
1575 ether_addr_copy(headers->l2_mask.src_mac, in ice_parse_cls_flower()
1601 headers->vlan_hdr.vlan_id = in ice_parse_cls_flower()
1612 headers->vlan_hdr.vlan_prio = in ice_parse_cls_flower()
1618 headers->vlan_hdr.vlan_tpid = match.key->vlan_tpid; in ice_parse_cls_flower()
1636 headers->cvlan_hdr.vlan_id = in ice_parse_cls_flower()
1648 headers->cvlan_hdr.vlan_prio = in ice_parse_cls_flower()
1658 n_proto_key = ice_tc_set_pppoe(&match, fltr, headers); in ice_parse_cls_flower()
1665 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1666 headers->l2_mask.n_proto = cpu_to_be16(0xFFFF); in ice_parse_cls_flower()
1686 if (ice_tc_set_ipv4(&match, fltr, headers, false)) in ice_parse_cls_flower()
1694 if (ice_tc_set_ipv6(&match, fltr, headers, false)) in ice_parse_cls_flower()
1702 ice_tc_set_tos_ttl(&match, fltr, headers, false); in ice_parse_cls_flower()
1711 headers->l2tpv3_hdr.session_id = match.key->session_id; in ice_parse_cls_flower()
1718 if (ice_tc_set_port(match, fltr, headers, false)) in ice_parse_cls_flower()
1720 switch (headers->l3_key.ip_proto) { in ice_parse_cls_flower()
1752 * ice_prep_adq_filter - Prepare ADQ filter with the required additional headers