Mercurial > illumos > illumos-gate
changeset 9001:55ea5a5c257a
PSARC 2009/162 DLPI Notification Tweak
6814532 dlpi_enabnotify() must not require DL_IDLE
author | meem <Peter.Memishian@Sun.COM> |
---|---|
date | Mon, 09 Mar 2009 19:31:17 -0400 |
parents | 7a9c5c9ed60d |
children | 95b8929386a5 |
files | usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.c usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c usr/src/lib/libdlpi/common/libdlpi.c |
diffstat | 3 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.c Mon Mar 09 15:20:14 2009 -0700 +++ b/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.c Mon Mar 09 19:31:17 2009 -0400 @@ -221,12 +221,6 @@ goto failed; } - retval = dlpi_bind(pi->pi_dh, DLPI_ANY_SAP, NULL); - if (retval != DLPI_SUCCESS) { - errmsg = "cannot bind to DLPI_ANY_SAP"; - goto failed; - } - /* * Check if the link supports DLPI link state notifications. For * historical reasons, the actual changes are tracked through routing
--- a/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c Mon Mar 09 15:20:14 2009 -0700 +++ b/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c Mon Mar 09 19:31:17 2009 -0400 @@ -1621,9 +1621,6 @@ if ((retval = dlpi_open(name, &dh, 0)) != DLPI_SUCCESS) Perrdlpi_exit("cannot dlpi_open() link", name, retval); - if ((retval = dlpi_bind(dh, DLPI_ANY_SAP, NULL)) != DLPI_SUCCESS) - Perrdlpi_exit("cannot dlpi_bind() link", name, retval); - retval = dlpi_enabnotify(dh, DL_NOTE_PHYS_ADDR, notifycb, NULL, &id); if (retval == DLPI_SUCCESS) { (void) dlpi_disabnotify(dh, id, NULL);
--- a/usr/src/lib/libdlpi/common/libdlpi.c Mon Mar 09 15:20:14 2009 -0700 +++ b/usr/src/lib/libdlpi/common/libdlpi.c Mon Mar 09 19:31:17 2009 -0400 @@ -835,8 +835,6 @@ retval = dlpi_info((dlpi_handle_t)dip, &dlinfo, 0); if (retval != DLPI_SUCCESS) return (retval); - if (dlinfo.di_state != DL_IDLE) - return (DL_OUTSTATE); if (dip->dli_note_processing) return (DLPI_FAILURE);