Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3986457pxb; Mon, 4 Oct 2021 14:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+GWo5Z6RlQrQioX40h5uE+8kcwJ3csr2DJTo5gpGtKHoceld28S8kpHZyxrwGnPCzyd/5 X-Received: by 2002:a17:907:a411:: with SMTP id sg17mr20035933ejc.412.1633382949789; Mon, 04 Oct 2021 14:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633382949; cv=none; d=google.com; s=arc-20160816; b=KBTe4m6XfQ3Acw78He9BSAWoJxyeKWKXwUi2Jz0gj7BKcZyX+pzEToGSfzYh4QQjOg JJ5/G/34qLcnemTzG993vci3zhG2Se1DJRgV9FnpSsr9KJqD8qarexdIanCrn2kycBMt uZTIfjBPjvrpzGUgRspRIVu+Kkf0Dv41maUGD1drJpZiApq3rukI8brXzvwAus0PBbjL pEUN+ZH/+QNCKMtJWT/kDcIj4IzLsd87AEzZDzuwpuzgdm05gKFmRdJYxmLMHpwUx9V2 9PWq+bVGUdVBwdxb2tOc4qxziDop3B1XznuVuA3EVGKy+6x8c6chBKmMGEbogoTh6EE3 Wgjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nXVS+OGkm18JfmJoSrtgpTJGJMO/w5vX8rjhsxrhvuw=; b=iu7dyIa/NR5eHrHXCv09069ugihKpMsqrKvq0Ta4nXAE6AsmA1RJhRAp0bvDIpxDrz SuTDKSft1ZK8ljL+LH+uUW1xPlw/LQ7ozTuHsaaR+Ikzy0hxMGrGalKcP1R1WgYoYfvp 9YaH6TTXv1JHoMSTuy2y1Hj5oYBBio3pkhYPgaX50Pl0i/psvtXSOwTPin7RTnFt/W1v ObMa/SH8RQHYjjBbQz9XylFe58lnr/4PNXtdBPH8mqkE0DMvBno318n1IypSCv7nQUUZ Ff5rkIuHwMCx9t4fC7CTZNQPrTYubpqiBsW61a0+/fP4ciYUbnWxg1DaBLiuH3qF7/U2 oXVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zLdD+e7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si14396498edl.631.2021.10.04.14.28.46; Mon, 04 Oct 2021 14:29:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zLdD+e7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237936AbhJDNho (ORCPT + 99 others); Mon, 4 Oct 2021 09:37:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:48748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237929AbhJDNfp (ORCPT ); Mon, 4 Oct 2021 09:35:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5D8A163235; Mon, 4 Oct 2021 13:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353378; bh=I+zoxOHyrC8Sc9tP4I02hf6JFr5n+FniFXjBeVbVrxM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zLdD+e7MxHm1AFSuYWZs7Zsrf7FEUL41L9dgIZbf0dWMdo3QmMxww4dbaurSEwrt3 N8an2bDcSiL4Mxk0HaUwmT4HWeufMlvJSPAwsYWsVD3r7mhHpQCjGmdNjcZiv//xS9 aBsA+xxWTFqaH26OsI76v4MZsm2WdUWuaD7Cbevc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Lunn , "David S. Miller" , Sasha Levin Subject: [PATCH 5.14 106/172] dsa: mv88e6xxx: 6161: Use chip wide MAX MTU Date: Mon, 4 Oct 2021 14:52:36 +0200 Message-Id: <20211004125048.408605566@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Lunn [ Upstream commit fe23036192c95b66e60d019d2ec1814d0d561ffd ] The datasheets suggests the 6161 uses a per port setting for jumbo frames. Testing has however shown this is not correct, it uses the old style chip wide MTU control. Change the ops in the 6161 structure to reflect this. Fixes: 1baf0fac10fb ("net: dsa: mv88e6xxx: Use chip-wide max frame size for MTU") Reported by: 曹煜 Signed-off-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 1c122a1f2f97..f99f09c50722 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -3657,7 +3657,6 @@ static const struct mv88e6xxx_ops mv88e6161_ops = { .port_set_ucast_flood = mv88e6352_port_set_ucast_flood, .port_set_mcast_flood = mv88e6352_port_set_mcast_flood, .port_set_ether_type = mv88e6351_port_set_ether_type, - .port_set_jumbo_size = mv88e6165_port_set_jumbo_size, .port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting, .port_pause_limit = mv88e6097_port_pause_limit, .port_disable_learn_limit = mv88e6xxx_port_disable_learn_limit, @@ -3682,6 +3681,7 @@ static const struct mv88e6xxx_ops mv88e6161_ops = { .avb_ops = &mv88e6165_avb_ops, .ptp_ops = &mv88e6165_ptp_ops, .phylink_validate = mv88e6185_phylink_validate, + .set_max_frame_size = mv88e6185_g1_set_max_frame_size, }; static const struct mv88e6xxx_ops mv88e6165_ops = { -- 2.33.0