Lines Matching refs:efs
1339 struct mvpp2_ethtool_fs *efs; in mvpp2_ethtool_cls_rule_get() local
1344 efs = port->rfs_rules[rxnfc->fs.location]; in mvpp2_ethtool_cls_rule_get()
1345 if (!efs) in mvpp2_ethtool_cls_rule_get()
1348 memcpy(rxnfc, &efs->rxnfc, sizeof(efs->rxnfc)); in mvpp2_ethtool_cls_rule_get()
1358 struct mvpp2_ethtool_fs *efs, *old_efs; in mvpp2_ethtool_cls_rule_ins() local
1364 efs = kzalloc(sizeof(*efs), GFP_KERNEL); in mvpp2_ethtool_cls_rule_ins()
1365 if (!efs) in mvpp2_ethtool_cls_rule_ins()
1382 efs->rule.flow = ethtool_rule->rule; in mvpp2_ethtool_cls_rule_ins()
1383 efs->rule.flow_type = mvpp2_cls_ethtool_flow_to_type(info->fs.flow_type); in mvpp2_ethtool_cls_rule_ins()
1384 if (efs->rule.flow_type < 0) { in mvpp2_ethtool_cls_rule_ins()
1385 ret = efs->rule.flow_type; in mvpp2_ethtool_cls_rule_ins()
1389 ret = mvpp2_cls_rfs_parse_rule(&efs->rule); in mvpp2_ethtool_cls_rule_ins()
1393 efs->rule.loc = info->fs.location; in mvpp2_ethtool_cls_rule_ins()
1396 if (port->rfs_rules[efs->rule.loc]) { in mvpp2_ethtool_cls_rule_ins()
1397 old_efs = port->rfs_rules[efs->rule.loc]; in mvpp2_ethtool_cls_rule_ins()
1405 ret = mvpp2_port_flt_rfs_rule_insert(port, &efs->rule); in mvpp2_ethtool_cls_rule_ins()
1410 efs->rule.flow = NULL; in mvpp2_ethtool_cls_rule_ins()
1412 memcpy(&efs->rxnfc, info, sizeof(*info)); in mvpp2_ethtool_cls_rule_ins()
1413 port->rfs_rules[efs->rule.loc] = efs; in mvpp2_ethtool_cls_rule_ins()
1421 kfree(efs); in mvpp2_ethtool_cls_rule_ins()
1428 struct mvpp2_ethtool_fs *efs; in mvpp2_ethtool_cls_rule_del() local
1434 efs = port->rfs_rules[info->fs.location]; in mvpp2_ethtool_cls_rule_del()
1435 if (!efs) in mvpp2_ethtool_cls_rule_del()
1439 ret = mvpp2_port_cls_rfs_rule_remove(port, &efs->rule); in mvpp2_ethtool_cls_rule_del()
1445 kfree(efs); in mvpp2_ethtool_cls_rule_del()