Module Name: src Committed By: jakllsch Date: Thu Dec 16 17:07:44 UTC 2010
Modified Files: src/sys/dev/pci: if_vr.c Log Message: Enable ETHERCAP_VLAN_MTU in vr(4). Tested on VT6105M and VT8237R+. May or may not work on earlier chips, for now just assume it will. Provoked by PR#44243. To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/sys/dev/pci/if_vr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_vr.c diff -u src/sys/dev/pci/if_vr.c:1.106 src/sys/dev/pci/if_vr.c:1.107 --- src/sys/dev/pci/if_vr.c:1.106 Sat Nov 13 13:52:07 2010 +++ src/sys/dev/pci/if_vr.c Thu Dec 16 17:07:44 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: if_vr.c,v 1.106 2010/11/13 13:52:07 uebayasi Exp $ */ +/* $NetBSD: if_vr.c,v 1.107 2010/12/16 17:07:44 jakllsch Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. @@ -97,7 +97,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.106 2010/11/13 13:52:07 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.107 2010/12/16 17:07:44 jakllsch Exp $"); #include "rnd.h" @@ -1686,6 +1686,8 @@ } else ifmedia_set(&sc->vr_mii.mii_media, IFM_ETHER|IFM_AUTO); + sc->vr_ec.ec_capabilities |= ETHERCAP_VLAN_MTU; + /* * Call MI attach routines. */