Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1388989ybi; Thu, 30 May 2019 16:57:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZHXzYd2oeIwSe3wCkqd86wEh4iuKn51gekervHUvUK3RIgrf8oqg4LbvWAprsletA9fDm X-Received: by 2002:aa7:9e9a:: with SMTP id p26mr6388221pfq.176.1559260669701; Thu, 30 May 2019 16:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559260669; cv=none; d=google.com; s=arc-20160816; b=wtsweHsZEXACZAzHf93dwwwWZpBzWwbdG5Y1FIN+7N57KmG9DKRWf+/cdSUjDPYRYC GDqCZq9vrTrbRFnf3u6pKSvlNaCt2TRxPX1ywRnuxgfLJnw3zIootMLkq4SnNk7mQs8E 6GyVUv2rZGdhM7mwkzZC4WZlX0ZmeWNM00XRh9BiujSYcCUe/csH2/ihvmrleg1a8JIf L5lFqk103oa7E9iTz7xK+lhB/Q0z0Nbph5d9tJVIu8zvEo7g6qyc9NQzOnHBFXh/o+OB 1W07RxYgPfIZ34Llh9fg5n6r/kQFaI9eTm1J8orSA+cWeAeDRQBp5nJOjC2P49k3i1UY xVXg== 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=ci6z0DpBFa7HuJWAHxGdHuYnW8mClDBsdXXC0tted/Q=; b=YuT87uf1XltlhRJ/VAoYUxJOdTnZYTCU05G7bwYocGJumlk1SQ6uj1NX6ubtLPnSEg s4g7a2EHrZyETZ6I0gtbaUo/zgaNYyffrYIYFCtPrAjTw6y24dUfWCwwX1O47yvE5Aw1 AS/viJZDd84erewNnyexvpwwLyNwcv53xirkg+69DX3WYPaQx7qpbg8F/+2g8aStxFWP WlbyWLPuvtl5yli3kSmlUAQu7Men1EZsD6HFx2WntLqLR/4XdQ8SAKqQPHUzcKZK+2v4 1iHF1Z5u2kkpT8/begvsDKMqFzZIq5KelF7/m4aFw/+wVfI28oPG43kr398XPJhCnlvs bUAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MD0KhmNl; 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 r11si4243629plo.360.2019.05.30.16.57.33; Thu, 30 May 2019 16:57:49 -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=MD0KhmNl; 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 S1726674AbfE3X4T (ORCPT + 99 others); Thu, 30 May 2019 19:56:19 -0400 Received: from mail-pf1-f182.google.com ([209.85.210.182]:44990 "EHLO mail-pf1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfE3X4T (ORCPT ); Thu, 30 May 2019 19:56:19 -0400 Received: by mail-pf1-f182.google.com with SMTP id c9so1702380pfc.11; Thu, 30 May 2019 16:56:19 -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=ci6z0DpBFa7HuJWAHxGdHuYnW8mClDBsdXXC0tted/Q=; b=MD0KhmNl+8nPftm4tU/0uii3Fi1m2zcXy7+Nk+4Vae1qpwqaE7vkkZHlor8ZGrc7nF KNvdGW3Bw65OsNoUFdE8pLIce3OzVcJW9+duoU+MsQ0AuQcKBOU2Ri4AjVDIU3kZyPw8 denkj6wnL0oIQKXoEO1qQEBNFqdRkLw41FGgzeo3Wv7CA85+y24KC1oLsT5zo1I/y/tV R2+Qkfc6+E3Q4BM17qRSnkqQQNRFbfz95rmIIn+hkWtrSkPN7LtbaPEsrABp9+Y/6hjZ R01C1RVlSZmJYdxl4o/RYMdu9FlKgjAaYIpmLTi2Cj4Sz0ILXXAbech9rQJLa9GSuvnF yhRg== 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=ci6z0DpBFa7HuJWAHxGdHuYnW8mClDBsdXXC0tted/Q=; b=ifJuOwyBVCYdsRhBmV1Bmm1rvKxanOWQ8Oahe/LuyJ5rkzX6x1dujBOTxm8KjRFYRi 1YKAMb2hpb9qCyypi0IYqZg5qNMbKHOoC0iaI9Ie5c8bNUlzFXPCy3NxUDY2Syy+kwWP Vtq+CTTMGdvIjBK5UXi3BSXQ7ya9+B/Qbu/cFBeKKRrkiYkbeVnkXBT5VVrRVUIAPdYZ YWPTYmfhVLhX3bGJCyv2ZdWS57+BJGhfnAW3wVl1GCrcZxzWaPddwyrsFhiiwOwEkDY6 Q+d71ebOFomef7tZeAGTprO1EMh8qclqCXtInDdGiEDzHQsXDun0NP2E9zyDZX3lCfLX iaXw== X-Gm-Message-State: APjAAAX1svgUMKZx8HLZLAtuh/usFEsLlCvDPr4HklqQDwkT4FKIsBeL nSZc7TdCSNe94oJEHlB1foQJqJPu X-Received: by 2002:a63:18e:: with SMTP id 136mr5987289pgb.277.1559260578504; Thu, 30 May 2019 16:56:18 -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 124sm4830985pfe.124.2019.05.30.16.56.16 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 16:56:17 -0700 (PDT) Subject: Re: Driver has suspect GRO implementation, TCP performance may be compromised. To: Alexander Duyck , Stephen Hemminger Cc: Eric Dumazet , Paul Menzel , Jeff Kirsher , intel-wired-lan , netdev , Linux Kernel Mailing List References: <8627ea1e-8e51-c425-97f6-aeb57176e11a@gmail.com> <20190529093548.3df7ee73@hermes.lan> From: Eric Dumazet Message-ID: <50261bc0-2732-5adb-1ff6-a4ac040e39b1@gmail.com> Date: Thu, 30 May 2019 16:56:15 -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/30/19 3:52 PM, Alexander Duyck wrote: > Actually I think there are some parts that don't have any receive > limits that are supported by the e1000 part. What ends up happening is > that we only drop the packet if it spans more than one buffer if I > recall correctly, and buffer size is determined by MTU. > > I always thought MTU only applied to transmit since it is kind of in > the name. As a result I am pretty sure igb and ixgbe will be able to > trigger this warning under certain circumstances as well. Also what > about the case where someone sets the MTU to less than 1500? I think > most NICs probably don't update their limits in such a case and > wouldn't it also trigger a similar error? > Linux does not have a notion of MRU, mtu is used for both tx and rx. Most NIC drivers allocate skb of the maximal size (derived from netdev->mtu) and program the NIC to drop packets bigger than X bytes (X also derived from netdev->mtu) Another interesting point is that Paul host is receiving big packets, that means that one host in his local network is overriding the 1500 MTU :) Eventually we could add a netdev->mru and allow few drivers to set their maximal mru, if bigger than netdev->mtu. e1000e would probably set netdev->mru to 2048 - sizeof(ethernet headers), if the driver is operating at MTU = 1500