Lines Matching refs:headers

377 	struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers;  in ice_tc_fill_rules()  local
398 headers = &tc_fltr->inner_headers; in ice_tc_fill_rules()
405 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
406 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules()
414 l2_key = &headers->l2_key; in ice_tc_fill_rules()
415 l2_mask = &headers->l2_mask; in ice_tc_fill_rules()
441 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules()
453 headers->vlan_hdr.vlan_prio; in ice_tc_fill_rules()
460 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid); in ice_tc_fill_rules()
471 list[i].h_u.vlan_hdr.vlan = headers->cvlan_hdr.vlan_id; in ice_tc_fill_rules()
483 headers->cvlan_hdr.vlan_prio; in ice_tc_fill_rules()
499 vals->session_id = headers->pppoe_hdr.session_id; in ice_tc_fill_rules()
504 vals->ppp_prot_id = headers->pppoe_hdr.ppp_proto; in ice_tc_fill_rules()
517 l3_key = &headers->l3_key; in ice_tc_fill_rules()
518 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
536 l3_key = &headers->l3_key; in ice_tc_fill_rules()
537 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
554 if (headers->l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_rules()
559 list[i].h_u.ipv4_hdr.tos = headers->l3_key.tos; in ice_tc_fill_rules()
560 list[i].m_u.ipv4_hdr.tos = headers->l3_mask.tos; in ice_tc_fill_rules()
565 headers->l3_key.ttl; in ice_tc_fill_rules()
567 headers->l3_mask.ttl; in ice_tc_fill_rules()
573 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_rules()
583 headers->l3_key.tos, in ice_tc_fill_rules()
586 headers->l3_mask.tos, in ice_tc_fill_rules()
591 hdr_h->hop_limit = headers->l3_key.ttl; in ice_tc_fill_rules()
592 hdr_m->hop_limit = headers->l3_mask.ttl; in ice_tc_fill_rules()
602 headers->l2tpv3_hdr.session_id; in ice_tc_fill_rules()
614 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto); in ice_tc_fill_rules()
615 l4_key = &headers->l4_key; in ice_tc_fill_rules()
616 l4_mask = &headers->l4_mask; in ice_tc_fill_rules()
1299 struct ice_tc_flower_lyr_2_4_hdrs *headers) in ice_tc_set_pppoe() argument
1303 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe()
1308 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe()
1324 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv4() argument
1331 headers->l3_key.dst_ipv4 = match->key->dst; in ice_tc_set_ipv4()
1332 headers->l3_mask.dst_ipv4 = match->mask->dst; in ice_tc_set_ipv4()
1339 headers->l3_key.src_ipv4 = match->key->src; in ice_tc_set_ipv4()
1340 headers->l3_mask.src_ipv4 = match->mask->src; in ice_tc_set_ipv4()
1355 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv6() argument
1386 l3_key = &headers->l3_key; in ice_tc_set_ipv6()
1387 l3_mask = &headers->l3_mask; in ice_tc_set_ipv6()
1417 struct ice_tc_flower_lyr_2_4_hdrs *headers, in ice_tc_set_tos_ttl() argument
1426 headers->l3_key.tos = match->key->tos; in ice_tc_set_tos_ttl()
1427 headers->l3_mask.tos = match->mask->tos; in ice_tc_set_tos_ttl()
1436 headers->l3_key.ttl = match->key->ttl; in ice_tc_set_tos_ttl()
1437 headers->l3_mask.ttl = match->mask->ttl; in ice_tc_set_tos_ttl()
1451 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_port() argument
1459 headers->l4_key.dst_port = match.key->dst; in ice_tc_set_port()
1460 headers->l4_mask.dst_port = match.mask->dst; in ice_tc_set_port()
1468 headers->l4_key.src_port = match.key->src; in ice_tc_set_port()
1469 headers->l4_mask.src_port = match.mask->src; in ice_tc_set_port()
1530 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_tunnel_attr() local
1535 headers->l3_key.ip_proto = IPPROTO_UDP; in ice_parse_tunnel_attr()
1559 if (ice_tc_set_ipv4(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1566 if (ice_tc_set_ipv6(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1574 ice_tc_set_tos_ttl(&match, fltr, headers, true); in ice_parse_tunnel_attr()
1584 if (ice_tc_set_port(match, fltr, headers, true)) in ice_parse_tunnel_attr()
1641 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_cls_flower() local
1690 headers = &fltr->inner_headers; in ice_parse_cls_flower()
1737 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1738 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask); in ice_parse_cls_flower()
1739 headers->l3_key.ip_proto = match.key->ip_proto; in ice_parse_cls_flower()
1748 ether_addr_copy(headers->l2_key.dst_mac, in ice_parse_cls_flower()
1750 ether_addr_copy(headers->l2_mask.dst_mac, in ice_parse_cls_flower()
1756 ether_addr_copy(headers->l2_key.src_mac, in ice_parse_cls_flower()
1758 ether_addr_copy(headers->l2_mask.src_mac, in ice_parse_cls_flower()
1784 headers->vlan_hdr.vlan_id = in ice_parse_cls_flower()
1795 headers->vlan_hdr.vlan_prio = in ice_parse_cls_flower()
1801 headers->vlan_hdr.vlan_tpid = match.key->vlan_tpid; in ice_parse_cls_flower()
1819 headers->cvlan_hdr.vlan_id = in ice_parse_cls_flower()
1831 headers->cvlan_hdr.vlan_prio = in ice_parse_cls_flower()
1841 n_proto_key = ice_tc_set_pppoe(&match, fltr, headers); in ice_parse_cls_flower()
1848 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1849 headers->l2_mask.n_proto = cpu_to_be16(0xFFFF); in ice_parse_cls_flower()
1869 if (ice_tc_set_ipv4(&match, fltr, headers, false)) in ice_parse_cls_flower()
1877 if (ice_tc_set_ipv6(&match, fltr, headers, false)) in ice_parse_cls_flower()
1885 ice_tc_set_tos_ttl(&match, fltr, headers, false); in ice_parse_cls_flower()
1894 headers->l2tpv3_hdr.session_id = match.key->session_id; in ice_parse_cls_flower()
1901 if (ice_tc_set_port(match, fltr, headers, false)) in ice_parse_cls_flower()
1903 switch (headers->l3_key.ip_proto) { in ice_parse_cls_flower()