From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70E9DA00C2; Mon, 22 Aug 2022 01:20:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 426AC41132; Mon, 22 Aug 2022 01:20:05 +0200 (CEST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id E95B0410FA for ; Mon, 22 Aug 2022 01:20:03 +0200 (CEST) Received: by mail-pj1-f48.google.com with SMTP id s31-20020a17090a2f2200b001faaf9d92easo12288167pjd.3 for ; Sun, 21 Aug 2022 16:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alkira-net.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=62V9H5/vwngnmuyDkLvkrDSaRGkTc++Cw/6w2qt596A=; b=O9QW60y1jPOR7AMisxuCLlW86tAzBTzd+1HjT0xu9cUPJ9DebOGEwkYgZvdIDVOfCo dBRe/NcWHA1AeRwURWJRJ/qc/JCSLn6/3kK4hWYUp7PKNir8wEHVBstSeO8hy0xD67rh QMX4XjFTIePBNsDfwAz2J8OtDvdBmVHs73S3NXe2tRuVgDiI+ykDcwkbcj6Vyif91xmn Bw/6vM0GrwuMpM0NEgb0JNrPN+0YGviMyyD+G+34XOHJln6TQxGYjR4pXKPYUuEwrlgN CEaUssKJMg3bDoCm9pZpY1K0l0VdVMz5/jCELZKvC1Mlo6oUexUl5pN9anZxCD0lhUKX zGIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=62V9H5/vwngnmuyDkLvkrDSaRGkTc++Cw/6w2qt596A=; b=yPsEIW5OzTHeckLA+o92m1dwXD1NoVaUOsxvMKJNhm69cN/YEPy2SJJ6kGBxqeQa8X biAPsVB9tBSC5SHKPBX44BflRUFiVVBJOmkPvlGbYgNmp06gdYvehl9welLk4PVRGhfC NXmlr+D9iHsgS77c8LVayRT7HpLTmAy5ba74ef7OKJzTJltuNK4azAmEN16cXOeBuM4Y +I6bX98dPoD53QkjUlbOaEym0xkXWHSBkbmbafH3uUiZlQdLLd6X80CNYy8SCdyvvNFi 7vf8rdZ8/aR2TcOhKt3Jf/wS1/H4+QorKr6m3m01m1oW9mD52ZmeDhQjlgXMeTwglaVM Qc7g== X-Gm-Message-State: ACgBeo2FQXgsaXIRWrTLkhV+woNRnUAG/QSK2392J4DbgRlm6QTTegzS DigB1r1IQsSZeHuOpD2OCGIDwqdLqUETuA== X-Google-Smtp-Source: AA6agR5yDn6h1JvWPc978p+2ict5s60BVxQuv4T0Awfyx590O5bISZzTxxRBPkq36F3AG2tBFspwTQ== X-Received: by 2002:a17:902:f609:b0:168:dcbe:7c4d with SMTP id n9-20020a170902f60900b00168dcbe7c4dmr17223067plg.169.1661124002669; Sun, 21 Aug 2022 16:20:02 -0700 (PDT) Received: from ip-10-30-0-101.us-west-2.compute.internal (ec2-35-160-186-240.us-west-2.compute.amazonaws.com. [35.160.186.240]) by smtp.gmail.com with ESMTPSA id h6-20020a170902680600b0016c57657977sm6985690plk.41.2022.08.21.16.20.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 16:20:02 -0700 (PDT) From: Shinae Woo To: dev@dpdk.org Subject: [PATCH] linux/igb_uio: make module parameters visible in sysfs Date: Sun, 21 Aug 2022 16:19:50 -0700 Message-Id: <20220821231950.5957-1-shinae@alkira.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org - explicitly set default value for intr_mode - give read permission on wc_activate - applying patch gives below visibility ``` $ more /sys/module/igb_uio/parameters/* | cat :::::::::::::: /sys/module/igb_uio/parameters/intr_mode :::::::::::::: msix :::::::::::::: /sys/module/igb_uio/parameters/wc_activate :::::::::::::: 0 ``` Signed-off-by: Shinae Woo --- linux/igb_uio/igb_uio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/igb_uio/igb_uio.c b/linux/igb_uio/igb_uio.c index 33e0e02..c927ae6 100644 --- a/linux/igb_uio/igb_uio.c +++ b/linux/igb_uio/igb_uio.c @@ -44,7 +44,7 @@ struct rte_uio_pci_dev { }; static int wc_activate; -static char *intr_mode; +static char *intr_mode = RTE_INTR_MODE_MSIX_NAME; static enum rte_intr_mode igbuio_intr_mode_preferred = RTE_INTR_MODE_MSIX; /* sriov sysfs */ static ssize_t @@ -663,7 +663,7 @@ MODULE_PARM_DESC(intr_mode, " " RTE_INTR_MODE_LEGACY_NAME " Use Legacy interrupt\n" "\n"); -module_param(wc_activate, int, 0); +module_param(wc_activate, int, S_IRUGO); MODULE_PARM_DESC(wc_activate, "Activate support for write combining (WC) (default=0)\n" " 0 - disable\n" -- 2.20.1