Lines Matching refs:solaris_flow

1280 	struct dpif_solaris_flow *solaris_flow;
1285 solaris_flow = dpif_solaris_flow_cast(rule);
1288 return (solaris_flow);
1294 struct dpif_solaris_flow *solaris_flow;
1296 HMAP_FOR_EACH_WITH_HASH(solaris_flow, node, flow_hash(flow, 0),
1298 if (flow_equal(&solaris_flow->flow, flow)) {
1299 return (solaris_flow);
1310 struct dpif_solaris_flow *solaris_flow;
1312 HMAP_FOR_EACH(solaris_flow, node, &dpif->flows) {
1313 if (strcmp(solaris_flow->flowname, flowname) == 0) {
1314 return (solaris_flow);
1326 struct dpif_solaris_flow *solaris_flow;
1329 solaris_flow = xzalloc(sizeof (*solaris_flow));
1331 solaris_flow->physname = xstrdup(physname);
1332 (void) snprintf(solaris_flow->flowname, MAXUSERFLOWNAMELEN,
1333 "%p.sys.of", (void *)solaris_flow);
1334 solaris_flow->flow = *flow;
1335 solaris_flow->mask = *mask;
1338 cls_rule_init(&solaris_flow->cr, &match, 0x8001);
1339 hmap_insert(&dpif->flows, &solaris_flow->node, flow_hash(flow, 0));
1340 classifier_insert(&dpif->cls, &solaris_flow->cr);
1342 return (solaris_flow);
1347 struct dpif_solaris_flow *solaris_flow) OVS_REQ_WRLOCK(dpif->flow_rwlock)
1353 cr = &solaris_flow->cr;
1354 node = CONST_CAST(struct hmap_node *, &solaris_flow->node);
1359 free(solaris_flow->physname);
1360 free(solaris_flow);
1389 struct dpif_solaris_flow *solaris_flow;
1403 solaris_flow = dpif_solaris_find_flow(dpif, &f);
1404 if (solaris_flow == NULL) {
1410 (void) strlcpy(flowname, solaris_flow->flowname, MAXUSERFLOWNAMELEN);
1499 struct dpif_solaris_flow *solaris_flow;
1533 solaris_flow = dpif_solaris_lookup_flow(dpif, &miniflow);
1536 if (solaris_flow == NULL) {
1566 solaris_flow = dpif_solaris_flow_add(dpif, physname, &f,
1568 (void) strlcpy(flowname, solaris_flow->flowname,
1590 dpif_solaris_flow_remove(dpif, solaris_flow);
1599 (void) strlcpy(flowname, solaris_flow->flowname,
1601 check_flow_equal = flow_equal(&f, &solaris_flow->flow);
1667 struct dpif_solaris_flow *solaris_flow;
1686 solaris_flow = dpif_solaris_find_flow(dpif, &f);
1687 if (solaris_flow == NULL) {
1693 (void) strlcpy(flowname, solaris_flow->flowname, MAXUSERFLOWNAMELEN);
1694 physname = xstrdup(solaris_flow->physname);
1695 dpif_solaris_flow_remove(dpif, solaris_flow);
1723 struct dpif_solaris_flow *solaris_flow, *next;
1732 HMAP_FOR_EACH_SAFE(solaris_flow, next, node, &dpif->flows) {
1733 flownames[i] = xstrdup(solaris_flow->flowname);
1734 physnames[i++] = xstrdup(solaris_flow->physname);
1735 dpif_solaris_flow_remove(dpif, solaris_flow);