Skip to contentSkip to conversation

: ixgbevf: Allow querying VFs RSS indirection table and key

RFC PATCH In review Vlad Zolotarov 2 participants 19 messages Dec 30, 2014 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover : ixgbevf: Allow querying VFs RSS indirection table and key

Add the ethtool ops to VF driver to allow querying the RSS indirection table and RSS Random Key.

- PF driver: Add new VF-PF channel commands.
- VF driver: Utilize these new commands and add the corresponding ethtool callbacks.

Vlad Zolotarov (5):
ixgbe: Add a RETA query command to VF-PF channel API
ixgbevf: Add a RETA query code
ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set
ixgbevf: Add RSS Key query code
ixgbevf: Add the appropriate ethtool ops to query RSS indirection
table and key

 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h      |   8 ++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c    |  60 +++++++++++
 drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  37 +++++++
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |   4 +-
 drivers/net/ethernet/intel/ixgbevf/mbx.h          |   8 ++
 drivers/net/ethernet/intel/ixgbevf/vf.c           | 125 ++++++++++++++++++++++
 drivers/net/ethernet/intel/ixgbevf/vf.h           |   2 +
 7 files changed, 243 insertions(+), 1 deletion(-)
Signature · 1 line
2.1.0
#1 lore raw

RFC PATCH 1/5 ixgbe: Add a RETA query command to VF-PF channel API

82599 VFs and PF share the same RSS redirection table (RETA). Therefore we just return it for all VFs.

RETA table is an array of 32 registers and the maximum number of registers that may be delivered in a single VF-PF channel command is 15. Therefore we will deliver the whole table in 3 steps: 12, 12 and 8 registers in each step correspondingly. Thus this patch does the following:

- Adds a new API version (to specify a new commands set).
- Adds the IXGBE_VF_GET_RETA_[0,1,2] commands to the VF-PF commands set.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  6 +++++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 35 ++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +6 -0
index a5cb755..c1123d9 100644
@@ -73,6 +73,7 @@ enum ixgbe_pfvf_api_rev {
 	ixgbe_mbox_api_10,	/* API version 1.0, linux/freebsd VF driver */
 	ixgbe_mbox_api_20,	/* API version 2.0, solaris Phase1 VF driver */
 	ixgbe_mbox_api_11,	/* API version 1.1, linux/freebsd VF driver */
+	ixgbe_mbox_api_12,	/* API version 1.2, linux/freebsd VF driver */
 	/* This value should always be last */
 	ixgbe_mbox_api_unknown,	/* indicates that API version is not known */
 };
@@ -91,6 +92,11 @@ enum ixgbe_pfvf_api_rev {
 /* mailbox API, version 1.1 VF requests */
 #define IXGBE_VF_GET_QUEUES	0x09 /* get queue configuration */
 
+/* mailbox API, version 1.2 VF requests */
+#define IXGBE_VF_GET_RETA_0	0x0a /* get RETA[0..11]  */
+#define IXGBE_VF_GET_RETA_1	0x0b /* get RETA[12..23] */
+#define IXGBE_VF_GET_RETA_2	0x0c /* get RETA[24..31] */
+
 /* GET_QUEUES return data indices within the mailbox */
 #define IXGBE_VF_TX_QUEUES	1	/* number of Tx queues supported */
 #define IXGBE_VF_RX_QUEUES	2	/* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +35 -0
index c76ba90..84db1a5 100644
@@ -427,6 +427,7 @@ static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf)
 #endif /* CONFIG_FCOE */
 		switch (adapter->vfinfo[vf].vf_api) {
 		case ixgbe_mbox_api_11:
+		case ixgbe_mbox_api_12:
 			/*
 			 * Version 1.1 supports jumbo frames on VFs if PF has
 			 * jumbo frames enabled which means legacy VFs are
@@ -894,6 +895,7 @@ static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter,
 	switch (api) {
 	case ixgbe_mbox_api_10:
 	case ixgbe_mbox_api_11:
+	case ixgbe_mbox_api_12:
 		adapter->vfinfo[vf].vf_api = api;
 		return 0;
 	default:
@@ -917,6 +919,7 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
 	switch (adapter->vfinfo[vf].vf_api) {
 	case ixgbe_mbox_api_20:
 	case ixgbe_mbox_api_11:
+	case ixgbe_mbox_api_12:
 		break;
 	default:
 		return -1;
@@ -944,6 +947,29 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
 	return 0;
 }
 
+static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
+			     u32 *msgbuf, u32 vf, int reta_offset_dw,
+			     size_t dwords)
+{
+	struct ixgbe_hw *hw = &adapter->hw;
+	int i;
+	u32 *reta = &msgbuf[1];
+
+	/* verify the PF is supporting the correct API */
+	switch (adapter->vfinfo[vf].vf_api) {
+	case ixgbe_mbox_api_12:
+		break;
+	default:
+		return -EPERM;
+	}
+
+	/* Read the appropriate portion of RETA */
+	for (i = 0; i < dwords; i++)
+		reta[i] = IXGBE_READ_REG(hw, IXGBE_RETA(i + reta_offset_dw));
+
+	return 0;
+}
+
 static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf)
 {
 	u32 mbx_size = IXGBE_VFMAILBOX_SIZE;
@@ -1000,6 +1026,15 @@ static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf)
 	case IXGBE_VF_GET_QUEUES:
 		retval = ixgbe_get_vf_queues(adapter, msgbuf, vf);
 		break;
+	case IXGBE_VF_GET_RETA_0:
+		retval = ixgbe_get_vf_reta(adapter, msgbuf, vf, 0, 12);
+		break;
+	case IXGBE_VF_GET_RETA_1:
+		retval = ixgbe_get_vf_reta(adapter, msgbuf, vf, 12, 12);
+		break;
+	case IXGBE_VF_GET_RETA_2:
+		retval = ixgbe_get_vf_reta(adapter, msgbuf, vf, 24, 8);
+		break;
 	default:
 		e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]);
 		retval = IXGBE_ERR_MBX;
Signature · 1 line
2.1.0
#2 lore raw

Re: [RFC PATCH net-next 1/5] ixgbe: Add a RETA query command to VF-PF channel API

Quoted 78 lines · Vlad Zolotarov

82599 VFs and PF share the same RSS redirection table (RETA). Therefore we just return it for all VFs.

RETA table is an array of 32 registers and the maximum number of registers that may be delivered in a single VF-PF channel command is 15. Therefore we will deliver the whole table in 3 steps: 12, 12 and 8 registers in each step correspondingly. Thus this patch does the following:

- Adds a new API version (to specify a new commands set).
- Adds the IXGBE_VF_GET_RETA_[0,1,2] commands to the VF-PF commands set.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  6 +++++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 35 ++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +6 -0
index a5cb755..c1123d9 100644
@@ -73,6 +73,7 @@ enum ixgbe_pfvf_api_rev {
        ixgbe_mbox_api_10,      /* API version 1.0, linux/freebsd VF driver */
        ixgbe_mbox_api_20,      /* API version 2.0, solaris Phase1 VF driver */
        ixgbe_mbox_api_11,      /* API version 1.1, linux/freebsd VF driver */
+       ixgbe_mbox_api_12,      /* API version 1.2, linux/freebsd VF driver */
        /* This value should always be last */
        ixgbe_mbox_api_unknown, /* indicates that API version is not known */
 };
@@ -91,6 +92,11 @@ enum ixgbe_pfvf_api_rev {
 /* mailbox API, version 1.1 VF requests */
 #define IXGBE_VF_GET_QUEUES    0x09 /* get queue configuration */
 
+/* mailbox API, version 1.2 VF requests */
+#define IXGBE_VF_GET_RETA_0    0x0a /* get RETA[0..11]  */
+#define IXGBE_VF_GET_RETA_1    0x0b /* get RETA[12..23] */
+#define IXGBE_VF_GET_RETA_2    0x0c /* get RETA[24..31] */
+
 /* GET_QUEUES return data indices within the mailbox */
 #define IXGBE_VF_TX_QUEUES     1       /* number of Tx queues supported */
 #define IXGBE_VF_RX_QUEUES     2       /* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +8 -0
index c76ba90..84db1a5 100644
@@ -427,6 +427,7 @@ static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf)
 #endif /* CONFIG_FCOE */
                switch (adapter->vfinfo[vf].vf_api) {
                case ixgbe_mbox_api_11:
+               case ixgbe_mbox_api_12:
                        /*
                         * Version 1.1 supports jumbo frames on VFs if PF has
                         * jumbo frames enabled which means legacy VFs are
@@ -894,6 +895,7 @@ static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter,
        switch (api) {
        case ixgbe_mbox_api_10:
        case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                adapter->vfinfo[vf].vf_api = api;
                return 0;
        default:
@@ -917,6 +919,7 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
        switch (adapter->vfinfo[vf].vf_api) {
        case ixgbe_mbox_api_20:
        case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                break;
        default:
                return -1;
@@ -944,6 +947,29 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
        return 0;
 }
 
+static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
+                            u32 *msgbuf, u32 vf, int reta_offset_dw,
+                            size_t dwords)
+{
+       struct ixgbe_hw *hw = &adapter->hw;

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter, · line 964

Quoted 10 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +10 -0
+       int i;
+       u32 *reta = &msgbuf[1];
+
+       /* verify the PF is supporting the correct API */
+       switch (adapter->vfinfo[vf].vf_api) {
+       case ixgbe_mbox_api_12:
+               break;
+       default:
+               return -EPERM;
+       }

A switch statement is overkill for a single case. It would be far simpler to just have

if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12)

        return -EPERM;

Later on, if there are multiple API's or future API's that also support this, then we could move to a case statement.

#3 lore raw

Re: [RFC PATCH net-next 1/5] ixgbe: Add a RETA query command to VF-PF channel API

Quoted 93 lines · Jeff Kirsher
Quoted 78 lines · Vlad Zolotarov

82599 VFs and PF share the same RSS redirection table (RETA). Therefore we just return it for all VFs.

RETA table is an array of 32 registers and the maximum number of registers that may be delivered in a single VF-PF channel command is 15. Therefore we will deliver the whole table in 3 steps: 12, 12 and 8 registers in each step correspondingly. Thus this patch does the following:

- Adds a new API version (to specify a new commands set).
- Adds the IXGBE_VF_GET_RETA_[0,1,2] commands to the VF-PF commands set.

---
  drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  6 +++++
  drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 35 ++++++++++++++++++++++++++
  2 files changed, 41 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +6 -0
index a5cb755..c1123d9 100644
@@ -73,6 +73,7 @@ enum ixgbe_pfvf_api_rev {
         ixgbe_mbox_api_10,      /* API version 1.0, linux/freebsd VF driver */
         ixgbe_mbox_api_20,      /* API version 2.0, solaris Phase1 VF driver */
         ixgbe_mbox_api_11,      /* API version 1.1, linux/freebsd VF driver */
+       ixgbe_mbox_api_12,      /* API version 1.2, linux/freebsd VF driver */
         /* This value should always be last */
         ixgbe_mbox_api_unknown, /* indicates that API version is not known */
  };
@@ -91,6 +92,11 @@ enum ixgbe_pfvf_api_rev {
  /* mailbox API, version 1.1 VF requests */
  #define IXGBE_VF_GET_QUEUES    0x09 /* get queue configuration */
 
+/* mailbox API, version 1.2 VF requests */
+#define IXGBE_VF_GET_RETA_0    0x0a /* get RETA[0..11]  */
+#define IXGBE_VF_GET_RETA_1    0x0b /* get RETA[12..23] */
+#define IXGBE_VF_GET_RETA_2    0x0c /* get RETA[24..31] */
+
  /* GET_QUEUES return data indices within the mailbox */
  #define IXGBE_VF_TX_QUEUES     1       /* number of Tx queues supported */
  #define IXGBE_VF_RX_QUEUES     2       /* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +8 -0
index c76ba90..84db1a5 100644
@@ -427,6 +427,7 @@ static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf)
  #endif /* CONFIG_FCOE */
                 switch (adapter->vfinfo[vf].vf_api) {
                 case ixgbe_mbox_api_11:
+               case ixgbe_mbox_api_12:
                         /*
                          * Version 1.1 supports jumbo frames on VFs if PF has
                          * jumbo frames enabled which means legacy VFs are
@@ -894,6 +895,7 @@ static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter,
         switch (api) {
         case ixgbe_mbox_api_10:
         case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                 adapter->vfinfo[vf].vf_api = api;
                 return 0;
         default:
@@ -917,6 +919,7 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
         switch (adapter->vfinfo[vf].vf_api) {
         case ixgbe_mbox_api_20:
         case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                 break;
         default:
                 return -1;
@@ -944,6 +947,29 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
         return 0;
  }
 
+static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
+                            u32 *msgbuf, u32 vf, int reta_offset_dw,
+                            size_t dwords)
+{
+       struct ixgbe_hw *hw = &adapter->hw;

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter, · line 964

Quoted 10 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +10 -0
+       int i;
+       u32 *reta = &msgbuf[1];
+
+       /* verify the PF is supporting the correct API */
+       switch (adapter->vfinfo[vf].vf_api) {
+       case ixgbe_mbox_api_12:
+               break;
+       default:
+               return -EPERM;
+       }

A switch statement is overkill for a single case. It would be far simpler to just have

Quoted 5 lines

if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12)

         return -EPERM;

Later on, if there are multiple API's or future API's that also support this, then we could move to a case statement.

I thought about it to but decided to make it future-proof. NP. Will make it an "if" in a non-RFC series. Thanks.

#4 lore raw

Re: [RFC PATCH net-next 1/5] ixgbe: Add a RETA query command to VF-PF channel API

Quoted 94 lines · Vlad Zolotarov
Quoted 93 lines · Jeff Kirsher
Quoted 78 lines · Vlad Zolotarov

82599 VFs and PF share the same RSS redirection table (RETA). Therefore we just return it for all VFs.

RETA table is an array of 32 registers and the maximum number of registers that may be delivered in a single VF-PF channel command is 15. Therefore we will deliver the whole table in 3 steps: 12, 12 and 8 registers in each step correspondingly. Thus this patch does the following:

- Adds a new API version (to specify a new commands set).
- Adds the IXGBE_VF_GET_RETA_[0,1,2] commands to the VF-PF commands set.

---
  drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  6 +++++
  drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 35 ++++++++++++++++++++++++++
  2 files changed, 41 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +6 -0
index a5cb755..c1123d9 100644
@@ -73,6 +73,7 @@ enum ixgbe_pfvf_api_rev {
         ixgbe_mbox_api_10,      /* API version 1.0, linux/freebsd VF driver */
         ixgbe_mbox_api_20,      /* API version 2.0, solaris Phase1 VF driver */
         ixgbe_mbox_api_11,      /* API version 1.1, linux/freebsd VF driver */
+       ixgbe_mbox_api_12,      /* API version 1.2, linux/freebsd VF driver */
         /* This value should always be last */
         ixgbe_mbox_api_unknown, /* indicates that API version is not known */
  };
@@ -91,6 +92,11 @@ enum ixgbe_pfvf_api_rev {
  /* mailbox API, version 1.1 VF requests */
  #define IXGBE_VF_GET_QUEUES    0x09 /* get queue configuration */
 
+/* mailbox API, version 1.2 VF requests */
+#define IXGBE_VF_GET_RETA_0    0x0a /* get RETA[0..11]  */
+#define IXGBE_VF_GET_RETA_1    0x0b /* get RETA[12..23] */
+#define IXGBE_VF_GET_RETA_2    0x0c /* get RETA[24..31] */
+
  /* GET_QUEUES return data indices within the mailbox */
  #define IXGBE_VF_TX_QUEUES     1       /* number of Tx queues supported */
  #define IXGBE_VF_RX_QUEUES     2       /* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +8 -0
index c76ba90..84db1a5 100644
@@ -427,6 +427,7 @@ static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf)
  #endif /* CONFIG_FCOE */
                 switch (adapter->vfinfo[vf].vf_api) {
                 case ixgbe_mbox_api_11:
+               case ixgbe_mbox_api_12:
                         /*
                          * Version 1.1 supports jumbo frames on VFs if PF has
                          * jumbo frames enabled which means legacy VFs are
@@ -894,6 +895,7 @@ static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter,
         switch (api) {
         case ixgbe_mbox_api_10:
         case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                 adapter->vfinfo[vf].vf_api = api;
                 return 0;
         default:
@@ -917,6 +919,7 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
         switch (adapter->vfinfo[vf].vf_api) {
         case ixgbe_mbox_api_20:
         case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                 break;
         default:
                 return -1;
@@ -944,6 +947,29 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
         return 0;
  }
 
+static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
+                            u32 *msgbuf, u32 vf, int reta_offset_dw,
+                            size_t dwords)
+{
+       struct ixgbe_hw *hw = &adapter->hw;

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter, · line 964

Quoted 10 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +10 -0
+       int i;
+       u32 *reta = &msgbuf[1];
+
+       /* verify the PF is supporting the correct API */
+       switch (adapter->vfinfo[vf].vf_api) {
+       case ixgbe_mbox_api_12:
+               break;
+       default:
+               return -EPERM;
+       }

A switch statement is overkill for a single case. It would be far simpler to just have

Quoted 9 lines
Quoted 5 lines

if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12)

         return -EPERM;

Later on, if there are multiple API's or future API's that also support this, then we could move to a case statement.

I thought about it to but decided to make it future-proof. NP. Will make it an "if" in a non-RFC series. Thanks.

Thanks fine, and if you CC me on the non-RFC series, I will pick them up (and make sure that Greg Rose has a chance to review them).

#5 lore raw

Re: [RFC PATCH net-next 1/5] ixgbe: Add a RETA query command to VF-PF channel API

Quoted 98 lines · Jeff Kirsher
Quoted 97 lines · Vlad Zolotarov
Quoted 96 lines · Jeff Kirsher
Quoted 78 lines · Vlad Zolotarov

82599 VFs and PF share the same RSS redirection table (RETA). Therefore we just return it for all VFs.

RETA table is an array of 32 registers and the maximum number of registers that may be delivered in a single VF-PF channel command is 15. Therefore we will deliver the whole table in 3 steps: 12, 12 and 8 registers in each step correspondingly. Thus this patch does the following:

- Adds a new API version (to specify a new commands set).
- Adds the IXGBE_VF_GET_RETA_[0,1,2] commands to the VF-PF commands set.

---
   drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  6 +++++
   drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 35 ++++++++++++++++++++++++++
   2 files changed, 41 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +6 -0
index a5cb755..c1123d9 100644
@@ -73,6 +73,7 @@ enum ixgbe_pfvf_api_rev {
          ixgbe_mbox_api_10,      /* API version 1.0, linux/freebsd VF driver */
          ixgbe_mbox_api_20,      /* API version 2.0, solaris Phase1 VF driver */
          ixgbe_mbox_api_11,      /* API version 1.1, linux/freebsd VF driver */
+       ixgbe_mbox_api_12,      /* API version 1.2, linux/freebsd VF driver */
          /* This value should always be last */
          ixgbe_mbox_api_unknown, /* indicates that API version is not known */
   };
@@ -91,6 +92,11 @@ enum ixgbe_pfvf_api_rev {
   /* mailbox API, version 1.1 VF requests */
   #define IXGBE_VF_GET_QUEUES    0x09 /* get queue configuration */
 
+/* mailbox API, version 1.2 VF requests */
+#define IXGBE_VF_GET_RETA_0    0x0a /* get RETA[0..11]  */
+#define IXGBE_VF_GET_RETA_1    0x0b /* get RETA[12..23] */
+#define IXGBE_VF_GET_RETA_2    0x0c /* get RETA[24..31] */
+
   /* GET_QUEUES return data indices within the mailbox */
   #define IXGBE_VF_TX_QUEUES     1       /* number of Tx queues supported */
   #define IXGBE_VF_RX_QUEUES     2       /* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +8 -0
index c76ba90..84db1a5 100644
@@ -427,6 +427,7 @@ static s32 ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 *msgbuf, u32 vf)
   #endif /* CONFIG_FCOE */
                  switch (adapter->vfinfo[vf].vf_api) {
                  case ixgbe_mbox_api_11:
+               case ixgbe_mbox_api_12:
                          /*
                           * Version 1.1 supports jumbo frames on VFs if PF has
                           * jumbo frames enabled which means legacy VFs are
@@ -894,6 +895,7 @@ static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter,
          switch (api) {
          case ixgbe_mbox_api_10:
          case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                  adapter->vfinfo[vf].vf_api = api;
                  return 0;
          default:
@@ -917,6 +919,7 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
          switch (adapter->vfinfo[vf].vf_api) {
          case ixgbe_mbox_api_20:
          case ixgbe_mbox_api_11:
+       case ixgbe_mbox_api_12:
                  break;
          default:
                  return -1;
@@ -944,6 +947,29 @@ static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter,
          return 0;
   }
 
+static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
+                            u32 *msgbuf, u32 vf, int reta_offset_dw,
+                            size_t dwords)
+{
+       struct ixgbe_hw *hw = &adapter->hw;

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c static int ixgbe_get_vf_queues(struct ixgbe_adapter *adapter, · line 964

Quoted 10 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +10 -0
+       int i;
+       u32 *reta = &msgbuf[1];
+
+       /* verify the PF is supporting the correct API */
+       switch (adapter->vfinfo[vf].vf_api) {
+       case ixgbe_mbox_api_12:
+               break;
+       default:
+               return -EPERM;
+       }

A switch statement is overkill for a single case. It would be far simpler to just have

if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12)

          return -EPERM;
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Later on, if there are multiple API's or future API's that also support this, then we could move to a case statement.

I thought about it to but decided to make it future-proof. NP. Will make it an "if" in a non-RFC series. Thanks.

Thanks fine, and if you CC me on the non-RFC series,

Sure thing I will! ;) After such a lightning fast review I'll CC u for all my future net patches! ;)

Quoted 2 lines

I will pick them up
(and make sure that Greg Rose has a chance to review them).

Cool. Then I'll cook the series first think tomorrow morning. Thanks a lot, Jeff

#6 lore raw

RFC PATCH 2/5 ixgbevf: Add a RETA query code

In reply to Vlad Zolotarov

- Added a new API version support.
- Added the query implementation in the ixgbevf.

---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |  4 +-
 drivers/net/ethernet/intel/ixgbevf/mbx.h          |  6 ++
 drivers/net/ethernet/intel/ixgbevf/vf.c           | 77 +++++++++++++++++++++++
 drivers/net/ethernet/intel/ixgbevf/vf.h           |  1 +
 4 files changed, 87 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +3 -1
index 62a0d8e..ba6ab61 100644
@@ -1880,7 +1880,8 @@ static void ixgbevf_init_last_counter_stats(struct ixgbevf_adapter *adapter)
 static void ixgbevf_negotiate_api(struct ixgbevf_adapter *adapter)
 {
 	struct ixgbe_hw *hw = &adapter->hw;
-	int api[] = { ixgbe_mbox_api_11,
+	int api[] = { ixgbe_mbox_api_12,
+		      ixgbe_mbox_api_11,
 		      ixgbe_mbox_api_10,
 		      ixgbe_mbox_api_unknown };
 	int err = 0, idx = 0;
@@ -3525,6 +3526,7 @@ static int ixgbevf_change_mtu(struct net_device *netdev, int new_mtu)
 
 	switch (adapter->hw.api_version) {
 	case ixgbe_mbox_api_11:
+	case ixgbe_mbox_api_12:
 		max_possible_frame = IXGBE_MAX_JUMBO_FRAME_SIZE;
 		break;
 	default:
drivers/net/ethernet/intel/ixgbevf/mbx.h +6 -0
index 0bc3005..3e148a8 100644
@@ -86,6 +86,7 @@ enum ixgbe_pfvf_api_rev {
 	ixgbe_mbox_api_10,	/* API version 1.0, linux/freebsd VF driver */
 	ixgbe_mbox_api_20,	/* API version 2.0, solaris Phase1 VF driver */
 	ixgbe_mbox_api_11,	/* API version 1.1, linux/freebsd VF driver */
+	ixgbe_mbox_api_12,	/* API version 1.2, linux/freebsd VF driver */
 	/* This value should always be last */
 	ixgbe_mbox_api_unknown,	/* indicates that API version is not known */
 };
@@ -104,6 +105,11 @@ enum ixgbe_pfvf_api_rev {
 /* mailbox API, version 1.1 VF requests */
 #define IXGBE_VF_GET_QUEUE	0x09 /* get queue configuration */
 
+/* mailbox API, version 1.2 VF requests */
+#define IXGBE_VF_GET_RETA_0	0x0a /* get RETA[0..11]  */
+#define IXGBE_VF_GET_RETA_1	0x0b /* get RETA[12..23] */
+#define IXGBE_VF_GET_RETA_2	0x0c /* get RETA[24..31] */
+
 /* GET_QUEUES return data indices within the mailbox */
 #define IXGBE_VF_TX_QUEUES	1	/* number of Tx queues supported */
 #define IXGBE_VF_RX_QUEUES	2	/* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbevf/vf.c +77 -0

89 lines not on this page · raw message

drivers/net/ethernet/intel/ixgbevf/vf.h +1 -0
index 5b17242..73c1b33 100644
@@ -208,5 +208,6 @@ void ixgbevf_rlpml_set_vf(struct ixgbe_hw *hw, u16 max_size);
 int ixgbevf_negotiate_api_version(struct ixgbe_hw *hw, int api);
 int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs,
 		       unsigned int *default_tc);
+int ixgbevf_get_reta(struct ixgbe_hw *hw, u32 *reta);
 #endif /* __IXGBE_VF_H__ */
 
Signature · 1 line
2.1.0
#7 lore raw

RFC PATCH 3/5 ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set

In reply to Vlad Zolotarov

82599 VFs and PF share the same RSS Key. Therefore we will return the same RSS key for all VFs.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  2 ++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +2 -0
index c1123d9..52e775b 100644
@@ -97,6 +97,8 @@ enum ixgbe_pfvf_api_rev {
 #define IXGBE_VF_GET_RETA_1	0x0b /* get RETA[12..23] */
 #define IXGBE_VF_GET_RETA_2	0x0c /* get RETA[24..31] */
 
+#define IXGBE_VF_GET_RSS_KEY	0x0d /* get RSS key */
+
 /* GET_QUEUES return data indices within the mailbox */
 #define IXGBE_VF_TX_QUEUES	1	/* number of Tx queues supported */
 #define IXGBE_VF_RX_QUEUES	2	/* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +25 -0
index 84db1a5..fc8233e 100644
@@ -970,6 +970,28 @@ static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
 	return 0;
 }
 
+static int ixgbe_get_vf_rss_key(struct ixgbe_adapter *adapter,
+				u32 *msgbuf, u32 vf)
+{
+	struct ixgbe_hw *hw = &adapter->hw;
+	int i;
+	u32 *rss_key = &msgbuf[1];
+
+	/* verify the PF is supporting the correct API */
+	switch (adapter->vfinfo[vf].vf_api) {
+	case ixgbe_mbox_api_12:
+		break;
+	default:
+		return -EPERM;
+	}
+
+	/* Read the RSS KEY */
+	for (i = 0; i < 10; i++)
+		rss_key[i] = IXGBE_READ_REG(hw, IXGBE_RSSRK(i));
+
+	return 0;
+}
+
 static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf)
 {
 	u32 mbx_size = IXGBE_VFMAILBOX_SIZE;
@@ -1035,6 +1057,9 @@ static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf)
 	case IXGBE_VF_GET_RETA_2:
 		retval = ixgbe_get_vf_reta(adapter, msgbuf, vf, 24, 8);
 		break;
+	case IXGBE_VF_GET_RSS_KEY:
+		retval = ixgbe_get_vf_rss_key(adapter, msgbuf, vf);
+		break;
 	default:
 		e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]);
 		retval = IXGBE_ERR_MBX;
Signature · 1 line
2.1.0
#8 lore raw

Re: [RFC PATCH net-next 3/5] ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set

Quoted 34 lines · Vlad Zolotarov

82599 VFs and PF share the same RSS Key. Therefore we will return the same RSS key for all VFs.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  2 ++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +2 -0
index c1123d9..52e775b 100644
@@ -97,6 +97,8 @@ enum ixgbe_pfvf_api_rev {
 #define IXGBE_VF_GET_RETA_1    0x0b /* get RETA[12..23] */
 #define IXGBE_VF_GET_RETA_2    0x0c /* get RETA[24..31] */
 
+#define IXGBE_VF_GET_RSS_KEY   0x0d /* get RSS key */
+
 /* GET_QUEUES return data indices within the mailbox */
 #define IXGBE_VF_TX_QUEUES     1       /* number of Tx queues supported */
 #define IXGBE_VF_RX_QUEUES     2       /* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +4 -0
index 84db1a5..fc8233e 100644
@@ -970,6 +970,28 @@ static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
        return 0;
 }
 
+static int ixgbe_get_vf_rss_key(struct ixgbe_adapter *adapter,
+                               u32 *msgbuf, u32 vf)
+{
+       struct ixgbe_hw *hw = &adapter->hw;

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter, · line 986

Quoted 10 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +10 -0
+       int i;
+       u32 *rss_key = &msgbuf[1];
+
+       /* verify the PF is supporting the correct API */
+       switch (adapter->vfinfo[vf].vf_api) {
+       case ixgbe_mbox_api_12:
+               break;
+       default:
+               return -EPERM;
+       }

Same as in patch 01 of the series, a switch statement is overkill for a single case. It would be far simpler to just have

if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12)

        return -EPERM;

Later on, if there are multiple API's or future API's that also support this, then we could move to a case statement.

#9 lore raw

Re: [RFC PATCH net-next 3/5] ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set

Quoted 49 lines · Jeff Kirsher
Quoted 34 lines · Vlad Zolotarov

82599 VFs and PF share the same RSS Key. Therefore we will return the same RSS key for all VFs.

---
  drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h   |  2 ++
  drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 25 +++++++++++++++++++++++++
  2 files changed, 27 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h +2 -0
index c1123d9..52e775b 100644
@@ -97,6 +97,8 @@ enum ixgbe_pfvf_api_rev {
  #define IXGBE_VF_GET_RETA_1    0x0b /* get RETA[12..23] */
  #define IXGBE_VF_GET_RETA_2    0x0c /* get RETA[24..31] */
 
+#define IXGBE_VF_GET_RSS_KEY   0x0d /* get RSS key */
+
  /* GET_QUEUES return data indices within the mailbox */
  #define IXGBE_VF_TX_QUEUES     1       /* number of Tx queues supported */
  #define IXGBE_VF_RX_QUEUES     2       /* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +4 -0
index 84db1a5..fc8233e 100644
@@ -970,6 +970,28 @@ static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter,
         return 0;
  }
 
+static int ixgbe_get_vf_rss_key(struct ixgbe_adapter *adapter,
+                               u32 *msgbuf, u32 vf)
+{
+       struct ixgbe_hw *hw = &adapter->hw;

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c static int ixgbe_get_vf_reta(struct ixgbe_adapter *adapter, · line 986

Quoted 10 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +10 -0
+       int i;
+       u32 *rss_key = &msgbuf[1];
+
+       /* verify the PF is supporting the correct API */
+       switch (adapter->vfinfo[vf].vf_api) {
+       case ixgbe_mbox_api_12:
+               break;
+       default:
+               return -EPERM;
+       }

Same as in patch 01 of the series, a switch statement is overkill for a single case. It would be far simpler to just have

Quoted 5 lines

if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12)

         return -EPERM;

Later on, if there are multiple API's or future API's that also support this, then we could move to a case statement.

Got it. Will fix.
Thanks.

#10 lore raw

RFC PATCH 4/5 ixgbevf: Add RSS Key query code

In reply to Vlad Zolotarov
---
 drivers/net/ethernet/intel/ixgbevf/mbx.h |  2 ++
 drivers/net/ethernet/intel/ixgbevf/vf.c  | 48 ++++++++++++++++++++++++++++++++
 drivers/net/ethernet/intel/ixgbevf/vf.h  |  1 +
 3 files changed, 51 insertions(+)
drivers/net/ethernet/intel/ixgbevf/mbx.h +2 -0
index 3e148a8..9674ac8 100644
@@ -110,6 +110,8 @@ enum ixgbe_pfvf_api_rev {
 #define IXGBE_VF_GET_RETA_1	0x0b /* get RETA[12..23] */
 #define IXGBE_VF_GET_RETA_2	0x0c /* get RETA[24..31] */
 
+#define IXGBE_VF_GET_RSS_KEY	0x0d /* get RSS hash key */
+
 /* GET_QUEUES return data indices within the mailbox */
 #define IXGBE_VF_TX_QUEUES	1	/* number of Tx queues supported */
 #define IXGBE_VF_RX_QUEUES	2	/* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbevf/vf.c +48 -0

54 lines not on this page · raw message

drivers/net/ethernet/intel/ixgbevf/vf.h +1 -0
index 73c1b33..54f53f2b8 100644
@@ -209,5 +209,6 @@ int ixgbevf_negotiate_api_version(struct ixgbe_hw *hw, int api);
 int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs,
 		       unsigned int *default_tc);
 int ixgbevf_get_reta(struct ixgbe_hw *hw, u32 *reta);
+int ixgbevf_get_rss_key(struct ixgbe_hw *hw, u8 *rss_key);
 #endif /* __IXGBE_VF_H__ */
 
Signature · 1 line
2.1.0
#11 lore raw

Re: [RFC PATCH net-next 4/5] ixgbevf: Add RSS Key query code

Quoted 39 lines · Vlad Zolotarov
---
 drivers/net/ethernet/intel/ixgbevf/mbx.h |  2 ++
 drivers/net/ethernet/intel/ixgbevf/vf.c  | 48 ++++++++++++++++++++++++++++++++
 drivers/net/ethernet/intel/ixgbevf/vf.h  |  1 +
 3 files changed, 51 insertions(+)
drivers/net/ethernet/intel/ixgbevf/mbx.h +2 -0
index 3e148a8..9674ac8 100644
@@ -110,6 +110,8 @@ enum ixgbe_pfvf_api_rev {
 #define IXGBE_VF_GET_RETA_1    0x0b /* get RETA[12..23] */
 #define IXGBE_VF_GET_RETA_2    0x0c /* get RETA[24..31] */
 
+#define IXGBE_VF_GET_RSS_KEY   0x0d /* get RSS hash key */
+
 /* GET_QUEUES return data indices within the mailbox */
 #define IXGBE_VF_TX_QUEUES     1       /* number of Tx queues supported */
 #define IXGBE_VF_RX_QUEUES     2       /* number of Rx queues supported */
drivers/net/ethernet/intel/ixgbevf/vf.c +11 -0
index 3ebc882..7987ab0 100644
@@ -290,6 +290,54 @@ static inline int _ixgbevf_get_reta(struct ixgbe_hw *hw, u32 *msgbuf,
 }
 
 /**
+ * ixgbevf_get_rss_key - get the RSS Random Key
+ * @hw: pointer to the HW structure
+ * @reta: buffer to fill with RETA contents.
+ *
+ * The "rss_key" buffer should be big enough to contain 10 registers.
+ *
+ * Returns: 0 on success.
+ *          if API doesn't support this operation - (-EPERM).
+ */
+int ixgbevf_get_rss_key(struct ixgbe_hw *hw, u8 *rss_key)
+{

drivers/net/ethernet/intel/ixgbevf/vf.c static inline int _ixgbevf_get_reta(struct ixgbe_hw *hw, u32 *msgbuf, · line 313

Quoted 10 lines
drivers/net/ethernet/intel/ixgbevf/vf.c +10 -0
+       int err;
+       u32 msgbuf[IXGBE_VFMAILBOX_SIZE];
+
+       /* Return and error if API doesn't support RSS Random Key retrieval */
+       switch (hw->api_version) {
+       case ixgbe_mbox_api_12:
+               break;
+       default:
+               return -EPERM;
+       }

An if statement here as well, instead of a switch statement.

#12 lore raw

RFC PATCH 5/5 ixgbevf: Add the appropriate ethtool ops to query RSS indirection table and key

In reply to Vlad Zolotarov
---
 drivers/net/ethernet/intel/ixgbevf/ethtool.c | 37 ++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
drivers/net/ethernet/intel/ixgbevf/ethtool.c +37 -0
index cc0e5b7..255bbc8 100644
@@ -792,6 +792,40 @@ static int ixgbevf_set_coalesce(struct net_device *netdev,
 	return 0;
 }
 
+static u32 ixgbevf_get_rxfh_indir_size(struct net_device *netdev)
+{
+	return 128;
+}
+
+static u32 ixgbevf_get_rxfh_key_size(struct net_device *netdev)
+{
+	return 40;
+}
+
+static int ixgbevf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key,
+			    u8 *hfunc)
+{
+	struct ixgbevf_adapter *adapter = netdev_priv(netdev);
+	int err;
+
+	if (hfunc)
+		*hfunc = ETH_RSS_HASH_TOP;
+
+	if (indir) {
+		err = ixgbevf_get_reta(&adapter->hw, indir);
+		if (err)
+			return err;
+	}
+
+	if (key) {
+		err = ixgbevf_get_rss_key(&adapter->hw, key);
+		if (err)
+			return err;
+	}
+
+	return 0;
+}
+
 static const struct ethtool_ops ixgbevf_ethtool_ops = {
 	.get_settings           = ixgbevf_get_settings,
 	.get_drvinfo            = ixgbevf_get_drvinfo,
@@ -809,6 +843,9 @@ static const struct ethtool_ops ixgbevf_ethtool_ops = {
 	.get_ethtool_stats      = ixgbevf_get_ethtool_stats,
 	.get_coalesce           = ixgbevf_get_coalesce,
 	.set_coalesce           = ixgbevf_set_coalesce,
+	.get_rxfh_indir_size    = ixgbevf_get_rxfh_indir_size,
+	.get_rxfh_key_size      = ixgbevf_get_rxfh_key_size,
+	.get_rxfh		= ixgbevf_get_rxfh,
 };
 
 void ixgbevf_set_ethtool_ops(struct net_device *netdev)
Signature · 1 line
2.1.0
#13 lore raw
In reply to Vlad Zolotarov
Quoted 15 lines · Vlad Zolotarov

Add the ethtool ops to VF driver to allow querying the RSS indirection table and RSS Random Key.

- PF driver: Add new VF-PF channel commands.
- VF driver: Utilize these new commands and add the corresponding ethtool callbacks.

Vlad Zolotarov (5):
ixgbe: Add a RETA query command to VF-PF channel API
ixgbevf: Add a RETA query code
ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set
ixgbevf: Add RSS Key query code
ixgbevf: Add the appropriate ethtool ops to query RSS indirection
table and key

Quoted 8 lines
 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h      |   8 ++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c    |  60 +++++++++++
 drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  37 +++++++
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |   4 +-
 drivers/net/ethernet/intel/ixgbevf/mbx.h          |   8 ++
 drivers/net/ethernet/intel/ixgbevf/vf.c           | 125 ++++++++++++++++++++++
 drivers/net/ethernet/intel/ixgbevf/vf.h           |   2 +
 7 files changed, 243 insertions(+), 1 deletion(-)

Remember to CC on patches against drivers in drivers/net/ethernet/intel/ please.

Signature · 2 lines
Cheers,
Jeff

A message that is not in the archive (sent off-list or not yet received): CAOYyTHb+5Wc-e3vBVE+MCh6YNfmompi9Mnsr0nDnHAn7Tvqyew@mail.gmail.com

#15 lore raw
Quoted 29 lines · Vladislav Zolotarov
Quoted 4 lines · Jeff Kirsher
Quoted 1 line · Vlad Zolotarov

Add the ethtool ops to VF driver to allow querying the RSS

indirection table

Quoted 6 lines
Quoted 6 lines

and RSS Random Key.

- PF driver: Add new VF-PF channel commands.
- VF driver: Utilize these new commands and add the corresponding ethtool callbacks.

Quoted 6 lines
Quoted 6 lines

Vlad Zolotarov (5):
ixgbe: Add a RETA query command to VF-PF channel API
ixgbevf: Add a RETA query code
ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set
ixgbevf: Add RSS Key query code
ixgbevf: Add the appropriate ethtool ops to query RSS

indirection

Quoted 4 lines
Quoted 4 lines

table and key

 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h      |   8 ++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c    |  60

+++++++++++

Quoted 4 lines
Quoted 4 lines
 drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  37 +++++++
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |   4 +-
 drivers/net/ethernet/intel/ixgbevf/mbx.h          |   8 ++
 drivers/net/ethernet/intel/ixgbevf/vf.c           | 125
Quoted 9 lines

++++++++++++++++++++++

Quoted 4 lines
Quoted 2 lines
 drivers/net/ethernet/intel/ixgbevf/vf.h           |   2 +
 7 files changed, 243 insertions(+), 1 deletion(-)

Remember to CC on patches against drivers in

drivers/net/ethernet/intel/ please.

To CC who? ;)

Sorry, I fat fingered that response. Please CC me.

A message that is not in the archive (sent off-list or not yet received): CAOYyTHathHiGThyHj+yRi9O6jWEAO3wkAK-6egMc2OwK9dQoMQ@mail.gmail.com

#17 lore raw
Quoted 44 lines · Vladislav Zolotarov
Quoted 3 lines · Jeff Kirsher
Quoted 1 line · Vladislav Zolotarov

On Dec 30, 2014 8:16 PM, "Jeff Kirsher"

<[email protected]>

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines · wrote:
Quoted 1 line · Vlad Zolotarov

Add the ethtool ops to VF driver to allow querying the RSS

indirection table

Quoted 4 lines
Quoted 4 lines

and RSS Random Key.

- PF driver: Add new VF-PF channel commands.
- VF driver: Utilize these new commands and add the

corresponding

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

ethtool callbacks.

Vlad Zolotarov (5):
ixgbe: Add a RETA query command to VF-PF channel API
ixgbevf: Add a RETA query code
ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set
ixgbevf: Add RSS Key query code
ixgbevf: Add the appropriate ethtool ops to query RSS

Quoted 7 lines
Quoted 7 lines

indirection

Quoted 4 lines
Quoted 4 lines

table and key

 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h      |   8 ++
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c    |  60

+++++++++++

Quoted 1 line
Quoted 1 line
 drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  37

+++++++

Quoted 10 lines
Quoted 10 lines
Quoted 3 lines
Quoted 3 lines
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |   4 +-
 drivers/net/ethernet/intel/ixgbevf/mbx.h          |   8 ++
 drivers/net/ethernet/intel/ixgbevf/vf.c           | 125

++++++++++++++++++++++

Quoted 4 lines
Quoted 2 lines
 drivers/net/ethernet/intel/ixgbevf/vf.h           |   2 +
 7 files changed, 243 insertions(+), 1 deletion(-)

Remember to CC on patches against drivers in

drivers/net/ethernet/intel/ please.

Quoted 10 lines
Quoted 4 lines
Quoted 2 lines

To CC who? ;)

Sorry, I fat fingered that response. Please CC me.

Sure. NP.
Since we are talking already, could u comment on the RFC? Does it look ok to you?

I have provided feedback on 3 of the patches, the others look ok to me. I would like Greg Rose to look over your changes since he did most of the ixgbevf work, and I want to make sure that he is fine with these changes.

#18 lore raw
Quoted 49 lines · Jeff Kirsher
Quoted 38 lines · Vladislav Zolotarov
Quoted 2 lines · Jeff Kirsher
Quoted 1 line · Vladislav Zolotarov

On Dec 30, 2014 8:16 PM, "Jeff Kirsher"

<[email protected]>

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines · wrote:
Quoted 1 line · Vlad Zolotarov

Add the ethtool ops to VF driver to allow querying the RSS

indirection table

Quoted 4 lines
Quoted 4 lines

and RSS Random Key.

- PF driver: Add new VF-PF channel commands.
- VF driver: Utilize these new commands and add the

corresponding

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

ethtool callbacks.

Vlad Zolotarov (5):
ixgbe: Add a RETA query command to VF-PF channel API
ixgbevf: Add a RETA query code
ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set
ixgbevf: Add RSS Key query code
ixgbevf: Add the appropriate ethtool ops to query RSS

Quoted 7 lines
Quoted 7 lines

indirection

Quoted 4 lines
Quoted 4 lines

table and key

  drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h      |   8 ++
  drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c    |  60

+++++++++++

Quoted 1 line
Quoted 1 line
  drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  37

+++++++

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
  drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |   4 +-
  drivers/net/ethernet/intel/ixgbevf/mbx.h          |   8 ++
  drivers/net/ethernet/intel/ixgbevf/vf.c           | 125

++++++++++++++++++++++

Quoted 3 lines
Quoted 2 lines
  drivers/net/ethernet/intel/ixgbevf/vf.h           |   2 +
  7 files changed, 243 insertions(+), 1 deletion(-)

Remember to CC on patches against drivers in

Quoted 10 lines
Quoted 5 lines
Quoted 4 lines

drivers/net/ethernet/intel/ please.

To CC who? ;)

Sorry, I fat fingered that response. Please CC me.

Sure. NP.
Since we are talking already, could u comment on the RFC? Does it look ok to you?

Quoted 4 lines

I have provided feedback on 3 of the patches, the others look ok to me. I would like Greg Rose to look over your changes since he did most of the ixgbevf work, and I want to make sure that he is fine with these changes.

I saw them. Thanks, Jeff. I'll wait for Greg's comments before cooking the final series then.

Again, thanks for a rapid response.

#19 lore raw
Quoted 55 lines · Vlad Zolotarov
Quoted 49 lines · Jeff Kirsher
Quoted 38 lines · Vladislav Zolotarov
Quoted 2 lines · Jeff Kirsher
Quoted 1 line · Vladislav Zolotarov

On Dec 30, 2014 8:16 PM, "Jeff Kirsher"

<[email protected]>

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines · wrote:
Quoted 1 line · Vlad Zolotarov

Add the ethtool ops to VF driver to allow querying the RSS

indirection table

Quoted 4 lines
Quoted 4 lines

and RSS Random Key.

- PF driver: Add new VF-PF channel commands.
- VF driver: Utilize these new commands and add the

corresponding

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

ethtool callbacks.

Vlad Zolotarov (5):
ixgbe: Add a RETA query command to VF-PF channel API
ixgbevf: Add a RETA query code
ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set
ixgbevf: Add RSS Key query code
ixgbevf: Add the appropriate ethtool ops to query RSS

Quoted 7 lines
Quoted 7 lines

indirection

Quoted 4 lines
Quoted 4 lines

table and key

  drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h      |   8 ++
  drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c    |  60

+++++++++++

Quoted 1 line
Quoted 1 line
  drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  37

+++++++

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
  drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |   4 +-
  drivers/net/ethernet/intel/ixgbevf/mbx.h          |   8 ++
  drivers/net/ethernet/intel/ixgbevf/vf.c           | 125

++++++++++++++++++++++

Quoted 3 lines
Quoted 2 lines
  drivers/net/ethernet/intel/ixgbevf/vf.h           |   2 +
  7 files changed, 243 insertions(+), 1 deletion(-)

Remember to CC on patches against drivers in

Quoted 10 lines
Quoted 5 lines
Quoted 4 lines

drivers/net/ethernet/intel/ please.

To CC who? ;)

Sorry, I fat fingered that response. Please CC me.

Sure. NP.
Since we are talking already, could u comment on the RFC? Does it look ok to you?

Quoted 4 lines

I have provided feedback on 3 of the patches, the others look ok to me. I would like Greg Rose to look over your changes since he did most of the ixgbevf work, and I want to make sure that he is fine with these changes.

Quoted 5 lines

I saw them. Thanks, Jeff. I'll wait for Greg's comments before cooking the final series then.

Again, thanks for a rapid response.

Go ahead and send out a non-RFC series. Greg is on vacation till the 5th anyway, so I will pick up your series and have my validation team run it through their tests in the mean time.

#20 lore raw
Quoted 55 lines · Jeff Kirsher
Quoted 54 lines · Vlad Zolotarov
Quoted 53 lines · Jeff Kirsher
Quoted 38 lines · Vladislav Zolotarov
Quoted 2 lines · Jeff Kirsher
Quoted 1 line · Vladislav Zolotarov

On Dec 30, 2014 8:16 PM, "Jeff Kirsher"

<[email protected]>

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines · wrote:
Quoted 1 line · Vlad Zolotarov

Add the ethtool ops to VF driver to allow querying the RSS

indirection table

Quoted 4 lines
Quoted 4 lines

and RSS Random Key.

- PF driver: Add new VF-PF channel commands.
- VF driver: Utilize these new commands and add the

corresponding

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

ethtool callbacks.

Vlad Zolotarov (5):
ixgbe: Add a RETA query command to VF-PF channel API
ixgbevf: Add a RETA query code
ixgbe: Add GET_RSS_KEY command to VF-PF channel commands set
ixgbevf: Add RSS Key query code
ixgbevf: Add the appropriate ethtool ops to query RSS

Quoted 7 lines
Quoted 7 lines

indirection

Quoted 4 lines
Quoted 4 lines

table and key

   drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h      |   8 ++
   drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c    |  60

+++++++++++

Quoted 1 line
Quoted 1 line
   drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  37

+++++++

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
   drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |   4 +-
   drivers/net/ethernet/intel/ixgbevf/mbx.h          |   8 ++
   drivers/net/ethernet/intel/ixgbevf/vf.c           | 125

++++++++++++++++++++++

Quoted 3 lines
Quoted 2 lines
   drivers/net/ethernet/intel/ixgbevf/vf.h           |   2 +
   7 files changed, 243 insertions(+), 1 deletion(-)

Remember to CC on patches against drivers in

Quoted 10 lines
Quoted 5 lines
Quoted 4 lines

drivers/net/ethernet/intel/ please.

To CC who? ;)

Sorry, I fat fingered that response. Please CC me.

Sure. NP.
Since we are talking already, could u comment on the RFC? Does it look ok to you?

I have provided feedback on 3 of the patches, the others look ok to me. I would like Greg Rose to look over your changes since he did most of the ixgbevf work, and I want to make sure that he is fine with these changes.

Quoted 8 lines
Quoted 5 lines

I saw them. Thanks, Jeff. I'll wait for Greg's comments before cooking the final series then.

Again, thanks for a rapid response.

Go ahead and send out a non-RFC series. Greg is on vacation till the 5th anyway, so I will pick up your series and have my validation team run it through their tests in the mean time.

Great! It's a real pleasure working with you!