From patchwork Tue Feb 16 01:08:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sven Van Asbroeck X-Patchwork-Id: 12089301 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 615ADC433E9 for ; Tue, 16 Feb 2021 01:09:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 330FE64DBA for ; Tue, 16 Feb 2021 01:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbhBPBJO (ORCPT ); Mon, 15 Feb 2021 20:09:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbhBPBI4 (ORCPT ); Mon, 15 Feb 2021 20:08:56 -0500 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 995F5C061786; Mon, 15 Feb 2021 17:08:16 -0800 (PST) Received: by mail-qk1-x732.google.com with SMTP id f17so8118584qkl.5; Mon, 15 Feb 2021 17:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0Aes0eoYKnBU/4hkfiAkJ64eQvBdU6N5U0fFVJjBCKI=; b=vTlHsUpRTdKrqlC+Ae8ZKyAIJeKkh6CDFCMPfU5h2n24vxIhkXw0ElfxqCvmJNnlDX kwuXX/x4o/qydgckI5KFZzhaKDzvnSyHQYvRMMtajeXW0SO0IN1fXL9vn8/ulnSTs+Kb x4jAt7y+gbIga+19a1OT31dLggXiNCHwuHGIafwU/str4LI98oVbtD56o+7nlMFbPcUv zffkjmualGd0ZjHNtKd2MN3W/YB1wLd80JK2OTbL+cC11nk7ALmpiWWdbVcbmQUMgbdi kTXNJeVaO0e/8FstZKpTgUE+7HvHC92h8LM2Lr/Cq5or3u6de4c8SziyYMuFhakGERms xfDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0Aes0eoYKnBU/4hkfiAkJ64eQvBdU6N5U0fFVJjBCKI=; b=W/1Z9NYtk+LcSW6OY68iVsjfcqPkLxAIewa/0Jh1tZhOgcIEzi/liLqzqPkrI8oPpO Qfgg2USTgEAw9uZlOevYUabNeYbvMgubam4edykWKX20yAvmUSEI0AhwnloWMV747qBm 52n5P4Xu7fNkF4RRAyJKll4fqzwTnDjk7KSUMRDfz3ORMdksDOgDZQQj7zPMGwEdMMOP HOnEpWs8/Q1R98UnZoc0Jvc7UaQOS4VES0m6fiX3Y4hi3jBvn+ic0UY//WKng3Dd74U9 8/UWj1iKSrkXkRsYvRDkJMdt4kK18bCYYRki+LkwG7qAuYflQcSo2nmh3s5p2j0Y3aTb hPGQ== X-Gm-Message-State: AOAM530DHgjd3pKq/HH7OJ99PAKKwAg0swGBFV1HhzoU3/B+r2sYu3eT LMnO1e1v5FC9qJ+COwgmYOQ= X-Google-Smtp-Source: ABdhPJwECynChS5amFPmny7Jdwt/bzBjvSG3kwr2Xw2fZguyWJaXCDSZldULaq2eA/fydga8+wL7SQ== X-Received: by 2002:a37:5b46:: with SMTP id p67mr8731510qkb.412.1613437695584; Mon, 15 Feb 2021 17:08:15 -0800 (PST) Received: from localhost.localdomain ([198.52.185.246]) by smtp.gmail.com with ESMTPSA id b20sm508830qto.45.2021.02.15.17.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 17:08:15 -0800 (PST) From: Sven Van Asbroeck X-Google-Original-From: Sven Van Asbroeck To: Bryan Whitehead , UNGLinuxDriver@microchip.com, David S Miller , Jakub Kicinski Cc: Sven Van Asbroeck , Andrew Lunn , Alexey Denisov , Sergej Bauer , Tim Harvey , =?utf-8?q?Anders_R=C3=B8nningen?= , Hillf Danton , Christoph Hellwig , Willem de Bruijn , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v3 3/5] TEST ONLY: lan743x: limit rx ring buffer size to 500 bytes Date: Mon, 15 Feb 2021 20:08:04 -0500 Message-Id: <20210216010806.31948-4-TheSven73@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210216010806.31948-1-TheSven73@gmail.com> References: <20210216010806.31948-1-TheSven73@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Sven Van Asbroeck Signed-off-by: Sven Van Asbroeck --- To: Bryan Whitehead To: UNGLinuxDriver@microchip.com To: "David S. Miller" To: Jakub Kicinski Cc: Andrew Lunn Cc: Alexey Denisov Cc: Sergej Bauer Cc: Tim Harvey Cc: Anders Rønningen Cc: Hillf Danton Cc: Christoph Hellwig Cc: Willem de Bruijn Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org drivers/net/ethernet/microchip/lan743x_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index 6b642691a676..90738ec5e7ec 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -1973,7 +1973,7 @@ static int lan743x_rx_init_ring_element(struct lan743x_rx *rx, int index) struct sk_buff *skb; dma_addr_t dma_ptr; - buffer_length = netdev->mtu + ETH_HLEN + 4 + RX_HEAD_PADDING; + buffer_length = 500 + ETH_HLEN + 4 + RX_HEAD_PADDING; descriptor = &rx->ring_cpu_ptr[index]; buffer_info = &rx->buffer_info[index];