Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp827081lqt; Tue, 19 Mar 2024 05:20:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdR8L8s15yaXN25USXHrvIJHh7DrmOYA7/vZLboSHGC4uKiduvyXhgopxSN+x5VabUqlWZP7Jnr2dpLOw1GbyR/tMPAxO8W9b3npaP2w== X-Google-Smtp-Source: AGHT+IFdTegZeceVxqBebA18EZnpc1EsokV+eIU11l+9p2pNF+8QP57bgC962J4IW9/O7MQ4D+zw X-Received: by 2002:a17:903:41c4:b0:1dd:c938:8f8e with SMTP id u4-20020a17090341c400b001ddc9388f8emr3419154ple.10.1710850838341; Tue, 19 Mar 2024 05:20:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710850838; cv=pass; d=google.com; s=arc-20160816; b=pknG2/WC5eRjJaKceKSZu1VA34wQbBq69vWndbJ5PYAClJRE3YPQ5VK/BHXGltDGjr gOZ+vPqHM7T0l6KsnA57KTx8zCsMlhlvpjHJ9oQmZfv8Ymf0HlIkFGl4drUqgqjIiKO5 vHTA10Q05BOprRFfbBZOkYCJW37IdOEX3xxGRtB13D7++fgzsNHeq4P+8rbnHAfvjdm0 bVglaDfJWjHXKZIlP5PECTYUCvk9f7BoW5TzGY7LeWUIgkhI3KyIZ2d0apOJ7QB7eEMJ cHfwijg5Ct9Gn2IjcObe55dH4JkPsP+OixmzCeXSWxg62bzadoi18HaX7BpmxJyEmBfG ng8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/JUzSNwMGiexr9JmNWOvy45OaME6cGyDhUFtqcrgpGg=; fh=5/kZY4RSTyH9jekzCm/OLSdN4KJveGVozNLX30ogyw4=; b=d/69n4Psx3ZnmySIyd2Ejzi8lqoo/z/d9pTsFwJZ/UC8fAdmsIJMI2wbDcOSqIWS7y HX7Yg+m6OW5fM8eu5Gxwyjf7BO5/d4vmmQq2Q0ewbovFaInDITUsNqsbjoJGw3dwWIpK /qUbzOQe9iZjSvlHDZFMqVeGfCYJLpWAIcE48a1DdtbSM4YhE9PFgXjSxte5jTZ9JiC+ a+RbElfqnE+T8RlbnhxJ5RaXtS+YPkwmunnjgd6d7YEsKn+Gp7JlBjjvq0H7W/pFuy26 4RkX5MZUBXFdKITBNxFQ7UCdcdUjpH8bya0FBVlE7+aXc93pCk+KY+TPKrZT/I+jueTZ 3kOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SbHqefuw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m4-20020a170902db0400b001e00e64c7a4si5382984plx.2.2024.03.19.05.20.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:20:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SbHqefuw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 09C25283E04 for ; Tue, 19 Mar 2024 12:20:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EACC7F7D3; Tue, 19 Mar 2024 12:20:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SbHqefuw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DE037F469; Tue, 19 Mar 2024 12:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710850829; cv=none; b=SJg46Jq2QP1sJ2QfiTBhnXOoz+9v79bJnprKApU5qRhPNRbRDdKvw0s5G459JwhbJXGeYBUXkjXOKmM3q3vbEDXLoHH+77jKCkO99VihpiHi4AE4yl1/ZWaLrvUSPAD75+nOdSTe0DxvfCkG7ngOiz63TKOAJU8fLeMfsmN7oCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710850829; c=relaxed/simple; bh=tNjc7nnylbSais8DsBZzrd94/93ipPvqn/Y1zZVH5cY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TeCIRmvRxJ+lMV/bhShrDULYigrKKVeOWUL15Hj7uE1hKK6b069oJNP3oMYVMWs4UKLz44C236euh930KF2HJXHN7+7ugK58yiK4QISzMYOlZYHe6G5yoU1WnP2frp0OoTEBSJHOP2c3TFgv39/usIzcTfCF6ZmNGsntGd7M+lA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SbHqefuw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83730C433F1; Tue, 19 Mar 2024 12:20:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710850828; bh=tNjc7nnylbSais8DsBZzrd94/93ipPvqn/Y1zZVH5cY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SbHqefuwZCTg0JhEXhmcav1tqE1RvW1qxgfFL3NcJMxJPjvFqXymUJMuM5zHZPQyH RpqEg6luMeCCical3TSfiYCfH13sfAD8yFcNsk51GavJpxfWumLcUBMKrf6sq6Eldf /9bX5L3dLu0QFgZ2565+JYS1Xjeo1f7GHysCEYqFj32ovCjs0jMxBVXrvJDPJVLvB8 kP+xLED7mQkRw9KWRzyRfiu50/5WMhqSLooGP2y9osfNbxjUg/zA6/4X6uaKfQ+6cB skse6WaHo5ZIvL8Q5I3wNfbuaOpBOLOiV2SJuvn69xr90FmtJ15sohFbmZQPc/D9SP L+GFTTTCp1SwA== Date: Tue, 19 Mar 2024 12:20:24 +0000 From: Simon Horman To: Erwan Velu Cc: Erwan Velu , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 iwl-net] i40e: Prevent setting MTU if greater than MFS Message-ID: <20240319122024.GJ185808@kernel.org> References: <20240313090719.33627-2-e.velu@criteo.com> <20240318174503.GE1623@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Mar 19, 2024 at 12:38:03PM +0100, Erwan Velu wrote: > > Le 18/03/2024 à 18:45, Simon Horman a écrit : > > [...] > > Hi Erwan, all, > > > > As a fix, I think this patch warrants a fixes tag. > > Perhaps this one is appropriate? > > > > Fixes: 41c445ff0f48 ("i40e: main driver core") > > Simon > > Isn't that a bit too generic ? Yes, maybe it is. What we would be after is the first commit where the user can hit the problem the patch addresses. > [..] > > > I am fine with this patch, so please take what follows as a suggestion > > for improvement, possibly as a follow-up. Not as a hard requirement from > > my side. > > > > The part of this function between the two hunks of this patch is: > > > > netdev_err(netdev, "Error changing mtu to %d, Max is %d\n", > > new_mtu, frame_size - I40E_PACKET_HDR_PAD); > > > > My reading is that with this patch two different limits are > > checked wrt maximum MTU size: > > > > 1. A VSI level limit, which relates to RX buffer size > > 2. A PHY level limit that relates to the MFS > > > > That seems fine to me. But the log message for 1 (above) does > > not seem particularly informative wrt which limit has been exceeded. > > I got some comments around this. > > I wanted to keep my patch being focused on the mfs issue, but I can offer a > patch to get a similar output for this. What WRT stands for ? > > > I wanted also to make another patch for this : > > dev_warn(&pdev->dev, "MFS for port %x has been set below the default: > %x\n",pf->hw.port, val); > > The MFS reported as hex without a "0x" prefix is very misleading, I can > offer a patch for this too. FWIIW, I think handling these questions in follow-up patches is fine.