Lines Matching refs:rule

645 				      struct ethtool_rx_flow_spec *rule,
648 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
650 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
651 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
652 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
653 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
654 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
655 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
656 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
657 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
662 rule->location, &spec);
667 rule->ring_cookie = RX_CLS_FLOW_DISC;
669 rule->ring_cookie = spec.dmaq_id;
680 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
707 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
731 rule->flow_type = ETHER_FLOW;
755 rule->flow_type = IPV4_USER_FLOW;
775 rule->flow_type = IPV6_USER_FLOW;
797 rule->flow_type |= FLOW_EXT;
798 rule->h_ext.vlan_tci = spec.outer_vid;
799 rule->m_ext.vlan_tci = htons(0xfff);
803 rule->flow_type |= FLOW_RSS;
918 struct ethtool_rx_flow_spec *rule,
921 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
922 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
923 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
924 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
925 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
926 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
927 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
928 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
929 u32 flow_type = rule->flow_type & ~(FLOW_EXT | FLOW_RSS);
930 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
931 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
937 if (rule->location != RX_CLS_LOC_ANY)
941 if (rule->ring_cookie >= efx->n_rx_channels &&
942 rule->ring_cookie != RX_CLS_FLOW_DISC)
946 if ((rule->flow_type & FLOW_EXT) &&
947 (rule->m_ext.vlan_etype || rule->m_ext.data[0] ||
948 rule->m_ext.data[1]))
953 if (rule->flow_type & FLOW_RSS)
957 (rule->ring_cookie == RX_CLS_FLOW_DISC) ?
958 EFX_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie);
960 if (rule->flow_type & FLOW_RSS)
1114 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) {
1115 if (rule->m_ext.vlan_tci != htons(0xfff))
1118 spec.outer_vid = rule->h_ext.vlan_tci;
1125 rule->location = rc;