Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2343035rwl; Fri, 6 Jan 2023 05:18:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvmneXbt0kpfdvaWhz++WqQhR8hQ5x1PlbCv/Y/L70PrrF1V4kKDuT3nNDhCU3VWnSUZLF5 X-Received: by 2002:a17:90a:f001:b0:226:6055:776f with SMTP id bt1-20020a17090af00100b002266055776fmr21234699pjb.32.1673011109343; Fri, 06 Jan 2023 05:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673011109; cv=none; d=google.com; s=arc-20160816; b=F5BoMmBdIwVfJF7Vb9tziYkMgk1bKDbMMO6veA2uWpMcNwZ0wmCBm1XpNHDQ9wvm8V SUDsvUWgLZ+QEFWGo06Jb3CI8fjorCzMy7Tu7QYuckx03kmXeWmW/4OxcC51OS7qnQyX pYfnPilzU6kmHAo+zoTRSMGofMfriP7bnbHq03ZBl3sFiPSmiTSkjGTmggTVAZV8Cp8u 5CsOAj7rRAFMTaDRvChgT88R/dltwgw1lpYwf9VcZuo+O9Ybiuk73NmWekmKZcqN0R8v x4lMDlXbd8qCCl1ihzc36e2PeEl1TgbC4+RO3ZHiIs6dVR0kFjFwv2EJz6a/gomTsRm+ 4AZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AIn0omFiQ6ug6+/lFbRBrzJnTT28JoHUtOwQC51TEC4=; b=VVP+lWJ5f2P9qLnzHXlJcE4gm9Apb/8I26VsJJkqBZnHWKpLxdw0nWYKuPQkFPKiH+ SBHe1DAsdJ7PRqSw5ImKmHWkM6piZWYKE176ZQ+ZFMvuJfg3O4r67NE6aLsCACWrmz7s wRAV3I5aRwTR80+tU7BteXNH2nv5SVWBM2YVXjQOEim/YFvzX9ZBWxVVVAurTXBp0NxR Io1FRm6ipRVArqeEg7m40vY1W+9hab7kK9nthS+tI+B9zAItBf9VcUJPpNB+M9BFOizV se9Iy2hBdoExhCFtAezt+N+eaHy9aX0XVMFsJ58/Ltb9DvWJ3DaLAtkqrwimywRASyWw ijNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ZYinozzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b23-20020a17090a991700b002239c987051si1254050pjp.128.2023.01.06.05.18.22; Fri, 06 Jan 2023 05:18:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ZYinozzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233605AbjAFNIi (ORCPT + 54 others); Fri, 6 Jan 2023 08:08:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234535AbjAFNI0 (ORCPT ); Fri, 6 Jan 2023 08:08:26 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B227682E; Fri, 6 Jan 2023 05:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=AIn0omFiQ6ug6+/lFbRBrzJnTT28JoHUtOwQC51TEC4=; b=ZYinozzs4jPqWY/S6TxD0mPRoS 5jNkISXlmT6f5d5CScCjfkfTXRnek//tcI5u1CG5Qv+1i67XJciqksFpmywXzzFTgHJdgEprjLB9E izkBWAr6gRRRdn12i8UYrlgjZMK/yoVkk4AA6t0aA7mboWJ/poWrlQur5wth0AEwX1Ng=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pDmS6-001Klg-Iq; Fri, 06 Jan 2023 14:08:06 +0100 Date: Fri, 6 Jan 2023 14:08:06 +0100 From: Andrew Lunn To: Lukasz Majewski Cc: Vladimir Oltean , Eric Dumazet , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Russell King , Paolo Abeni , Alexander Duyck , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/3] dsa: marvell: Provide per device information about max frame size Message-ID: References: <20230106101651.1137755-1-lukma@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230106101651.1137755-1-lukma@denx.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 06, 2023 at 11:16:49AM +0100, Lukasz Majewski wrote: > Different Marvell DSA switches support different size of max frame > bytes to be sent. This value corresponds to the memory allocated > in switch to store single frame. > > For example mv88e6185 supports max 1632 bytes, which is now in-driver > standard value. On the other hand - mv88e6250 supports 2048 bytes. > To be more interresting - devices supporting jumbo frames - use yet > another value (10240 bytes) > > As this value is internal and may be different for each switch IC, > new entry in struct mv88e6xxx_info has been added to store it. > > This commit doesn't change the code functionality - it just provides > the max frame size value explicitly - up till now it has been > assigned depending on the callback provided by the IC driver > (e.g. .set_max_frame_size, .port_set_jumbo_size). > > Signed-off-by: Lukasz Majewski Reviewed-by: Andrew Lunn FYI: It is normal to include a patch 0/X for a patchset, which explains the big picture of the patchset. Please try to remember this for your next patchset. Andrew