Lines Matching refs:rule

2338 	struct ixgbe_fdir_filter *rule = NULL;  in ixgbe_get_ethtool_fdir_entry()  local
2343 hlist_for_each_entry_safe(rule, node2, in ixgbe_get_ethtool_fdir_entry()
2345 if (fsp->location <= rule->sw_idx) in ixgbe_get_ethtool_fdir_entry()
2349 if (!rule || fsp->location != rule->sw_idx) in ixgbe_get_ethtool_fdir_entry()
2355 switch (rule->filter.formatted.flow_type) { in ixgbe_get_ethtool_fdir_entry()
2375 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2377 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2379 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2381 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2383 fsp->h_ext.vlan_tci = rule->filter.formatted.vlan_id; in ixgbe_get_ethtool_fdir_entry()
2385 fsp->h_ext.vlan_etype = rule->filter.formatted.flex_bytes; in ixgbe_get_ethtool_fdir_entry()
2387 fsp->h_ext.data[1] = htonl(rule->filter.formatted.vm_pool); in ixgbe_get_ethtool_fdir_entry()
2392 if (rule->action == IXGBE_FDIR_DROP_QUEUE) in ixgbe_get_ethtool_fdir_entry()
2395 fsp->ring_cookie = rule->action; in ixgbe_get_ethtool_fdir_entry()
2405 struct ixgbe_fdir_filter *rule; in ixgbe_get_ethtool_fdir_all() local
2411 hlist_for_each_entry_safe(rule, node2, in ixgbe_get_ethtool_fdir_all()
2415 rule_locs[cnt] = rule->sw_idx; in ixgbe_get_ethtool_fdir_all()
2503 struct ixgbe_fdir_filter *rule, *parent; in ixgbe_update_ethtool_fdir_entry() local
2507 rule = NULL; in ixgbe_update_ethtool_fdir_entry()
2509 hlist_for_each_entry_safe(rule, node2, in ixgbe_update_ethtool_fdir_entry()
2512 if (rule->sw_idx >= sw_idx) in ixgbe_update_ethtool_fdir_entry()
2514 parent = rule; in ixgbe_update_ethtool_fdir_entry()
2518 if (rule && (rule->sw_idx == sw_idx)) { in ixgbe_update_ethtool_fdir_entry()
2519 if (!input || (rule->filter.formatted.bkt_hash != in ixgbe_update_ethtool_fdir_entry()
2522 &rule->filter, in ixgbe_update_ethtool_fdir_entry()
2526 hlist_del(&rule->fdir_node); in ixgbe_update_ethtool_fdir_entry()
2527 kfree(rule); in ixgbe_update_ethtool_fdir_entry()