From 0d46cf1d0d8e9ffbf81bb057a3667ffe672ea266 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Sat, 9 Feb 2013 19:15:19 +0000 Subject: 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@ --- sys/dev/pci/if_sis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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 . 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; -- cgit v1.2.3