netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Lin <steven.lin1@broadcom.com>
To: netdev@vger.kernel.org
Cc: jiri@mellanox.com, davem@davemloft.net,
	michael.chan@broadcom.com, linville@tuxdriver.com,
	gospo@broadcom.com, steven.lin1@broadcom.com,
	yuvalm@mellanox.com
Subject: [PATCH net-next v3 05/10] devlink: Adding num MSI-X vectors per VF perm config param
Date: Tue, 24 Oct 2017 16:12:37 -0400	[thread overview]
Message-ID: <1508875962-39233-6-git-send-email-steven.lin1@broadcom.com> (raw)
In-Reply-To: <1508875962-39233-1-git-send-email-steven.lin1@broadcom.com>

Adding DEVLINK_PERM_CONFIG_MSIX_VECTORS_PER_VF permanent config
parameter.  Value is permanent, so becomes the new default value
for this device.

Value defines number of MSI-X vectors allocated per VF.

Signed-off-by: Steve Lin <steven.lin1@broadcom.com>
Acked-by: Andy Gospodarek <gospo@broadcom.com>
---
 include/uapi/linux/devlink.h | 3 +++
 net/core/devlink.c           | 1 +
 2 files changed, 4 insertions(+)

diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 5877ff9..1b76e8f 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -264,11 +264,14 @@ enum devlink_dpipe_header_id {
  *   # of VFs per PF in SR-IOV mode
  * DEVLINK_PERM_CONFIG_MAX_NUM_PF_MSIX_VECT:
  *   Max # of MSI-X vectors per PF
+ * DEVLINK_PERM_CONFIG_MSIX_VECTORS_PER_VF:
+ *   # of MSI-X vectors per VF
  */
 enum devlink_perm_config_param {
 	DEVLINK_PERM_CONFIG_SRIOV_ENABLED,
 	DEVLINK_PERM_CONFIG_NUM_VF_PER_PF,
 	DEVLINK_PERM_CONFIG_MAX_NUM_PF_MSIX_VECT,
+	DEVLINK_PERM_CONFIG_MSIX_VECTORS_PER_VF,
 
 	__DEVLINK_PERM_CONFIG_MAX,
 	DEVLINK_PERM_CONFIG_MAX = __DEVLINK_PERM_CONFIG_MAX - 1
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 284e167..07d64da 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -1572,6 +1572,7 @@ static const u8 devlink_perm_cfg_param_types[DEVLINK_PERM_CONFIG_MAX + 1] = {
 	[DEVLINK_PERM_CONFIG_SRIOV_ENABLED] = NLA_U8,
 	[DEVLINK_PERM_CONFIG_NUM_VF_PER_PF] = NLA_U32,
 	[DEVLINK_PERM_CONFIG_MAX_NUM_PF_MSIX_VECT] = NLA_U32,
+	[DEVLINK_PERM_CONFIG_MSIX_VECTORS_PER_VF] = NLA_U32,
 };
 
 static int devlink_nl_single_param_get(struct sk_buff *msg,
-- 
2.7.4

  parent reply	other threads:[~2017-10-24 20:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24 20:12 [PATCH net-next v3 00/10] Adding permanent config get/set to devlink Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 01/10] devlink: Add permanent config parameter get/set operations Steve Lin
2017-10-24 21:22   ` Yuval Mintz
2017-10-25  2:14     ` Steve Lin
2017-10-25  5:41       ` Yuval Mintz
2017-10-25  2:53   ` David Miller
2017-10-25  9:13   ` Jiri Pirko
2017-10-24 20:12 ` [PATCH net-next v3 02/10] devlink: Adding SR-IOV enablement perm config param Steve Lin
2017-10-25  5:41   ` Yuval Mintz
2017-10-25  9:29   ` Jiri Pirko
2017-10-24 20:12 ` [PATCH net-next v3 03/10] devlink: Adding num VFs per PF permanent " Steve Lin
2017-10-25  5:41   ` Yuval Mintz
2017-10-24 20:12 ` [PATCH net-next v3 04/10] devlink: Adding max PF MSI-X vectors perm " Steve Lin
2017-10-24 20:12 ` Steve Lin [this message]
2017-10-24 20:12 ` [PATCH net-next v3 06/10] bnxt: Add devlink support for config get/set Steve Lin
2017-10-24 20:52   ` Michael Chan
2017-10-25  2:01     ` Steve Lin
2017-10-25  5:55   ` Yuval Mintz
2017-10-25  6:40     ` Michael Chan
2017-10-24 20:12 ` [PATCH net-next v3 07/10] bnxt: Adding SR-IOV enablement permanent cfg param Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 08/10] bnxt: Adding num VFs per PF perm config param Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 09/10] bnxt: Adding max PF MSI-X vectors " Steve Lin
2017-10-24 20:12 ` [PATCH net-next v3 10/10] bnxt: Adding num MSI-X vectors per VF " Steve Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1508875962-39233-6-git-send-email-steven.lin1@broadcom.com \
    --to=steven.lin1@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=gospo@broadcom.com \
    --cc=jiri@mellanox.com \
    --cc=linville@tuxdriver.com \
    --cc=michael.chan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=yuvalm@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).