Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157314587
D14895.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D14895.id.diff
View Options
Index: head/sys/dev/ex/if_ex.c
===================================================================
--- head/sys/dev/ex/if_ex.c
+++ head/sys/dev/ex/if_ex.c
@@ -823,12 +823,6 @@
DODEBUG(Start_End, printf("%s: ex_ioctl: start ", ifp->if_xname););
switch(cmd) {
- case SIOCSIFADDR:
- case SIOCGIFADDR:
- case SIOCSIFMTU:
- error = ether_ioctl(ifp, cmd, data);
- break;
-
case SIOCSIFFLAGS:
DODEBUG(Start_End, printf("SIOCSIFFLAGS"););
EX_LOCK(sc);
@@ -850,8 +844,8 @@
error = ifmedia_ioctl(ifp, ifr, &sc->ifmedia, cmd);
break;
default:
- DODEBUG(Start_End, printf("unknown"););
- error = EINVAL;
+ error = ether_ioctl(ifp, cmd, data);
+ break;
}
DODEBUG(Start_End, printf("\n%s: ex_ioctl: finish\n", ifp->if_xname););
Index: head/sys/dev/ixgb/if_ixgb.c
===================================================================
--- head/sys/dev/ixgb/if_ixgb.c
+++ head/sys/dev/ixgb/if_ixgb.c
@@ -525,11 +525,6 @@
goto out;
switch (command) {
- case SIOCSIFADDR:
- case SIOCGIFADDR:
- IOCTL_DEBUGOUT("ioctl rcv'd: SIOCxIFADDR (Get/Set Interface Addr)");
- ether_ioctl(ifp, command, data);
- break;
case SIOCSIFMTU:
IOCTL_DEBUGOUT("ioctl rcv'd: SIOCSIFMTU (Set Interface MTU)");
if (ifr->ifr_mtu > IXGB_MAX_JUMBO_FRAME_SIZE - ETHER_HDR_LEN) {
@@ -610,8 +605,8 @@
}
break;
default:
- IOCTL_DEBUGOUT1("ioctl received: UNKNOWN (0x%X)\n", (int)command);
- error = EINVAL;
+ error = ether_ioctl(ifp, command, data);
+ break;
}
out:
Index: head/sys/dev/nxge/if_nxge.c
===================================================================
--- head/sys/dev/nxge/if_nxge.c
+++ head/sys/dev/nxge/if_nxge.c
@@ -1623,12 +1623,6 @@
}
switch(command) {
- /* Set/Get ifnet address */
- case SIOCSIFADDR:
- case SIOCGIFADDR:
- ether_ioctl(ifnetp, command, data);
- break;
-
/* Set ifnet MTU */
case SIOCSIFMTU:
retValue = xge_change_mtu(lldev, ifreqp->ifr_mtu);
@@ -1713,7 +1707,7 @@
break;
default:
- retValue = EINVAL;
+ retValue = ether_ioctl(ifnetp, command, data);
break;
}
return retValue;
Index: head/sys/dev/vxge/vxge.c
===================================================================
--- head/sys/dev/vxge/vxge.c
+++ head/sys/dev/vxge/vxge.c
@@ -3573,12 +3573,6 @@
return (EBUSY);
switch (command) {
- /* Set/Get ifnet address */
- case SIOCSIFADDR:
- case SIOCGIFADDR:
- ether_ioctl(ifp, command, data);
- break;
-
/* Set Interface MTU */
case SIOCSIFMTU:
err = vxge_change_mtu(vdev, (unsigned long)ifr->ifr_mtu);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 6:25 AM (5 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33377711
Default Alt Text
D14895.id.diff (2 KB)
Attached To
Mode
D14895: Fall back to ether_ioctl() by default.
Attached
Detach File
Event Timeline
Log In to Comment