Lines Matching defs:rule

783 				      struct ethtool_rx_flow_spec *rule)
785 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
786 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
787 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
788 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
789 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
790 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
791 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
792 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
793 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
794 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
799 rule->location, &spec);
804 rule->ring_cookie = RX_CLS_FLOW_DISC;
806 rule->ring_cookie = spec.dmaq_id;
817 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
844 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
868 rule->flow_type = ETHER_FLOW;
892 rule->flow_type = IPV4_USER_FLOW;
912 rule->flow_type = IPV6_USER_FLOW;
934 rule->flow_type |= FLOW_EXT;
935 rule->h_ext.vlan_tci = spec.outer_vid;
936 rule->m_ext.vlan_tci = htons(0xfff);
1019 struct ethtool_rx_flow_spec *rule)
1021 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
1022 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
1023 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
1024 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
1025 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
1026 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
1027 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
1028 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
1029 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
1030 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
1035 if (rule->location != RX_CLS_LOC_ANY)
1039 if (rule->ring_cookie >= efx->n_rx_channels &&
1040 rule->ring_cookie != RX_CLS_FLOW_DISC)
1044 if ((rule->flow_type & FLOW_EXT) &&
1045 (rule->m_ext.vlan_etype || rule->m_ext.data[0] ||
1046 rule->m_ext.data[1]))
1051 (rule->ring_cookie == RX_CLS_FLOW_DISC) ?
1052 EF4_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie);
1054 switch (rule->flow_type & ~FLOW_EXT) {
1060 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ?
1095 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V6_FLOW ?
1205 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) {
1206 if (rule->m_ext.vlan_tci != htons(0xfff))
1209 spec.outer_vid = rule->h_ext.vlan_tci;
1216 rule->location = rc;