• Home
  • Raw
  • Download

Lines Matching refs:efs

1345 	struct mvpp2_ethtool_fs *efs;  in mvpp2_ethtool_cls_rule_get()  local
1350 efs = port->rfs_rules[rxnfc->fs.location]; in mvpp2_ethtool_cls_rule_get()
1351 if (!efs) in mvpp2_ethtool_cls_rule_get()
1354 memcpy(rxnfc, &efs->rxnfc, sizeof(efs->rxnfc)); in mvpp2_ethtool_cls_rule_get()
1364 struct mvpp2_ethtool_fs *efs, *old_efs; in mvpp2_ethtool_cls_rule_ins() local
1370 efs = kzalloc(sizeof(*efs), GFP_KERNEL); in mvpp2_ethtool_cls_rule_ins()
1371 if (!efs) in mvpp2_ethtool_cls_rule_ins()
1388 efs->rule.flow = ethtool_rule->rule; in mvpp2_ethtool_cls_rule_ins()
1389 efs->rule.flow_type = mvpp2_cls_ethtool_flow_to_type(info->fs.flow_type); in mvpp2_ethtool_cls_rule_ins()
1390 if (efs->rule.flow_type < 0) { in mvpp2_ethtool_cls_rule_ins()
1391 ret = efs->rule.flow_type; in mvpp2_ethtool_cls_rule_ins()
1395 ret = mvpp2_cls_rfs_parse_rule(&efs->rule); in mvpp2_ethtool_cls_rule_ins()
1399 efs->rule.loc = info->fs.location; in mvpp2_ethtool_cls_rule_ins()
1402 if (port->rfs_rules[efs->rule.loc]) { in mvpp2_ethtool_cls_rule_ins()
1403 old_efs = port->rfs_rules[efs->rule.loc]; in mvpp2_ethtool_cls_rule_ins()
1411 ret = mvpp2_port_flt_rfs_rule_insert(port, &efs->rule); in mvpp2_ethtool_cls_rule_ins()
1416 efs->rule.flow = NULL; in mvpp2_ethtool_cls_rule_ins()
1418 memcpy(&efs->rxnfc, info, sizeof(*info)); in mvpp2_ethtool_cls_rule_ins()
1419 port->rfs_rules[efs->rule.loc] = efs; in mvpp2_ethtool_cls_rule_ins()
1427 kfree(efs); in mvpp2_ethtool_cls_rule_ins()
1434 struct mvpp2_ethtool_fs *efs; in mvpp2_ethtool_cls_rule_del() local
1440 efs = port->rfs_rules[info->fs.location]; in mvpp2_ethtool_cls_rule_del()
1441 if (!efs) in mvpp2_ethtool_cls_rule_del()
1445 ret = mvpp2_port_cls_rfs_rule_remove(port, &efs->rule); in mvpp2_ethtool_cls_rule_del()
1451 kfree(efs); in mvpp2_ethtool_cls_rule_del()