svn commit: r358978 - stable/12/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Sat Mar 14 01:42:22 UTC 2020


Author: np
Date: Sat Mar 14 01:42:21 2020
New Revision: 358978
URL: https://svnweb.freebsd.org/changeset/base/358978

Log:
  MFC r357474:
  
  cxgbe(4): Only checksummed TCP should be considered for LRO.
  
  This avoids the per-packet nanouptime in tcp_lro_rx for traffic that's
  not even TCP.
  
  Sponsored by:	Chelsio Communications

Modified:
  stable/12/sys/dev/cxgbe/t4_sge.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_sge.c	Sat Mar 14 01:38:03 2020	(r358977)
+++ stable/12/sys/dev/cxgbe/t4_sge.c	Sat Mar 14 01:42:21 2020	(r358978)
@@ -2047,7 +2047,9 @@ t4_eth_rx(struct sge_iq *iq, const struct rss_header *
 	}
 
 #if defined(INET) || defined(INET6)
-	if (iq->flags & IQ_LRO_ENABLED) {
+	if (iq->flags & IQ_LRO_ENABLED &&
+	    (M_HASHTYPE_GET(m0) == M_HASHTYPE_RSS_TCP_IPV4 ||
+	    M_HASHTYPE_GET(m0) == M_HASHTYPE_RSS_TCP_IPV6)) {
 		if (sort_before_lro(lro)) {
 			tcp_lro_queue_mbuf(lro, m0);
 			return (0); /* queued for sort, then LRO */


More information about the svn-src-stable mailing list