Lines Matching refs:rule

2440 	struct igb_nfc_filter *rule = NULL;
2442 /* report total rule count */
2445 hlist_for_each_entry(rule, &adapter->nfc_filter_list, nfc_node) {
2446 if (fsp->location <= rule->sw_idx)
2450 if (!rule || fsp->location != rule->sw_idx)
2453 if (rule->filter.match_flags) {
2455 fsp->ring_cookie = rule->action;
2456 if (rule->filter.match_flags & IGB_FILTER_FLAG_ETHER_TYPE) {
2457 fsp->h_u.ether_spec.h_proto = rule->filter.etype;
2460 if (rule->filter.match_flags & IGB_FILTER_FLAG_VLAN_TCI) {
2462 fsp->h_ext.vlan_tci = rule->filter.vlan_tci;
2465 if (rule->filter.match_flags & IGB_FILTER_FLAG_DST_MAC_ADDR) {
2467 rule->filter.dst_addr);
2473 if (rule->filter.match_flags & IGB_FILTER_FLAG_SRC_MAC_ADDR) {
2475 rule->filter.src_addr);
2491 struct igb_nfc_filter *rule;
2494 /* report total rule count */
2497 hlist_for_each_entry(rule, &adapter->nfc_filter_list, nfc_node) {
2500 rule_locs[cnt] = rule->sw_idx;
2853 struct igb_nfc_filter *rule, *parent;
2857 rule = NULL;
2859 hlist_for_each_entry(rule, &adapter->nfc_filter_list, nfc_node) {
2861 if (rule->sw_idx >= sw_idx)
2863 parent = rule;
2866 /* if there is an old rule occupying our place remove it */
2867 if (rule && (rule->sw_idx == sw_idx)) {
2869 err = igb_erase_filter(adapter, rule);
2871 hlist_del(&rule->nfc_node);
2872 kfree(rule);
2876 /* If no input this was a delete, err should be 0 if a rule was
2903 struct igb_nfc_filter *input, *rule;
2964 hlist_for_each_entry(rule, &adapter->nfc_filter_list, nfc_node) {
2965 if (!memcmp(&input->filter, &rule->filter,