diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-02-09 19:15:19 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-02-09 19:15:19 +0000 |
commit | 0d46cf1d0d8e9ffbf81bb057a3667ffe672ea266 (patch) | |
tree | 82209902f8dfa0fec3b0ec59ee8cf36ebd260348 /sys | |
parent | 606a9a16c1b9ce46ffe59f22d265e0db581a3252 (diff) |
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')
-rw-r--r-- | sys/dev/pci/if_sis.c | 3 |
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; |