From patchwork Wed Sep 18 08:18:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Barker X-Patchwork-Id: 13806665 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 743D717A5BC; Wed, 18 Sep 2024 08:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726647543; cv=none; b=TlZ0Q4J/+pPNalw5UEw++XXBMxnzAI149BzMiFySVAe8VtyOEJmE1CUxsWMeeLQ5oyXoP/JxR0O7aHFwsvx5LycdJAtsk+RBSwkh2//ON6oWsmuOOeZmMS7GKYuhjgtWTMKFB018PcrlTD1Vi3/As8t4Un5PxZ96Qyht3m5LhdI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726647543; c=relaxed/simple; bh=J2qxE7LcctaThLnmvdscvX9EQ0/8sUTGAH5Tr/VsKbU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Af/w0zGyVuhRxUPJmihDLUmF2Ju2OuZiuFGMLQMl8GGVIbTUaeVLmDlyd5KfPgqvGaZPBlgiE2+/1/kFTYlMKSwWhNk11FmnQaKEbyR8p9Lbe5dPi1Lf7dhnUKPCfoBoPQuQNa3wGEp3t+yvbAV2fElO3iN09OiwbeiynfMSNbs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.10,238,1719846000"; d="scan'208";a="219067069" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 18 Sep 2024 17:18:54 +0900 Received: from GBR-5CG2373LKG.adwin.renesas.com (unknown [10.226.93.61]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 646B24005630; Wed, 18 Sep 2024 17:18:49 +0900 (JST) From: Paul Barker To: Sergey Shtylyov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?q?Niklas_S=C3=B6derlund?= , Andrew Lunn Cc: Paul Barker , Biju Das , Claudiu Beznea , Lad Prabhakar , Mitsuhiro Kimura , Geert Uytterhoeven , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [net PATCH v3 0/2] Fix maximum TX/RX frame sizes in ravb driver Date: Wed, 18 Sep 2024 09:18:37 +0100 Message-Id: <20240918081839.259-1-paul.barker.ct@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 These patches fix a couple of bugs in the maximum supported TX/RX frame sizes in the ravb driver. * For the GbEth IP, we were advertising a maximum TX frame size/MTU that was larger that the maximum the hardware can transmit. * For the R-Car AVB IP, we were unnecessarily setting the maximum RX frame size/MRU based on the MTU, which by default is smaller than the maximum the hardware can receive. For the R-Car AVB IP, the maximum TX frame size should be 2047 (not 2048), but additional work will be required to validate that change so it is not included in this series. Changes v2->v3: * Pick up Reviewed-by tag and suggested comment improvement from Niklas. Changes v1->v2: * Rebase on net tree as these are both bugfixes. * Pick up Reviewed-by tags. Paul Barker (2): net: ravb: Fix maximum TX frame size for GbEth devices net: ravb: Fix R-Car RX frame size limit drivers/net/ethernet/renesas/ravb.h | 1 + drivers/net/ethernet/renesas/ravb_main.c | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-)