Lines Matching refs:err
128 int err, cnt;
144 if ((err = nvlist_lookup_string(nvlp, DSCPMK_NEXT_ACTION_NAME,
150 return (err);
169 if ((err = nvlist_lookup_int32_array(nvlp, DSCPMK_DSCP_MAP,
181 if ((err = nvlist_lookup_uint32(nvlp, IPP_ACTION_STATS_ENABLE, &bstats))
188 if ((err = dscpmk_summ_statinit(aid, dscpmk_data))
192 return (err);
207 if ((err = nvlist_lookup_uint32(nvlp, DSCPMK_DETAILED_STATS, &bstats))
220 if ((err = dscpmk_det_statinit(aid, dscpmk_data,
224 return (err);
234 if ((err = ipp_action_ref(aid, dscpmk_data->next_action, flags)) != 0) {
236 "returned with error %d\n", err));
249 return (err);
260 int err = 0, cnt;
274 if ((err = nvlist_lookup_byte(nvlp, IPP_CONFIG_TYPE, &config_type))
278 return (err);
292 if ((err = nvlist_lookup_string(nvlp, DSCPMK_NEXT_ACTION_NAME,
303 if ((err = ipp_action_ref(aid, next_action, flags)) != 0) {
306 "returned with error %d\n", err));
307 return (err);
310 err = ipp_action_unref(aid, dscpmk_data->next_action, flags);
311 ASSERT(err == 0);
321 if ((err = nvlist_lookup_int32_array(nvlp, DSCPMK_DSCP_MAP,
335 if ((err = nvlist_lookup_uint32(nvlp, IPP_ACTION_STATS_ENABLE, &bstats))
340 if ((err = dscpmk_summ_statinit(aid, dscpmk_data))
343 return (err);
354 if ((err = nvlist_lookup_uint32(nvlp, DSCPMK_DETAILED_STATS, &bstats))
376 if ((err = dscpmk_det_statinit(aid, dscpmk_data,
379 return (err);
394 int err, cnt;
414 err = ipp_action_unref(aid, dscpmk_data->next_action, flags);
415 ASSERT(err == 0);
427 int err;
439 if ((err = dscpmk_process(&mp, dscpmk_data, priv->proc)) != 0) {
440 return (err);
450 int err = 0;
457 if ((err = ipp_stat_create(aid, stats_string, DSCPMK_DSCP_STATS_COUNT,
461 "with error %d\n", err));
462 return (err);
469 if ((err = ipp_stat_named_init(dscpmk_data->dscp_stats[val].stats,
472 "returned with error %d\n", err));
473 return (err);
476 if ((err = ipp_stat_named_init(dscpmk_data->dscp_stats[val].stats,
479 "returned with error %d\n", err));
480 return (err);
491 int err = 0;
495 if ((err = ipp_stat_create(aid, DSCPMK_STATS_STRING, DSCPMK_STATS_COUNT,
498 "with error %d\n", err));
499 return (err);
505 if ((err = ipp_stat_named_init(dscpmk_data->stats, "npackets",
508 "returned with error %d\n", err));
509 return (err);
512 if ((err = ipp_stat_named_init(dscpmk_data->stats, "dscp_changed",
515 "returned with error %d\n", err));
516 return (err);
519 if ((err = ipp_stat_named_init(dscpmk_data->stats, "dscp_unchanged",
522 "returned with error %d\n", err));
523 return (err);
526 if ((err = ipp_stat_named_init(dscpmk_data->stats, "ipackets",
529 "returned with error %d\n", err));
530 return (err);
533 if ((err = ipp_stat_named_init(dscpmk_data->stats, "epackets",
536 "returned with error %d\n", err));
537 return (err);
592 int err, cnt;
601 if ((err = nvlist_alloc(&nvlp, NV_UNIQUE_NAME, KM_NOSLEEP)) != 0) {
603 return (err);
607 if ((err = ipp_action_name(dscpmk_data->next_action,
611 return (err);
615 if ((err = nvlist_add_string(nvlp, DSCPMK_NEXT_ACTION_NAME,
620 return (err);
627 if ((err = nvlist_add_byte(nvlp, IPP_CONFIG_TYPE, IPP_SET)) != 0) {
630 return (err);
638 if ((err = nvlist_add_int32_array(nvlp, DSCPMK_DSCP_MAP,
642 return (err);
646 if ((err = nvlist_add_uint32(nvlp, IPP_ACTION_STATS_ENABLE,
650 return (err);
654 if ((err = nvlist_add_uint32(nvlp, DSCPMK_DETAILED_STATS,
658 return (err);
662 err = fn(nvlp, arg);
665 return (err);