Lines Matching defs:rule
644 struct ethtool_rx_flow_spec *rule,
647 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
648 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
649 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
650 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
651 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
652 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
653 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
654 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
655 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
656 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
661 rule->location, &spec);
666 rule->ring_cookie = RX_CLS_FLOW_DISC;
668 rule->ring_cookie = spec.dmaq_id;
679 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
706 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
730 rule->flow_type = ETHER_FLOW;
754 rule->flow_type = IPV4_USER_FLOW;
774 rule->flow_type = IPV6_USER_FLOW;
796 rule->flow_type |= FLOW_EXT;
797 rule->h_ext.vlan_tci = spec.outer_vid;
798 rule->m_ext.vlan_tci = htons(0xfff);
802 rule->flow_type |= FLOW_RSS;
916 struct ethtool_rx_flow_spec *rule,
919 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
920 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
921 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
922 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec;
923 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
924 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec;
925 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
926 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec;
927 u32 flow_type = rule->flow_type & ~(FLOW_EXT | FLOW_RSS);
928 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
929 struct ethhdr *mac_mask = &rule->m_u.ether_spec;
935 if (rule->location != RX_CLS_LOC_ANY)
939 if (rule->ring_cookie >= efx->n_rx_channels &&
940 rule->ring_cookie != RX_CLS_FLOW_DISC)
944 if ((rule->flow_type & FLOW_EXT) &&
945 (rule->m_ext.vlan_etype || rule->m_ext.data[0] ||
946 rule->m_ext.data[1]))
951 if (rule->flow_type & FLOW_RSS)
955 (rule->ring_cookie == RX_CLS_FLOW_DISC) ?
956 EFX_FILTER_RX_DMAQ_ID_DROP : rule->ring_cookie);
958 if (rule->flow_type & FLOW_RSS)
1112 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) {
1113 if (rule->m_ext.vlan_tci != htons(0xfff))
1116 spec.outer_vid = rule->h_ext.vlan_tci;
1123 rule->location = rc;