Lines Matching defs:error
196 int error;
200 error = solaris_init_rad();
201 if (error != 0)
202 return (error);
216 int error = 0;
226 error = solaris_init_rad();
227 if (error != 0)
228 return (error);
246 error = solaris_dladm_status2error(status);
247 if (error != 0) {
249 return (error);
253 error = netdev_create_impl_etherstub();
254 if (error != 0) {
257 return (error);
295 error = ENODEV;
297 error = (dpif->class != class ? EOPNOTSUPP :
301 if (!error) {
310 return (error);
425 VLOG_DBG("dpif_solaris_get_stats: error initializing"
434 VLOG_DBG("dpif_solaris_get_stats: error updating kstats");
516 int error;
529 error = solaris_dladm_status2error(status);
530 if (error != 0) {
532 return (error);
540 error = errno;
542 return (error);
766 int error = 0;
783 error = solaris_get_dlclass(linkname, dlbuffer,
785 if (error != 0)
786 return (error);
796 error = solaris_get_dllower(linkname, dlbuffer,
798 if (error != 0)
799 return (error);
815 error = EFBIG;
826 if ((error = solaris_set_dlprop_ulong(linkname, "ofport",
830 ovs_strerror(error));
851 error = dpif_solaris_create_xsocket(dpif, port);
852 if (error != 0) {
854 port->linkname, ovs_strerror(error));
859 error = dpif_solaris_refresh_port_channel(dpif, port, true);
860 if (error != 0) {
862 linkname, ovs_strerror(error));
900 return (error);
908 int error;
910 error = dpif_solaris_port_add__(dpif, netdev, port_nop);
911 return (error);
1014 int error;
1024 error = dpif_solaris_get_port_by_number(dpif, port_no, &port);
1025 if (error) {
1028 error);
1029 return (error);
1042 int error;
1045 error = dpif_solaris_get_port_by_number(dpif, port_no, &port);
1047 if (!error && dpif_port) {
1052 return (error);
1183 * Log the problem as an error, with enough details to enable
1194 VLOG_ERR("internal error parsing flow key %s",
1247 * Log the problem as an error, with enough details to
1258 VLOG_ERR("internal error parsing flow mask %s (%s)",
1367 int error;
1370 error = solaris_get_flowstats(flowname, &npackets, &nbytes, &lastused);
1371 if (error == 0) {
1376 return (error);
1392 int error;
1396 error = dpif_solaris_key_to_flow(key, key_len, &f);
1397 if (error) {
1398 VLOG_ERR("dpif_solaris_key_to_flow failed %d", error);
1399 return (error);
1406 error = ENOENT;
1407 VLOG_ERR("dpif_solaris_flow_get failed %d", error);
1408 return (error);
1413 error = solaris_get_flowattr(flowname, &f, &m);
1414 if (error) {
1415 VLOG_ERR("solaris_get_flowattr failed %d", error);
1416 return (error);
1443 error = dpif_solaris_get_flowstats(flowname, stats);
1453 int error = 0;
1460 error = dpif_solaris_get_port_by_number(dpif, outport, &port);
1462 if (error != 0) {
1465 return (error);
1469 error = netdev_get_queue(netdev, queueid, details);
1470 if (error != 0) {
1473 return (error);
1501 int error;
1518 error = dpif_solaris_key_to_flow(put->key, put->key_len, &f);
1519 if (error) {
1520 VLOG_ERR("dpif_solaris_key_to_flow failed %d", error);
1523 error = dpif_solaris_key_to_mask(put->key, put->key_len, put->mask,
1525 if (error) {
1526 VLOG_ERR("dpif_solaris_key_to_mask failed %d", error);
1542 error = ENOENT;
1549 error = dpif_solaris_get_port_by_number(dpif, inport,
1552 if (error != 0) {
1582 error = solaris_add_flow((void *)dpif,
1585 if (error != 0) {
1588 "(port:%s)%d", flowname, physname, portname, error);
1606 error = solaris_modify_flow((void *)dpif,
1608 if (error != 0) {
1612 flowname, error, ds_cstr(&fs),
1625 error = EEXIST;
1636 error = EINVAL;
1660 return (error);
1671 int error;
1679 error = dpif_solaris_key_to_flow(del->key, del->key_len, &f);
1680 if (error) {
1681 VLOG_ERR("dpif_solaris_key_to_flow failed %d", error);
1682 return (error);
1689 error = ENOENT;
1690 VLOG_ERR("dpif_solaris_flow_del failed %d", error);
1691 return (error);
1697 error = dpif_solaris_get_flowstats(flowname, del->stats);
1698 if (error == 0) {
1703 "get_flowstats %s failed %d", flowname, error);
1707 error = solaris_remove_flow(physname, flowname);
1708 if (error == 0) {
1713 "failed %d", flowname, error);
1717 return (error);
1869 int error;
1872 error = iter->status;
1873 if (!error) {
1884 iter->status = error = EOF;
1888 if (error) {
1889 return (error);
1980 int error, fd = -1;
1985 error = dpif_solaris_get_uplink_port_info(dpif, port_no, NULL,
1987 if (error != 0 || fd == -1) {
1991 return (error);
2022 error = errno;
2027 error = EIO;
2035 buflen, port_no, error == 0 ? "succeed" :
2036 ovs_strerror(error));
2037 ovs_assert(error != 0 || nwritten == buflen);
2058 dpif_solaris_obtain_netdev_to_migrate(char *brname, bool *error)
2068 *error = true;
2077 *error = true;
2098 *error = true;
2122 *error = true;
2398 int fd, idx, error;
2419 error = dpif_solaris_create_lowerlink(dpif, port->physname,
2421 if (error != 0) {
2424 ovs_strerror(error));
2425 return (error);
2441 error = errno;
2444 ovs_strerror(error));
2447 return (error);
2475 int error;
2491 error = solaris_dladm_status2error(status);
2492 if (error != 0) {
2494 "linkid: %s", physname, ovs_strerror(error));
2496 return (error);
2504 error = errno;
2506 "%s", physname, ovs_strerror(error));
2508 return (error);
2513 error = errno;
2516 ovs_strerror(error));
2518 return (error);
2526 error = errno;
2529 ovs_strerror(error));
2531 return (error);
2536 error = errno;
2538 "non-block: %s", physname, ovs_strerror(error));
2540 return (error);
2630 int error, flags;
2642 error = errno;
2643 return (error);
2648 error = errno;
2651 return (error);
2655 error = errno;
2658 return (error);
2668 error = dpif_solaris_refresh_port_channel(dpif, port, false);
2669 if (error != 0) {
2672 return (error);
2703 int error = 0;
2710 return (error);
2801 int i, fd, error;
2893 error = dpif_solaris_parse_pkt(dpif, &pkt, &md,
2895 if (error != 0) {
2902 error);
2920 int error;
2923 error = dpif_solaris_recv__(dpif, handler_id, upcall, buf);
2926 return (error);