Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2011 08:02:55 +0000 (UTC)
From:      Marko Zec <zec@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222247 - head/sys/net
Message-ID:  <201105240802.p4O82txA058122@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zec
Date: Tue May 24 08:02:55 2011
New Revision: 222247
URL: http://svn.freebsd.org/changeset/base/222247

Log:
  Allow for vlan(4) interfaces with MTU of 1500 bytes to be configured
  on top of epair(4) virtual interfaces, since there's no physical
  hardware associated with epair interfaces which would imply any
  constraints on MTU sizes.
  
  MFC after:	3 days

Modified:
  head/sys/net/if_epair.c

Modified: head/sys/net/if_epair.c
==============================================================================
--- head/sys/net/if_epair.c	Tue May 24 07:57:28 2011	(r222246)
+++ head/sys/net/if_epair.c	Tue May 24 08:02:55 2011	(r222247)
@@ -810,6 +810,8 @@ epair_clone_create(struct if_clone *ifc,
 	ifp->if_dname = ifc->ifc_name;
 	ifp->if_dunit = unit;
 	ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+	ifp->if_capabilities = IFCAP_VLAN_MTU;
+	ifp->if_capenable = IFCAP_VLAN_MTU;
 	ifp->if_start = epair_start;
 	ifp->if_ioctl = epair_ioctl;
 	ifp->if_init  = epair_init;
@@ -834,6 +836,8 @@ epair_clone_create(struct if_clone *ifc,
 	ifp->if_dname = ifc->ifc_name;
 	ifp->if_dunit = unit;
 	ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+	ifp->if_capabilities = IFCAP_VLAN_MTU;
+	ifp->if_capenable = IFCAP_VLAN_MTU;
 	ifp->if_start = epair_start;
 	ifp->if_ioctl = epair_ioctl;
 	ifp->if_init  = epair_init;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105240802.p4O82txA058122>