summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_oce.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-11-08 18:56:55 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-11-08 18:56:55 +0000
commit80ef207a0f4678048cd4c10eef92dddf78e8c316 (patch)
tree7c72f35e13cd3a4795e815117c576f89faea5553 /sys/dev/pci/if_oce.c
parent58b194e53e9fbbdd881b66d59bbb7c834d632f19 (diff)
hardware supports mtu values from 256 up to 9000;
figured out the hard way, linux driver agrees
Diffstat (limited to 'sys/dev/pci/if_oce.c')
-rw-r--r--sys/dev/pci/if_oce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_oce.c b/sys/dev/pci/if_oce.c
index c3aa8997b1c..b41cd3bf0a8 100644
--- a/sys/dev/pci/if_oce.c
+++ b/sys/dev/pci/if_oce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_oce.c,v 1.47 2012/11/08 18:26:17 mikeb Exp $ */
+/* $OpenBSD: if_oce.c,v 1.48 2012/11/08 18:56:54 mikeb Exp $ */
/*
* Copyright (c) 2012 Mike Belopuhov
@@ -471,7 +471,7 @@ oce_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
}
break;
case SIOCSIFMTU:
- if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ifp->if_hardmtu)
+ if (ifr->ifr_mtu < OCE_MIN_MTU || ifr->ifr_mtu > OCE_MAX_MTU)
error = EINVAL;
else if (ifp->if_mtu != ifr->ifr_mtu) {
ifp->if_mtu = ifr->ifr_mtu;