diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2018-03-30 20:24:29 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2018-03-30 20:24:29 +0000 |
commit | 6361c24b8a009b0ce245d22ee62797adb01b152d (patch) | |
tree | e9393685f635b56c5a10a7eacac42f158c667743 /sys/dev/vxge/vxge.c | |
parent | 4b706099413af29d3eb006c6423815dae576b310 (diff) | |
download | src-6361c24b8a009b0ce245d22ee62797adb01b152d.tar.gz src-6361c24b8a009b0ce245d22ee62797adb01b152d.zip |
Fall back to ether_ioctl() by default.
The common pratice in ethernet device drivers is to fall back to
ether_ioctl() to implement generic ioctls not implemented by the driver
and to fail if no handler exists.
Convert these drivers to follow that practice rather than calling
ether_ioctl() for specific cases.
vxge(4) aready had the default case, but it was only called on failure
to match.
Reviewed by: imp
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14895
Notes
Notes:
svn path=/head/; revision=331829
Diffstat (limited to 'sys/dev/vxge/vxge.c')
-rw-r--r-- | sys/dev/vxge/vxge.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/vxge/vxge.c b/sys/dev/vxge/vxge.c index ebc5b8a35088..850311de4133 100644 --- a/sys/dev/vxge/vxge.c +++ b/sys/dev/vxge/vxge.c @@ -3573,12 +3573,6 @@ vxge_ioctl(ifnet_t ifp, u_long command, caddr_t data) 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); |