From 127f8dd20d88b0f6e06c827e7f8684de897be8eb Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Mon, 16 Aug 2021 01:30:28 +0000 Subject: Remove redundant SIOCSIFMTU ioctl handler already handlded by ether_ioctl(). From Brad --- sys/dev/pci/if_rge.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sys/dev/pci') 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 @@ -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); -- cgit v1.2.3