Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5295391ybi; Tue, 28 May 2019 10:36:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiAaUtcaUesX284Osdv71w9vCm64OMi1/kp2hLGDo9QwlLZFpiKIIRYfrPiZU9hbOhf+qy X-Received: by 2002:a62:14d7:: with SMTP id 206mr50282992pfu.73.1559064978040; Tue, 28 May 2019 10:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559064978; cv=none; d=google.com; s=arc-20160816; b=Ld00RdwYjHZcV5GQZkkeKElKntl5tEq4oKKLbEY8AVomVV1Bxyd1USnBtohIQNGxo8 HqeWjkNm+bspAOlPSN2Xmj6QTLF9MiWPgWdaUhFH+g+IGpyQ0qQ0z8ZMxHvaZNDh6Hpz WEcNwFjePYV/dhGB3J0urtPVtpV6QL9Ftj8m2erZxVGqaJwq6I66tmEVJ4/t8MgggL9k zuBniZ40W0JvVxfNAmEJzOHY7LnoKinN63gc0pW5rz9qTJX0yyO7hz81SVspAnOrM9/P rEztG8263MKGJwLLvsY6eCRsPYdkca9J3Yg6UbXIIF2mMX96RZpG50MyThbbpzxkYI5N qEvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=vgUukrIUAW33rXBEBk4q8j6YDX0VbSNRvM27fcNOQus=; b=kBYaLd96a+MOAplEItpxAE5/+TYZRNGlgeBFU4/wAO3BMBHO5xG2sQWsaiK/TY6M8S 9CGkaYcxS7yYTK0E7J45Jj04cYfRTeYGJ0pFWp+imKBQZ2h0By3JMAwZQpUytaC2/bHk aJt2m1ZEwEeKraAXamGHkX3uRRN4Mm/aQUyhCUN9aBKNJkZ5l0WgcAomzCmtwgqV793M kIaMULmSZgpy5BakIuV/L6EOxFdwdZyqUjpqBjRLSS7kioXiVcos+l2v4tmIkgTiAhiM V4kVK8Z4TXTqfW4DVSEMbfuY+8GsZcF4u9GOApXwftTGe02pPSk1Z33gi6pQPfu4ITZj Lujg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qiIXD97Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si4342008pjk.66.2019.05.28.10.36.01; Tue, 28 May 2019 10:36:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qiIXD97Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbfE1RTD (ORCPT + 99 others); Tue, 28 May 2019 13:19:03 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42598 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbfE1RTC (ORCPT ); Tue, 28 May 2019 13:19:02 -0400 Received: by mail-pl1-f196.google.com with SMTP id go2so8596458plb.9; Tue, 28 May 2019 10:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vgUukrIUAW33rXBEBk4q8j6YDX0VbSNRvM27fcNOQus=; b=qiIXD97ZvDql70kTKKS9X4xm3xxDOG35kgByIN/usE5C3DHxjZMHhJv+DHBHl8KBdO TCi0KVHo0oAQmtuu2Q8mD+pxDqAedfY6fUZywhgSHmzXR842hjutueEa/WhwBXsssThC RSIY/VZq60PYW4sXqtc/8hC4HBx0MSTEa2aMRAPKCommtvAjdsjGZXVFlsYZ+YGPMURz Sqy0X5PZO01U2T1Ydgy03yJNavka7E36iFy2jMGqHE/dNdRJRYo4fyo3rdDXShyYCJAw SC2jQcfbcKlGjyjc91nk9GvoooSsdOmkghKOAm+pqxYt/I5rUtWuhEC5Bn+Njhs4O/Fm MYIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vgUukrIUAW33rXBEBk4q8j6YDX0VbSNRvM27fcNOQus=; b=so2qKA0tpVoDrY30K0C6nRGurgKxNs/BdDrx0P1fxLlXsyQyzCkD5ByfZ+czmVp/N4 SWcVdowQ+4kxtfT8fouaj3DVzxAzw4mHuvyzFWd4aOd3QZJVInsmVclznnZeRJkjex+M rqCvLk6vwj7AjH+msgjdlSf7kSvZ3HRbTBC/SaTVcBQqY4p+zZHccAok1s+FKbqjlVVZ NXfZ4X1k9HKgXJU0ZLRxa+I5xWYIRTGwg/mCIjz43V5L76CsGFO5BU01fDSDCqQQUat+ oODWFPHiOpwUX6sx24RmbORJ8NumiDRU1tmQ3qCzY0OIIgbhmV7bReFdO3z/VoRPAczl xqWA== X-Gm-Message-State: APjAAAXtKOvJhwKCxxtshBMITOCdppURkY41niFKYKCXOqZMvhhP/ezf x/BDPtODnJMENb834JCRJd1+Jyt7 X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr27735710plb.150.1559063941574; Tue, 28 May 2019 10:19:01 -0700 (PDT) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id s27sm19253690pfd.18.2019.05.28.10.18.59 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 28 May 2019 10:19:00 -0700 (PDT) Subject: Re: Driver has suspect GRO implementation, TCP performance may be compromised. To: Paul Menzel , Jeff Kirsher Cc: intel-wired-lan@lists.osuosl.org, Eric Dumazet , netdev@vger.kernel.org, Linux Kernel Mailing List References: From: Eric Dumazet Message-ID: <8627ea1e-8e51-c425-97f6-aeb57176e11a@gmail.com> Date: Tue, 28 May 2019 10:18:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/28/19 8:42 AM, Paul Menzel wrote: > Dear Linux folks, > > > Occasionally, Linux outputs the message below on the workstation Dell > OptiPlex 5040 MT. > > TCP: net00: Driver has suspect GRO implementation, TCP performance may be compromised. > > Linux 4.14.55 and Linux 5.2-rc2 show the message, and the WWW also > gives some hits [1][2]. > > ``` > $ sudo ethtool -i net00 > driver: e1000e > version: 3.2.6-k > firmware-version: 0.8-4 > expansion-rom-version: > bus-info: 0000:00:1f.6 > supports-statistics: yes > supports-test: yes > supports-eeprom-access: yes > supports-register-dump: yes > supports-priv-flags: no > ``` > > Can the driver e1000e be improved? > > Any idea, what triggers this, as I do not see it every boot? Download > of big files? > Maybe the driver/NIC can receive frames bigger than MTU, although this would be strange. diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index c61edd023b352123e2a77465782e0d32689e96b0..cb0194f66125bcba427e6e7e3cacf0c93040ef61 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -150,8 +150,10 @@ static void tcp_gro_dev_warn(struct sock *sk, const struct sk_buff *skb, rcu_read_lock(); dev = dev_get_by_index_rcu(sock_net(sk), skb->skb_iif); if (!dev || len >= dev->mtu) - pr_warn("%s: Driver has suspect GRO implementation, TCP performance may be compromised.\n", - dev ? dev->name : "Unknown driver"); + pr_warn("%s: Driver has suspect GRO implementation, TCP performance may be compromised." + " len %u mtu %u\n", + dev ? dev->name : "Unknown driver", + len, dev ? dev->mtu : 0); rcu_read_unlock(); } }