Lines Matching refs:loc_rule
1432 struct bcmgenet_rxnfc_rule *loc_rule; in bcmgenet_insert_flow() local
1452 list_for_each_entry(loc_rule, &priv->rxnfc_list, list) { in bcmgenet_insert_flow()
1453 cmd->fs.location = loc_rule->fs.location; in bcmgenet_insert_flow()
1454 err = memcmp(&loc_rule->fs, &cmd->fs, in bcmgenet_insert_flow()
1461 loc_rule = &priv->rxnfc_rules[i]; in bcmgenet_insert_flow()
1462 if (loc_rule->state == BCMGENET_RXNFC_STATE_UNUSED) { in bcmgenet_insert_flow()
1472 loc_rule = &priv->rxnfc_rules[cmd->fs.location]; in bcmgenet_insert_flow()
1474 if (loc_rule->state == BCMGENET_RXNFC_STATE_ENABLED) in bcmgenet_insert_flow()
1476 if (loc_rule->state != BCMGENET_RXNFC_STATE_UNUSED) { in bcmgenet_insert_flow()
1477 list_del(&loc_rule->list); in bcmgenet_insert_flow()
1480 loc_rule->state = BCMGENET_RXNFC_STATE_UNUSED; in bcmgenet_insert_flow()
1481 memcpy(&loc_rule->fs, &cmd->fs, in bcmgenet_insert_flow()
1484 bcmgenet_hfb_create_rxnfc_filter(priv, loc_rule); in bcmgenet_insert_flow()
1486 list_add_tail(&loc_rule->list, &priv->rxnfc_list); in bcmgenet_insert_flow()