From patchwork Mon Aug 14 21:13:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Graeme Smecher X-Patchwork-Id: 13353290 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71F88C04A94 for ; Mon, 14 Aug 2023 21:14:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231593AbjHNVOF (ORCPT ); Mon, 14 Aug 2023 17:14:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbjHNVN6 (ORCPT ); Mon, 14 Aug 2023 17:13:58 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CCF611A for ; Mon, 14 Aug 2023 14:13:57 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1bbc87ded50so29193125ad.1 for ; Mon, 14 Aug 2023 14:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=threespeedlogic-com.20221208.gappssmtp.com; s=20221208; t=1692047637; x=1692652437; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=80RjFn6Vs8u8C6d+eamI1sRVJOT4DD9HBYJK0U871ow=; b=StSdRI130g5YWhrnuDlHl0WSQSZtyttN930OjRq2q2C7omUGsABBKtEmy8LEpdiLjo MBfF66CDtQU4A0uwgYCcUluKvFWGuw2TnCCIw77DOVtyuSANpvJhVHMdbGpleW6uI4im CMlW/WvXQPo/f+8IsTS3oL0dI++KMzrsQ/swAhe4oO8PR7D0z2Zjfiop6ScaZZD5DzcN Mxa891E/WSBVg0RA5/QKMsJc9i1GpdG7sYj2iD4xVK9O2p9/6J7zdBrfdaAbT/b0Vr6A DTs8zDnEbrr5p0+m/j5D+WPCrvBshVMrO4QwxmV/XeS6k+85VO/KMewzvvuW3chBuYb2 SLtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692047637; x=1692652437; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=80RjFn6Vs8u8C6d+eamI1sRVJOT4DD9HBYJK0U871ow=; b=Dbsn0gWiJ3tUdPafvLc3j36K076B3JjAZ8pe9vKz6MEdla0IjhNahJ5+aMtZsOg952 FN2GahDeDf0QFrbzRumHKDeL2jXMcRyoNX6hY2kWRnXnVjwHUHhDZN89wRSfDo8uHnfi XsVWswln5/27fib01O0lns95RKsp4fqZtwvOEn31JGZKTah2ucVLPfucEZ2YO0dShV6+ c+OxgQAP3MlP2kPf9RSw/T23k0iewHRageaUd4suijX0ahFNokTRx/5HoeWp3GyP2C4H C9BsrcEEf3NpPzMRk9UFHerLlXXi92WLffaayBtC1k0edGS3UI3JGb7yKNl0WRAmnnzX 6kTA== X-Gm-Message-State: AOJu0Yw4AbXgUfaROnOUM3JiCIMzTo4l4W3SOO/j0kr6STPZKDYpwf2L hrC0AqF+jrt0hAnRr4Q2zaabHg== X-Google-Smtp-Source: AGHT+IGOpMNm/sFxLM9qPUz/M8y/sfURY5LBtA4luqBBp8PXIzJ+pHW/oT8tTEI0HMoOnks8NT42hg== X-Received: by 2002:a17:902:b907:b0:1bb:1523:b2d7 with SMTP id bf7-20020a170902b90700b001bb1523b2d7mr9167832plb.14.1692047636829; Mon, 14 Aug 2023 14:13:56 -0700 (PDT) Received: from localhost.localdomain (d205-250-120-28.bchsia.telus.net. [205.250.120.28]) by smtp.gmail.com with ESMTPSA id u18-20020a17090341d200b001b05e96d859sm9894883ple.135.2023.08.14.14.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 14:13:56 -0700 (PDT) From: Graeme Smecher Cc: Graeme Smecher , Grygorii Strashko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Wolfram Sang , Lorenzo Bianconi , Shay Agroskin , Rob Herring , Yang Yingliang , Marek Majtyka , linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ti/cpsw_new: Expose the same module parameters as ti/cpsw. Date: Mon, 14 Aug 2023 14:13:21 -0700 Message-Id: <20230814211323.3272487-1-gsmecher@threespeedlogic.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The "old" CPSW driver (cpsw.c) exports the following module parameters: - ti_cpsw.debug_level - ti_cpsw.ale_ageout - ti_cpsw.rx_packet_max - ti_cpsw.descs_pool_size This patch exposes the same parameters for the "new" CPSW driver: - ti_cpsw_new.debug_level - ti_cpsw_new.ale_ageout - ti_cpsw_new.rx_packet_max - ti_cpsw_new.descs_pool_size It seems like consistency between the two drivers is a reasonable goal. Signed-off-by: Graeme Smecher --- drivers/net/ethernet/ti/cpsw_new.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw_new.c b/drivers/net/ethernet/ti/cpsw_new.c index c61e4e44a78f..6d05ec288792 100644 --- a/drivers/net/ethernet/ti/cpsw_new.c +++ b/drivers/net/ethernet/ti/cpsw_new.c @@ -45,9 +45,20 @@ #include static int debug_level; +module_param(debug_level, int, 0); +MODULE_PARM_DESC(debug_level, "cpsw debug level (NETIF_MSG bits)"); + static int ale_ageout = CPSW_ALE_AGEOUT_DEFAULT; +module_param(ale_ageout, int, 0); +MODULE_PARM_DESC(ale_ageout, "cpsw ale ageout interval (seconds)"); + static int rx_packet_max = CPSW_MAX_PACKET_SIZE; +module_param(rx_packet_max, int, 0); +MODULE_PARM_DESC(rx_packet_max, "maximum receive packet size (bytes)"); + static int descs_pool_size = CPSW_CPDMA_DESCS_POOL_SIZE_DEFAULT; +module_param(descs_pool_size, int, 0444); +MODULE_PARM_DESC(descs_pool_size, "Number of CPDMA CPPI descriptors in pool"); struct cpsw_devlink { struct cpsw_common *cpsw;