Lines Matching refs:flow

92 	{ "add-flow", do_add_flow },
93 { "remove-flow", do_remove_flow },
97 { "show-flow", do_show_flow },
98 { "init-flow", do_init_flow },
120 * structures for 'flowadm remove-flow'
235 " add-flow [-t] -l <link> -a <attr>=<value>[,...]\n"
236 "\t\t [-p <prop>=<value>,...] <flow>\n"
237 " remove-flow [-t] {-l <link> | <flow>}\n"
238 " show-flow [-p] [-l <link>] "
239 "[<flow>]\n\n"
240 " set-flowprop [-t] -p <prop>=<value>[,...] <flow>\n"
241 " reset-flowprop [-t] [-p <prop>,...] <flow>\n"
243 "[<flow>]\n"));
383 die("flow name is required");
385 /* get flow name; required last argument */
387 die("flow name too long");
393 die("invalid flow attribute specified");
396 die("invalid flow property specified");
401 die_dlerr(status, "add flow failed");
447 /* when link not specified get flow name */
453 die("flow name too long");
458 /* if link is specified then flow name should not be there */
476 die_dlerr(status, "remove flow failed");
480 * Walker function for removing a flow through dladm_walk_flow();
534 * Walker function for showing flow attributes through dladm_walk_flow().
545 * first get all the flow attributes into fbuf;
566 die("invalid flow: '%s'", name);
573 * dladm_walk_datalink_id(). Used for showing flow attributes for
636 /* get flow name (optional last argument */
640 die("flow name too long");
648 /* Show attributes of one flow */
666 set_flowprop_persist(const char *flow, const char *prop_name, char **prop_val,
672 status = dladm_set_flowprop(handle, flow, prop_name, prop_val, val_cnt,
676 warn_dlerr(status, "cannot persistently %s flow "
678 errprop, flow);
688 const char *flow = NULL;
724 die("flow name too long");
725 flow = argv[optind];
729 if (flow == NULL)
730 die("flow name must be specified");
734 die("invalid flow property specified");
740 die("flow property must be specified");
742 status = dladm_set_flowprop(handle, flow, NULL, NULL, 0,
745 warn_dlerr(status, "cannot reset flow property '%s' "
746 "on '%s'", errprop, flow);
751 s = set_flowprop_persist(flow, NULL, NULL, 0, reset);
777 s = dladm_set_flowprop(handle, flow, aip->ai_name, val, count,
781 s = set_flowprop_persist(flow,
791 warn("invalid flow property '%s'", aip->ai_name);
812 s = dladm_get_flowprop(handle, flow,
827 warn("flow property '%s' must be one of: %s",
831 "flow property %s", *val, aip->ai_name);
837 warn_dlerr(status, "cannot reset flow property "
838 "'%s' on '%s'", aip->ai_name, flow);
840 warn_dlerr(status, "cannot set flow property "
841 "'%s' on '%s'", aip->ai_name, flow);
997 warn("invalid flow property '%s'", propname);
1051 * If we failed to query the flow property, for example, query
1052 * the persistent value of a non-persistable flow property,
1102 /* Walker function called by dladm_walk_flow to display flow properties */
1155 die("invalid flow properties specified");
1180 die("flow name too long");
1192 /* Show properties for one flow */
1212 show_flowprop_one_flow(void *arg, const char *flow)
1223 * Do not print flow props for invalid flows.
1225 if ((status = dladm_flow_info(handle, flow, &attr)) !=
1227 die("invalid flow: '%s'", flow);
1231 statep->fs_flow = flow;
1249 /* show only specified flow properties */
1257 /* show all flow properties */
1259 status = dladm_walk_flowprop(show_one_flowprop, flow, statep);