diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-11-20 22:40:40 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-11-20 22:40:40 +0000 |
commit | c6ccf5d67c8d15361c16b1b848b0127c492d95ad (patch) | |
tree | 9679ce6610f02bb41ff112f7391ec1bef5d28852 /sys/dev | |
parent | dc5247a6ba2a485f747f33f38719f71ed845fceb (diff) |
set the IFCAP_VLAN_HWTAGGING capabilities flag.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_bge.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 53210cafd64..44407022bae 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.195 2006/10/28 22:14:47 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.196 2006/11/20 22:40:39 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1933,6 +1933,10 @@ bge_attach(struct device *parent, struct device *self, void *aux) ifp->if_capabilities = IFCAP_VLAN_MTU; +#if NVLAN > 0 + ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; +#endif + if (BGE_IS_JUMBO_CAPABLE(sc)) ifp->if_hardmtu = BGE_JUMBO_MTU; |