summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/omap
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-10-02 23:38:33 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-10-02 23:38:33 +0000
commit0f99ef3613fc20819565000fd0e24e6fe7c92595 (patch)
tree61861661a790e40a68b06092c0851c457029dda8 /sys/arch/armv7/omap
parent0363a9535ff2e07684153ea8eb8cc15e2052c2d6 (diff)
Set IFCAP_VLAN_MTU capability in cpsw(4). Avoids
"ifconfig: SIOCSETVLAN: No buffer space available" when creating vlan interfaces without first lowering the mtu. Reported by Steven Chamberlain, diagnosed by mikeb@, patch from Brad. ok bmercer@
Diffstat (limited to 'sys/arch/armv7/omap')
-rw-r--r--sys/arch/armv7/omap/if_cpsw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/omap/if_cpsw.c b/sys/arch/armv7/omap/if_cpsw.c
index b120b28c087..8717b4b21fa 100644
--- a/sys/arch/armv7/omap/if_cpsw.c
+++ b/sys/arch/armv7/omap/if_cpsw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cpsw.c,v 1.40 2016/08/12 03:22:41 jsg Exp $ */
+/* $OpenBSD: if_cpsw.c,v 1.41 2016/10/02 23:38:32 jsg Exp $ */
/* $NetBSD: if_cpsw.c,v 1.3 2013/04/17 14:36:34 bouyer Exp $ */
/*
@@ -444,7 +444,7 @@ cpsw_attach(struct device *parent, struct device *self, void *aux)
CPSW_SS_IDVER_RTL(idver), ether_sprintf(ac->ac_enaddr));
ifp->if_softc = sc;
- ifp->if_capabilities = 0;
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ifp->if_start = cpsw_start;
ifp->if_ioctl = cpsw_ioctl;