Lines Matching refs:rule

793 				      struct ethtool_rx_flow_spec *rule)
795 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
796 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
797 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
798 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
799 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
800 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
801 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
802 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
803 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
804 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
809 rule->location, &spec);
814 rule->ring_cookie = RX_CLS_FLOW_DISC;
816 rule->ring_cookie = spec.dmaq_id;
827 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
854 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
878 rule->flow_type = ETHER_FLOW;
902 rule->flow_type = IPV4_USER_FLOW;
922 rule->flow_type = IPV6_USER_FLOW;
944 rule->flow_type |= FLOW_EXT;
945 rule->h_ext.vlan_tci = spec.outer_vid;
946 rule->m_ext.vlan_tci = htons(0xfff);
1029 struct ethtool_rx_flow_spec *rule)
1031 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
1032 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
1033 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
1034 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
1035 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
1036 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
1037 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
1038 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
1039 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
1040 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
1045 if (rule->location != RX_CLS_LOC_ANY)
1049 if (rule->ring_cookie >= efx->n_rx_channels &&
1050 rule->ring_cookie != RX_CLS_FLOW_DISC)
1054 if ((rule->flow_type & FLOW_EXT) &&
1055 (rule->m_ext.vlan_etype || rule->m_ext.data[0] ||
1056 rule->m_ext.data[1]))
1061 (rule->ring_cookie == RX_CLS_FLOW_DISC) ?
1062 EF4_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie);
1064 switch (rule->flow_type & ~FLOW_EXT) {
1070 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ?
1105 spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V6_FLOW ?
1215 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) {
1216 if (rule->m_ext.vlan_tci != htons(0xfff))
1219 spec.outer_vid = rule->h_ext.vlan_tci;
1226 rule->location = rc;