summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_rge.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2021-08-16 01:30:28 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2021-08-16 01:30:28 +0000
commit127f8dd20d88b0f6e06c827e7f8684de897be8eb (patch)
treef22c8747382a1e39985c39190bb521f1c6f907c6 /sys/dev/pci/if_rge.c
parent90f34b7bdb2b3a178327f687283a9505dcae55ee (diff)
Remove redundant SIOCSIFMTU ioctl handler already handlded by ether_ioctl().
From Brad
Diffstat (limited to 'sys/dev/pci/if_rge.c')
-rw-r--r--sys/dev/pci/if_rge.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/pci/if_rge.c b/sys/dev/pci/if_rge.c
index 7866e43f27b..6d54456678d 100644
--- a/sys/dev/pci/if_rge.c
+++ b/sys/dev/pci/if_rge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rge.c,v 1.14 2021/07/12 12:24:41 daniel Exp $ */
+/* $OpenBSD: if_rge.c,v 1.15 2021/08/16 01:30:27 kevlo Exp $ */
/*
* Copyright (c) 2019, 2020 Kevin Lo <kevlo@openbsd.org>
@@ -526,13 +526,6 @@ rge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCSIFMEDIA:
error = ifmedia_ioctl(ifp, ifr, &sc->sc_media, cmd);
break;
- case SIOCSIFMTU:
- if (ifr->ifr_mtu > ifp->if_hardmtu) {
- error = EINVAL;
- break;
- }
- ifp->if_mtu = ifr->ifr_mtu;
- break;
case SIOCGIFRXR:
error = if_rxr_ioctl((struct if_rxrinfo *)ifr->ifr_data,
NULL, RGE_JUMBO_FRAMELEN, &sc->sc_queues->q_rx.rge_rx_ring);