svn commit: r222345 - stable/8/sys/net

Marko Zec zec at FreeBSD.org
Fri May 27 08:41:57 UTC 2011


Author: zec
Date: Fri May 27 08:41:57 2011
New Revision: 222345
URL: http://svn.freebsd.org/changeset/base/222345

Log:
  MFC r222247:
    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.

Modified:
  stable/8/sys/net/if_epair.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/net/if_epair.c
==============================================================================
--- stable/8/sys/net/if_epair.c	Fri May 27 08:40:26 2011	(r222344)
+++ stable/8/sys/net/if_epair.c	Fri May 27 08:41:57 2011	(r222345)
@@ -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;


More information about the svn-src-all mailing list