Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2017 08:29:00 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317585 - head/sys/net
Message-ID:  <201704290829.v3T8T0HT043381@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Apr 29 08:28:59 2017
New Revision: 317585
URL: https://svnweb.freebsd.org/changeset/base/317585

Log:
  Propagate IFCAP_LRO from trunk to vlan interface.
  
  False positive here cost nothing, while false negative may lead to some
  confusions.
  
  MFC after:	2 weeks
  Sponsored by:	iXsystems, Inc.

Modified:
  head/sys/net/if_vlan.c

Modified: head/sys/net/if_vlan.c
==============================================================================
--- head/sys/net/if_vlan.c	Sat Apr 29 07:59:09 2017	(r317584)
+++ head/sys/net/if_vlan.c	Sat Apr 29 08:28:59 2017	(r317585)
@@ -1591,6 +1591,16 @@ vlan_capabilities(struct ifvlan *ifv)
 	}
 
 	/*
+	 * If the parent interface can do LRO and checksum offloading on
+	 * VLANs, then guess it may do LRO on VLANs.  False positive here
+	 * cost nothing, while false negative may lead to some confusions.
+	 */
+	if (p->if_capabilities & IFCAP_VLAN_HWCSUM)
+		cap |= p->if_capabilities & IFCAP_LRO;
+	if (p->if_capenable & IFCAP_VLAN_HWCSUM)
+		ena |= p->if_capenable & IFCAP_LRO;
+
+	/*
 	 * If the parent interface can offload TCP connections over VLANs then
 	 * propagate its TOE capability to the VLAN interface.
 	 *



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