Lines Matching refs:headers

19 ice_tc_count_lkups(u32 flags, struct ice_tc_flower_lyr_2_4_hdrs *headers,  in ice_tc_count_lkups()  argument
346 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers; in ice_tc_fill_rules() local
357 headers = &tc_fltr->inner_headers; in ice_tc_fill_rules()
363 list[i].h_u.ethertype.ethtype_id = headers->l2_key.n_proto; in ice_tc_fill_rules()
364 list[i].m_u.ethertype.ethtype_id = headers->l2_mask.n_proto; in ice_tc_fill_rules()
372 l2_key = &headers->l2_key; in ice_tc_fill_rules()
373 l2_mask = &headers->l2_mask; in ice_tc_fill_rules()
393 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid); in ice_tc_fill_rules()
403 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules()
415 headers->vlan_hdr.vlan_prio; in ice_tc_fill_rules()
425 list[i].h_u.vlan_hdr.vlan = headers->cvlan_hdr.vlan_id; in ice_tc_fill_rules()
437 headers->cvlan_hdr.vlan_prio; in ice_tc_fill_rules()
453 vals->session_id = headers->pppoe_hdr.session_id; in ice_tc_fill_rules()
458 vals->ppp_prot_id = headers->pppoe_hdr.ppp_proto; in ice_tc_fill_rules()
471 l3_key = &headers->l3_key; in ice_tc_fill_rules()
472 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
490 l3_key = &headers->l3_key; in ice_tc_fill_rules()
491 l3_mask = &headers->l3_mask; in ice_tc_fill_rules()
508 if (headers->l2_key.n_proto == htons(ETH_P_IP) && in ice_tc_fill_rules()
513 list[i].h_u.ipv4_hdr.tos = headers->l3_key.tos; in ice_tc_fill_rules()
514 list[i].m_u.ipv4_hdr.tos = headers->l3_mask.tos; in ice_tc_fill_rules()
519 headers->l3_key.ttl; in ice_tc_fill_rules()
521 headers->l3_mask.ttl; in ice_tc_fill_rules()
527 if (headers->l2_key.n_proto == htons(ETH_P_IPV6) && in ice_tc_fill_rules()
537 headers->l3_key.tos, in ice_tc_fill_rules()
540 headers->l3_mask.tos, in ice_tc_fill_rules()
545 hdr_h->hop_limit = headers->l3_key.ttl; in ice_tc_fill_rules()
546 hdr_m->hop_limit = headers->l3_mask.ttl; in ice_tc_fill_rules()
556 headers->l2tpv3_hdr.session_id; in ice_tc_fill_rules()
568 list[i].type = ice_proto_type_from_l4_port(headers->l3_key.ip_proto); in ice_tc_fill_rules()
569 l4_key = &headers->l4_key; in ice_tc_fill_rules()
570 l4_mask = &headers->l4_mask; in ice_tc_fill_rules()
656 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_eswitch_add_tc_fltr() local
671 lkups_cnt = ice_tc_count_lkups(flags, headers, fltr); in ice_eswitch_add_tc_fltr()
746 struct ice_tc_flower_lyr_2_4_hdrs *headers = &tc_fltr->outer_headers; in ice_add_tc_flower_adv_fltr() local
781 lkups_cnt = ice_tc_count_lkups(flags, headers, tc_fltr); in ice_add_tc_flower_adv_fltr()
873 struct ice_tc_flower_lyr_2_4_hdrs *headers) in ice_tc_set_pppoe() argument
877 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe()
882 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe()
898 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv4() argument
905 headers->l3_key.dst_ipv4 = match->key->dst; in ice_tc_set_ipv4()
906 headers->l3_mask.dst_ipv4 = match->mask->dst; in ice_tc_set_ipv4()
913 headers->l3_key.src_ipv4 = match->key->src; in ice_tc_set_ipv4()
914 headers->l3_mask.src_ipv4 = match->mask->src; in ice_tc_set_ipv4()
929 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_ipv6() argument
960 l3_key = &headers->l3_key; in ice_tc_set_ipv6()
961 l3_mask = &headers->l3_mask; in ice_tc_set_ipv6()
991 struct ice_tc_flower_lyr_2_4_hdrs *headers, in ice_tc_set_tos_ttl() argument
1000 headers->l3_key.tos = match->key->tos; in ice_tc_set_tos_ttl()
1001 headers->l3_mask.tos = match->mask->tos; in ice_tc_set_tos_ttl()
1010 headers->l3_key.ttl = match->key->ttl; in ice_tc_set_tos_ttl()
1011 headers->l3_mask.ttl = match->mask->ttl; in ice_tc_set_tos_ttl()
1025 struct ice_tc_flower_lyr_2_4_hdrs *headers, bool is_encap) in ice_tc_set_port() argument
1033 headers->l4_key.dst_port = match.key->dst; in ice_tc_set_port()
1034 headers->l4_mask.dst_port = match.mask->dst; in ice_tc_set_port()
1042 headers->l4_key.src_port = match.key->src; in ice_tc_set_port()
1043 headers->l4_mask.src_port = match.mask->src; in ice_tc_set_port()
1104 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_tunnel_attr() local
1108 headers->l3_key.ip_proto = IPPROTO_UDP; in ice_parse_tunnel_attr()
1129 if (ice_tc_set_ipv4(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1136 if (ice_tc_set_ipv6(&match, fltr, headers, true)) in ice_parse_tunnel_attr()
1144 ice_tc_set_tos_ttl(&match, fltr, headers, true); in ice_parse_tunnel_attr()
1154 if (ice_tc_set_port(match, fltr, headers, true)) in ice_parse_tunnel_attr()
1191 struct ice_tc_flower_lyr_2_4_hdrs *headers = &fltr->outer_headers; in ice_parse_cls_flower() local
1237 headers = &fltr->inner_headers; in ice_parse_cls_flower()
1266 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1267 headers->l2_mask.n_proto = cpu_to_be16(n_proto_mask); in ice_parse_cls_flower()
1268 headers->l3_key.ip_proto = match.key->ip_proto; in ice_parse_cls_flower()
1277 ether_addr_copy(headers->l2_key.dst_mac, in ice_parse_cls_flower()
1279 ether_addr_copy(headers->l2_mask.dst_mac, in ice_parse_cls_flower()
1285 ether_addr_copy(headers->l2_key.src_mac, in ice_parse_cls_flower()
1287 ether_addr_copy(headers->l2_mask.src_mac, in ice_parse_cls_flower()
1313 headers->vlan_hdr.vlan_id = in ice_parse_cls_flower()
1324 headers->vlan_hdr.vlan_prio = in ice_parse_cls_flower()
1330 headers->vlan_hdr.vlan_tpid = match.key->vlan_tpid; in ice_parse_cls_flower()
1346 headers->cvlan_hdr.vlan_id = in ice_parse_cls_flower()
1358 headers->cvlan_hdr.vlan_prio = in ice_parse_cls_flower()
1368 n_proto_key = ice_tc_set_pppoe(&match, fltr, headers); in ice_parse_cls_flower()
1375 headers->l2_key.n_proto = cpu_to_be16(n_proto_key); in ice_parse_cls_flower()
1376 headers->l2_mask.n_proto = cpu_to_be16(0xFFFF); in ice_parse_cls_flower()
1392 if (ice_tc_set_ipv4(&match, fltr, headers, false)) in ice_parse_cls_flower()
1400 if (ice_tc_set_ipv6(&match, fltr, headers, false)) in ice_parse_cls_flower()
1408 ice_tc_set_tos_ttl(&match, fltr, headers, false); in ice_parse_cls_flower()
1417 headers->l2tpv3_hdr.session_id = match.key->session_id; in ice_parse_cls_flower()
1424 if (ice_tc_set_port(match, fltr, headers, false)) in ice_parse_cls_flower()
1426 switch (headers->l3_key.ip_proto) { in ice_parse_cls_flower()