Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Enable ETHERCAP_VLAN_MTU in vr(4). Tested on VT...
details: https://anonhg.NetBSD.org/src/rev/6d5636e28618
branches: trunk
changeset: 759783:6d5636e28618
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Dec 16 17:07:44 2010 +0000
description:
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.
diffstat:
sys/dev/pci/if_vr.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 45f58de3cdcb -r 6d5636e28618 sys/dev/pci/if_vr.c
--- a/sys/dev/pci/if_vr.c Thu Dec 16 17:05:44 2010 +0000
+++ b/sys/dev/pci/if_vr.c Thu Dec 16 17:07:44 2010 +0000
@@ -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.
*/
Home |
Main Index |
Thread Index |
Old Index