summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_sis.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2013-02-09 19:15:18 +0000
committersthen <sthen@openbsd.org>2013-02-09 19:15:18 +0000
commit86f82413a7378d87265a32b12f0583fc54c9b67d (patch)
treebdeecf9740e7140638985da06bb4cb45d15d6a96 /sys/dev/pci/if_sis.c
parentget the format of the various options in this file right and, along (diff)
downloadwireguard-openbsd-86f82413a7378d87265a32b12f0583fc54c9b67d.tar.xz
wireguard-openbsd-86f82413a7378d87265a32b12f0583fc54c9b67d.zip
Allow the user to configure an MTU of up to 1518, which does not require
any additional chip reprogramming, and is tested to work fine on DP83815. ok mikeb@
Diffstat (limited to 'sys/dev/pci/if_sis.c')
-rw-r--r--sys/dev/pci/if_sis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c
index 5f6bdc8d2c5..75fc6bf749b 100644
--- a/sys/dev/pci/if_sis.c
+++ b/sys/dev/pci/if_sis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sis.c,v 1.107 2012/11/29 21:10:32 brad Exp $ */
+/* $OpenBSD: if_sis.c,v 1.108 2013/02/09 19:15:18 sthen Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -1093,6 +1093,7 @@ sis_attach(struct device *parent, struct device *self, void *aux)
IFQ_SET_MAXLEN(&ifp->if_snd, SIS_TX_LIST_CNT - 1);
IFQ_SET_READY(&ifp->if_snd);
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
+ ifp->if_hardmtu = 1518; /* determined experimentally on DP83815 */
ifp->if_capabilities = IFCAP_VLAN_MTU;