Lines Matching full:basic
45 struct flow_dissector_key_basic basic; member
319 flow_dissector_init_keys(&skb_key.control, &skb_key.basic); in fl_classify()
326 skb_key.basic.n_proto = skb_protocol(skb, false); in fl_classify()
1051 * because ETH_P_PPP_SES was stored in basic.n_proto in fl_set_key_pppoe()
1070 key->basic.n_proto = htons(ETH_P_IP); in fl_set_key_pppoe()
1071 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe()
1073 key->basic.n_proto = htons(ETH_P_IPV6); in fl_set_key_pppoe()
1074 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe()
1076 key->basic.n_proto = htons(ETH_P_MPLS_UC); in fl_set_key_pppoe()
1077 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe()
1079 key->basic.n_proto = htons(ETH_P_MPLS_MC); in fl_set_key_pppoe()
1080 mask->basic.n_proto = cpu_to_be16(~0); in fl_set_key_pppoe()
1083 key->basic.n_proto = 0; in fl_set_key_pppoe()
1084 mask->basic.n_proto = cpu_to_be16(0); in fl_set_key_pppoe()
1645 key->basic.n_proto = *ethertype; in is_vlan_key()
1646 mask->basic.n_proto = cpu_to_be16(~0); in is_vlan_key()
1690 fl_set_key_val(tb, &key->basic.n_proto, in fl_set_key()
1692 &mask->basic.n_proto, in fl_set_key()
1694 sizeof(key->basic.n_proto)); in fl_set_key()
1698 if (key->basic.n_proto == htons(ETH_P_PPP_SES)) in fl_set_key()
1701 if (key->basic.n_proto == htons(ETH_P_IP) || in fl_set_key()
1702 key->basic.n_proto == htons(ETH_P_IPV6)) { in fl_set_key()
1703 fl_set_key_val(tb, &key->basic.ip_proto, TCA_FLOWER_KEY_IP_PROTO, in fl_set_key()
1704 &mask->basic.ip_proto, TCA_FLOWER_UNSPEC, in fl_set_key()
1705 sizeof(key->basic.ip_proto)); in fl_set_key()
1729 if (key->basic.ip_proto == IPPROTO_TCP) { in fl_set_key()
1739 } else if (key->basic.ip_proto == IPPROTO_UDP) { in fl_set_key()
1746 } else if (key->basic.ip_proto == IPPROTO_SCTP) { in fl_set_key()
1753 } else if (key->basic.n_proto == htons(ETH_P_IP) && in fl_set_key()
1754 key->basic.ip_proto == IPPROTO_ICMP) { in fl_set_key()
1763 } else if (key->basic.n_proto == htons(ETH_P_IPV6) && in fl_set_key()
1764 key->basic.ip_proto == IPPROTO_ICMPV6) { in fl_set_key()
1773 } else if (key->basic.n_proto == htons(ETH_P_MPLS_UC) || in fl_set_key()
1774 key->basic.n_proto == htons(ETH_P_MPLS_MC)) { in fl_set_key()
1778 } else if (key->basic.n_proto == htons(ETH_P_ARP) || in fl_set_key()
1779 key->basic.n_proto == htons(ETH_P_RARP)) { in fl_set_key()
1795 } else if (key->basic.ip_proto == IPPROTO_L2TP) { in fl_set_key()
1802 if (key->basic.ip_proto == IPPROTO_TCP || in fl_set_key()
1803 key->basic.ip_proto == IPPROTO_UDP || in fl_set_key()
1804 key->basic.ip_proto == IPPROTO_SCTP) { in fl_set_key()
1931 FL_KEY_SET(keys, cnt, FLOW_DISSECTOR_KEY_BASIC, basic); in fl_init_dissector()
3065 fl_dump_key_val(skb, &key->basic.n_proto, TCA_FLOWER_KEY_ETH_TYPE, in fl_dump_key()
3066 &mask->basic.n_proto, TCA_FLOWER_UNSPEC, in fl_dump_key()
3067 sizeof(key->basic.n_proto))) in fl_dump_key()
3090 if (mask->basic.n_proto) { in fl_dump_key()
3093 key->basic.n_proto)) in fl_dump_key()
3102 if ((key->basic.n_proto == htons(ETH_P_IP) || in fl_dump_key()
3103 key->basic.n_proto == htons(ETH_P_IPV6)) && in fl_dump_key()
3104 (fl_dump_key_val(skb, &key->basic.ip_proto, TCA_FLOWER_KEY_IP_PROTO, in fl_dump_key()
3105 &mask->basic.ip_proto, TCA_FLOWER_UNSPEC, in fl_dump_key()
3106 sizeof(key->basic.ip_proto)) || in fl_dump_key()
3115 if (mask->basic.n_proto && mask->pppoe.ppp_proto) { in fl_dump_key()
3138 if (key->basic.ip_proto == IPPROTO_TCP && in fl_dump_key()
3149 else if (key->basic.ip_proto == IPPROTO_UDP && in fl_dump_key()
3157 else if (key->basic.ip_proto == IPPROTO_SCTP && in fl_dump_key()
3165 else if (key->basic.n_proto == htons(ETH_P_IP) && in fl_dump_key()
3166 key->basic.ip_proto == IPPROTO_ICMP && in fl_dump_key()
3176 else if (key->basic.n_proto == htons(ETH_P_IPV6) && in fl_dump_key()
3177 key->basic.ip_proto == IPPROTO_ICMPV6 && in fl_dump_key()
3187 else if ((key->basic.n_proto == htons(ETH_P_ARP) || in fl_dump_key()
3188 key->basic.n_proto == htons(ETH_P_RARP)) && in fl_dump_key()
3208 else if (key->basic.ip_proto == IPPROTO_L2TP && in fl_dump_key()
3216 if ((key->basic.ip_proto == IPPROTO_TCP || in fl_dump_key()
3217 key->basic.ip_proto == IPPROTO_UDP || in fl_dump_key()
3218 key->basic.ip_proto == IPPROTO_SCTP) && in fl_dump_key()