Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp256906pxb; Wed, 3 Nov 2021 03:48:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyrtwyraS3YNsFGj3/yCeQSG1uY0wRCfgvPFBIc3Hl+1y/lU18CnoYQRfobciJUgAF1mhd X-Received: by 2002:a50:8e19:: with SMTP id 25mr38684974edw.47.1635936532662; Wed, 03 Nov 2021 03:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635936532; cv=none; d=google.com; s=arc-20160816; b=UUFbFF5tUBweVAU7erdlDkj4UNX0j/ceBqJuleLVG5zZ2ZWaEsL9jNnc4RoJ+etdKg 5D9i9hDjh5AUT5Q0kPkkIzCJKq7QwTUtQBsKjY5Azkc23jd02kJqhj8t/shSsgUC/GlQ DqKFD887s5LFM+zEo/x7KBJ08OPFUEUPVV49Q0dddHZab4+sHd7sUNWtiJxHG9p0wEgp hDUJuBKgQaILfqbr6TAwKT3T6KfQa8LTEqP1EI27tG4knHDr2n9c63uOmV5l5+HFmZpP YJwoAnzHYJ3rIxofvMd8CSy0yO57q+nFhcI7Lu+aKsHp5QN+TMtTg/H7h+YaNvV2aAA3 x8eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=fQvwUR1GkDC5A3L4vKfVz174T1nRGcTthlFbfoydpDI=; b=PGv288XgQ+AC5fsBKWrUj9cLTeW/ZXvnPhrkNt/KUEGzYX5fO24xs0+JvcKUllYCid oqdq3QjT1Rg4M1UUMumrvvq1XLrvYrpdwe7okvRlfKBPAXx4xp8MbIhfgBk2wRceEpwr HbibxEA940BmUihaMXGLQDQ7qmnJB8eTOv9F1H4AhIaJxbjowqoICX5MZWpauwl35rSJ XrcWIk3UQMS8V/2YPGi+VB9epCJYzSXQyKaysdTS5Hn9MijKwHxIOgORqNbIqMK/e17K mYObCL3mJrTb6umIiXmb3QOO82lkrrEahT/aTP7WYRjsvTy2snTVOaCP+ZTLhxr6avXs 4NpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QT14xJnK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji9si3533279ejc.252.2021.11.03.03.48.29; Wed, 03 Nov 2021 03:48:52 -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=@suse.de header.s=susede2_rsa header.b=QT14xJnK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbhKCKtP (ORCPT + 99 others); Wed, 3 Nov 2021 06:49:15 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:44292 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbhKCKtO (ORCPT ); Wed, 3 Nov 2021 06:49:14 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A32352191A; Wed, 3 Nov 2021 10:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1635936397; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fQvwUR1GkDC5A3L4vKfVz174T1nRGcTthlFbfoydpDI=; b=QT14xJnKpiTDJxFOXjUBT+lJMzkTLRSGAtigGNEkB1YWrlwGY//JNuKM8LnMJZq1ixwl/z VGHFFwWLSzWEye1WyNowmDi69phPPo4fZHAKzoy1EKmMpjTgRGLdmfI7TbPslrjXwDy5k6 MW97IzphkyMy44AvAh+aO2AvL4gXsNY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1635936397; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fQvwUR1GkDC5A3L4vKfVz174T1nRGcTthlFbfoydpDI=; b=2Mt5P6Gpspyz8Flhko6KrbEYXe+paC1UgKx2+kd5R8t8lcG6xLXg2KR8DGF6ILknZK4bEY iknnLNTrfmj2xtBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DF08513FE9; Wed, 3 Nov 2021 10:46:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lNrCMoxogmGpHQAAMHmgww (envelope-from ); Wed, 03 Nov 2021 10:46:36 +0000 Subject: Re: [PATCH v2 0/6] Add FDMA support on ocelot switch driver To: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , "David S. Miller" , Jakub Kicinski , Rob Herring , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Andrew Lunn Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni References: <20211103091943.3878621-1-clement.leger@bootlin.com> From: Denis Kirjanov Message-ID: <3e7b8321-c93c-5afe-8cbd-977333763888@suse.de> Date: Wed, 3 Nov 2021 13:46:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211103091943.3878621-1-clement.leger@bootlin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: ru Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 11/3/21 12:19 PM, Clément Léger пишет: > This series adds support for the Frame DMA present on the VSC7514 > switch. The FDMA is able to extract and inject packets on the various > ethernet interfaces present on the switch. > > While adding FDMA support, bindings were switched from .txt to .yaml > and MAC address reading from device-tree was added for testing > purposes. Jumbo frame support was also added since it gives a large > performance improvement with FDMA. The series should be prefixed with net-next > > ------------------ > Changes in V2: > - Read MAC for each port and not as switch base MAC address > - Add missing static for some functions in ocelot_fdma.c > - Split change_mtu from fdma commit > - Add jumbo support for register based xmit > - Move precomputed header into ocelot_port struct > - Remove use of QUIRK_ENDIAN_LITTLE due to misconfiguration for tests > - Remove fragmented packet sending which has not been tested > > Clément Léger (6): > net: ocelot: add support to get port mac from device-tree > dt-bindings: net: convert mscc,vsc7514-switch bindings to yaml > net: ocelot: pre-compute injection frame header content > net: ocelot: add support for ndo_change_mtu > net: ocelot: add FDMA support > net: ocelot: add jumbo frame support for FDMA > > .../bindings/net/mscc,vsc7514-switch.yaml | 184 +++++ > .../devicetree/bindings/net/mscc-ocelot.txt | 83 -- > drivers/net/ethernet/mscc/Makefile | 1 + > drivers/net/ethernet/mscc/ocelot.c | 23 +- > drivers/net/ethernet/mscc/ocelot.h | 3 + > drivers/net/ethernet/mscc/ocelot_fdma.c | 754 ++++++++++++++++++ > drivers/net/ethernet/mscc/ocelot_fdma.h | 60 ++ > drivers/net/ethernet/mscc/ocelot_net.c | 37 +- > drivers/net/ethernet/mscc/ocelot_vsc7514.c | 15 + > include/soc/mscc/ocelot.h | 7 + > 10 files changed, 1075 insertions(+), 92 deletions(-) > create mode 100644 Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml > delete mode 100644 Documentation/devicetree/bindings/net/mscc-ocelot.txt > create mode 100644 drivers/net/ethernet/mscc/ocelot_fdma.c > create mode 100644 drivers/net/ethernet/mscc/ocelot_fdma.h >