Lines Matching defs:error

141  * Cached kstat2_handle_t. Re-use unless an error causes it to be
431 int error;
443 error = 0;
449 return (error ? error : load_error);
480 int error;
497 error = solaris_plumb_if(sock, netdev_name, af);
498 if (error != 0) {
500 return (error);
517 int error;
536 error = solaris_unplumb_if(sock, netdev_name, af);
537 if (error != 0) {
538 if (error == ENXIO &&
543 error);
577 int error;
579 error = solaris_get_dlprop(netdev_name, "speed-duplex", field_name,
581 if (error != 0) {
584 return (error);
599 int error = 0;
616 if ((error = netdev_solaris_chk_speed_duplex(netdev_name,
629 if ((error = netdev_solaris_chk_speed_duplex(netdev_name,
634 error = solaris_get_dlprop(netdev_name, "speed", "current", buffer,
636 if (error != 0) {
643 error = solaris_get_dlprop(netdev_name, "duplex", "current", buffer,
645 if (error != 0) {
673 netdev->get_features_error = error;
674 return (error);
680 int error;
684 error = errno;
686 ovs_strerror(error));
687 return (error);
692 error = errno;
694 ovs_strerror(error));
695 return (error);
698 error = solaris_init_rad();
699 return (error);
734 int error;
742 error = solaris_get_dlprop(netdev->brname, "lower-link", "current",
744 if (error) {
777 error = solaris_modify_vnic(new_lower, netdev->brname);
778 if (error != 0) {
781 ovs_strerror(error));
800 int error;
815 error = solaris_get_dlprop(brname, "lower-link", "current",
819 if (error == ENODEV) {
828 error = solaris_create_vnic(NETDEV_IMPL_ETHERSTUB, brname);
829 if (error == 0) {
832 error = solaris_modify_vnic(new_uplink, brname);
833 if (error == 0) {
838 brname, new_uplink, ovs_strerror(error));
842 brname, ovs_strerror(error));
845 } else if (error != 0) {
847 brname, ovs_strerror(error));
858 error = 0;
870 error = solaris_modify_vnic(new_uplink, brname);
871 if (error != 0) {
873 new_uplink, ovs_strerror(error));
887 VLOG_ERR("netdev_solaris_configure_uplink error "
897 error = solaris_modify_vnic(new_uplink, brname);
898 if (error != 0) {
900 new_uplink, ovs_strerror(error));
914 return (error);
924 int error;
938 error = solaris_if_enabled(sock, netdev_name, flags);
939 if (error == 0) {
941 } else if (error != ENXIO) {
943 "error %d for %s", netdev_name, error, astring);
945 return (error == 0);
951 int error;
953 error = solaris_create_etherstub(NETDEV_IMPL_ETHERSTUB);
954 if (error != 0) {
956 "%s", NETDEV_IMPL_ETHERSTUB, ovs_strerror(error));
959 error = solaris_set_dlprop_boolean(NETDEV_IMPL_ETHERSTUB,
961 if (error != 0) {
965 NETDEV_IMPL_ETHERSTUB, ovs_strerror(error));
968 return (error);
975 int error;
977 error = solaris_set_dlprop_boolean(NETDEV_IMPL_ETHERSTUB,
979 if (error != 0) {
982 NETDEV_IMPL_ETHERSTUB, ovs_strerror(error));
984 error = solaris_delete_etherstub(NETDEV_IMPL_ETHERSTUB);
985 if (error != 0) {
988 ovs_strerror(error));
997 int error;
999 error = solaris_get_dlprop(NETDEV_IMPL_ETHERSTUB, "openvswitch",
1001 if (error == ENODEV)
1028 int error;
1054 error = solaris_get_dlprop(netdev_name, "lower-link",
1056 if (error == ENODEV) {
1057 error = solaris_create_vnic(NETDEV_IMPL_ETHERSTUB,
1059 if (error != 0) {
1061 "%s", netdev_name, ovs_strerror(error));
1062 return (error);
1064 } else if (error != 0) {
1066 netdev_name, ovs_strerror(error));
1077 int error;
1088 error = solaris_delete_vnic(netdev_name);
1089 if (error != 0) {
1091 netdev_name, ovs_strerror(error));
1121 int error = 0;
1142 error = solaris_set_dlprop_string(netdev_name, "mac-address", buffer,
1144 if (error != 0) {
1146 buffer, netdev_name, ovs_strerror(error));
1156 return (error);
1165 int error = 0;
1173 error = solaris_get_dlclass(netdev_name, buffer, sizeof (buffer));
1174 if (error != 0) {
1176 netdev_name, error);
1183 return (error);
1208 int error = 0;
1227 error = solaris_get_dlprop(netdev_name, "mac-address", "current",
1229 if (error != 0) {
1237 error = EINVAL;
1245 return (error);
1254 int error = 0;
1264 error = solaris_get_dlprop(netdev_name, "mtu", "current", buffer,
1266 if (error != 0) {
1269 return (error);
1275 error = EINVAL;
1276 return (error);
1294 int error = 0;
1300 return (error);
1304 error = netdev_solaris_get_mtu__(netdev, mtup, netdev_name);
1306 return (error);
1318 int error = 0;
1335 error = solaris_set_dlprop_ulong(netdev_name, "mtu", &ulval, B_TRUE);
1336 if (error != 0) {
1338 netdev_name, ovs_strerror(error));
1348 return (error);
1361 int error = 0;
1373 error = errno;
1382 return (error ? -error : ifindex);
1403 int error = 0;
1433 error = -1;
1438 VLOG_DBG("netdev_solaris_get_stats error updating stats");
1441 error = -1;
1506 error = -1;
1512 VLOG_DBG("netdev_solaris_get_stats error getting "
1514 error = -1;
1524 error = -1;
1533 return (error);
1552 int error = 0;
1560 error = solaris_get_dllower(netdev_name, buffer,
1562 if (error != 0)
1567 error = netdev_solaris_read_features(netdev, physname);
1568 if (error != 0)
1578 return (error);
1591 int error = 0;
1604 if ((error = solaris_set_dlprop_ulong(netdev_name, "max-bw",
1608 kbits_rate, netdev_name, ovs_strerror(error));
1615 return (error);
1645 int error = EOPNOTSUPP;
1660 return (error);
1669 int error = 0;
1674 error = tc_query_qdisc(netdev_);
1675 if (!error) {
1677 error = (netdev->tc->ops->qdisc_get ?
1681 return (error);
1691 int error = 0;
1700 error = tc_query_qdisc(netdev_);
1701 if (error) {
1707 error = new_ops->qdisc_set ?
1711 error = tc_del_qdisc(netdev_);
1712 if (error) {
1713 VLOG_DBG("netdev_solaris_set_qos error deleting %s",
1719 error = new_ops->tc_install(netdev_, details);
1720 ovs_assert((error == 0) == (netdev->tc != NULL));
1722 error);
1726 return (error);
1735 int error = 0;
1740 error = tc_query_qdisc(netdev_);
1741 if (!error) {
1743 error = (queue ?
1749 error);
1750 return (error);
1759 int error = 0;
1764 error = tc_query_qdisc(netdev_);
1765 if (!error) {
1766 error = (queue_id < netdev->tc->ops->n_queues &&
1774 return (error);
1783 int error = 0;
1788 error = tc_query_qdisc(netdev_);
1789 if (!error) {
1794 error = (queue
1798 error = EINVAL;
1802 return (error);
1811 int error = 0;
1815 return (error);
1830 int error = 0;
1835 error = tc_query_qdisc(netdev_);
1836 if (!error) {
1853 error = EOPNOTSUPP;
1860 return (error);
1869 int error = EOF;
1891 error = netdev->tc->ops->class_get(netdev_, queue,
1897 return (error);
1921 int error = 0;
1925 return (error);
1941 int error = 0;
1952 error = netdev_solaris_plumb(netdev_, AF_INET);
1953 if (error != 0)
1964 error = errno;
1970 error = errno;
1980 error = EADDRNOTAVAIL;
1985 return (error);
1996 int error = 0;
2002 error = netdev_solaris_plumb(netdev_, AF_INET);
2003 if (error != 0)
2016 error = errno;
2024 error = errno;
2035 return (error);
2049 int error = 0;
2058 error = EADDRNOTAVAIL;
2062 error = netdev_solaris_plumb(netdev_, AF_INET6);
2063 if (error != 0)
2073 error = errno;
2083 error = EADDRNOTAVAIL;
2087 return (error);
2129 int error = 0;
2136 error = errno;
2138 ovs_strerror(error));
2139 return (error);
2172 error = errno;
2174 ovs_strerror(error));
2177 return (error);
2203 int error = 0;
2218 error = errno;
2220 ovs_strerror(error));
2221 return (error);
2241 error = errno;
2242 VLOG_ERR("failed to get route: %s", ovs_strerror(error));
2303 int error = EOPNOTSUPP;
2313 return (error);
2327 int error = 0;
2340 error = errno;
2349 return (error);
2400 int error = 0;
2407 error = errno;
2420 error = errno;
2426 return (error);
2592 int error = 0;
2607 error = solaris_get_dllower(netdev_name, buffer,
2609 if (error != 0)
2629 int error;
2633 error = htb_setup_qdisc__(netdev);
2634 if (!error) {
2638 error = htb_setup_class__(netdev, 0, 0, &hc);
2639 if (!error) {
2643 return (error);
2674 int error;
2679 error = htb_setup_class__(netdev, 0, 0, &hc);
2680 if (!error) {
2684 return (error);
2759 int error;
2763 error = htb_parse_class_details__(netdev, details, &hc);
2764 if (error) {
2765 return (error);
2768 error = htb_setup_class__(netdev, 0, 0, &hc);
2769 if (error) {
2770 return (error);
2782 int error;
2785 error = tc_delete_class(netdev, 0);
2786 if (!error) {
2790 return (error);