All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported
@ 2018-10-26 21:33 Alice Michael
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks->base.speed in i40e_get_settings_link_up Alice Michael
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Alice Michael @ 2018-10-26 21:33 UTC (permalink / raw)
  To: intel-wired-lan

From: Mitch Williams <mitch.a.williams@intel.com>

On link types that do not support autoneg, we cannot attempt to restart
nway negotiation. This results in a dead link that requires a power
cycle to remedy.

Fix this by saving off the autoneg state and checking this value before
we try to restart nway.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 9f8464f..71db006 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -1335,6 +1335,7 @@ static int i40e_set_pauseparam(struct net_device *netdev,
 	i40e_status status;
 	u8 aq_failures;
 	int err = 0;
+	u32 is_an;
 
 	/* Changing the port's flow control is not supported if this isn't the
 	 * port's controlling PF
@@ -1347,15 +1348,14 @@ static int i40e_set_pauseparam(struct net_device *netdev,
 	if (vsi != pf->vsi[pf->lan_vsi])
 		return -EOPNOTSUPP;
 
-	if (pause->autoneg != ((hw_link_info->an_info & I40E_AQ_AN_COMPLETED) ?
-	    AUTONEG_ENABLE : AUTONEG_DISABLE)) {
+	is_an = hw_link_info->an_info & I40E_AQ_AN_COMPLETED;
+	if (pause->autoneg != is_an) {
 		netdev_info(netdev, "To change autoneg please use: ethtool -s <dev> autoneg <on|off>\n");
 		return -EOPNOTSUPP;
 	}
 
 	/* If we have link and don't have autoneg */
-	if (!test_bit(__I40E_DOWN, pf->state) &&
-	    !(hw_link_info->an_info & I40E_AQ_AN_COMPLETED)) {
+	if (!test_bit(__I40E_DOWN, pf->state) && !is_an) {
 		/* Send message that it might not necessarily work*/
 		netdev_info(netdev, "Autoneg did not complete so changing settings may not result in an actual change.\n");
 	}
@@ -1406,7 +1406,7 @@ static int i40e_set_pauseparam(struct net_device *netdev,
 		err = -EAGAIN;
 	}
 
-	if (!test_bit(__I40E_DOWN, pf->state)) {
+	if (!test_bit(__I40E_DOWN, pf->state) && is_an) {
 		/* Give it a little more time to try to come back */
 		msleep(75);
 		if (!test_bit(__I40E_DOWN, pf->state))
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks->base.speed in i40e_get_settings_link_up
  2018-10-26 21:33 [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Alice Michael
@ 2018-10-26 21:33 ` Alice Michael
  2018-10-31 16:26   ` Bowers, AndrewX
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 3/6] virtchnl: white space and reorder Alice Michael
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Alice Michael @ 2018-10-26 21:33 UTC (permalink / raw)
  To: intel-wired-lan

From: Jacob Keller <jacob.e.keller@intel.com>

In i40e_get_settings_link_up, set ks->base.speed to SPEED_UNKNOWN
in the case where we don't know the link speed.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 71db006..ec46548 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -906,6 +906,7 @@ static void i40e_get_settings_link_up(struct i40e_hw *hw,
 		ks->base.speed = SPEED_100;
 		break;
 	default:
+		ks->base.speed = SPEED_UNKNOWN;
 		break;
 	}
 	ks->base.duplex = DUPLEX_FULL;
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 3/6] virtchnl: white space and reorder
  2018-10-26 21:33 [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Alice Michael
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks->base.speed in i40e_get_settings_link_up Alice Michael
@ 2018-10-26 21:33 ` Alice Michael
  2018-10-31 16:26   ` Bowers, AndrewX
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 4/6] virtchnl: Fix off by one error Alice Michael
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Alice Michael @ 2018-10-26 21:33 UTC (permalink / raw)
  To: intel-wired-lan

White space change.

Move the check on the virtchnl_vsi_queue_config_info struct
to be close to the struct like all the other similar checks.
This keeps it clearer and easier to read.

Signed-off-by: Alice Michael <alice.michael@intel.com>
---
 include/linux/avf/virtchnl.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
index b248805..3130dec 100644
--- a/include/linux/avf/virtchnl.h
+++ b/include/linux/avf/virtchnl.h
@@ -171,7 +171,7 @@ struct virtchnl_msg {
 
 VIRTCHNL_CHECK_STRUCT_LEN(20, virtchnl_msg);
 
-/* Message descriptions and data structures.*/
+/* Message descriptions and data structures. */
 
 /* VIRTCHNL_OP_VERSION
  * VF posts its version number to the PF. PF responds with its version number
@@ -342,6 +342,8 @@ struct virtchnl_vsi_queue_config_info {
 	struct virtchnl_queue_pair_info qpair[1];
 };
 
+VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_vsi_queue_config_info);
+
 /* VIRTCHNL_OP_REQUEST_QUEUES
  * VF sends this message to request the PF to allocate additional queues to
  * this VF.  Each VF gets a guaranteed number of queues on init but asking for
@@ -357,8 +359,6 @@ struct virtchnl_vf_res_request {
 	u16 num_queue_pairs;
 };
 
-VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_vsi_queue_config_info);
-
 /* VIRTCHNL_OP_CONFIG_IRQ_MAP
  * VF uses this message to map vectors to queues.
  * The rxq_map and txq_map fields are bitmaps used to indicate which queues
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 4/6] virtchnl: Fix off by one error
  2018-10-26 21:33 [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Alice Michael
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks->base.speed in i40e_get_settings_link_up Alice Michael
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 3/6] virtchnl: white space and reorder Alice Michael
@ 2018-10-26 21:33 ` Alice Michael
  2018-10-31 16:27   ` Bowers, AndrewX
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 5/6] i40e: Use correct shift for vlan priority Alice Michael
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Alice Michael @ 2018-10-26 21:33 UTC (permalink / raw)
  To: intel-wired-lan

When calculating the valid length for a VIRTCHNL_OP_ENABLE_CHANNELS
message, we accidentally allowed messages with one extra
virtchnl_channel_info structure on the end. This happened due
to an off by one error, because we forgot that valid_len already
accounted for one virtchnl_channel_info structure, so we need to
subtract one from the num_tc value.

Signed-off-by: Alice Michael <alice.michael@intel.com>
---
 include/linux/avf/virtchnl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
index 3130dec..7605b59 100644
--- a/include/linux/avf/virtchnl.h
+++ b/include/linux/avf/virtchnl.h
@@ -819,8 +819,8 @@ virtchnl_vc_validate_vf_msg(struct virtchnl_version_info *ver, u32 v_opcode,
 		if (msglen >= valid_len) {
 			struct virtchnl_tc_info *vti =
 				(struct virtchnl_tc_info *)msg;
-			valid_len += vti->num_tc *
-				sizeof(struct virtchnl_channel_info);
+			valid_len += (vti->num_tc - 1) *
+				     sizeof(struct virtchnl_channel_info);
 			if (vti->num_tc == 0)
 				err_msg_format = true;
 		}
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 5/6] i40e: Use correct shift for vlan priority
  2018-10-26 21:33 [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Alice Michael
                   ` (2 preceding siblings ...)
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 4/6] virtchnl: Fix off by one error Alice Michael
@ 2018-10-26 21:33 ` Alice Michael
  2018-10-31 16:27   ` Bowers, AndrewX
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 6/6] i40e: suppress bogus error message Alice Michael
  2018-10-31 16:26 ` [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Bowers, AndrewX
  5 siblings, 1 reply; 12+ messages in thread
From: Alice Michael @ 2018-10-26 21:33 UTC (permalink / raw)
  To: intel-wired-lan

From: Richard Rodriguez <richard.rodriguez@intel.com>

When using port VLAN, for VFs, and setting priority bits, the device
was sending out incorrect priority bits, and also setting the CFI
bit incorrectly.

To fix this, changed shift and mask bit definition for this function, to
use the correct ones.

Signed-off-by: Richard Rodriguez <richard.rodriguez@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
index bf67d62..f962102 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h
@@ -13,9 +13,9 @@
 #define I40E_DEFAULT_NUM_MDD_EVENTS_ALLOWED	3
 #define I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED	10
 
-#define I40E_VLAN_PRIORITY_SHIFT	12
+#define I40E_VLAN_PRIORITY_SHIFT	13
 #define I40E_VLAN_MASK			0xFFF
-#define I40E_PRIORITY_MASK		0x7000
+#define I40E_PRIORITY_MASK		0xE000
 
 /* Various queue ctrls */
 enum i40e_queue_ctrl {
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 6/6] i40e: suppress bogus error message
  2018-10-26 21:33 [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Alice Michael
                   ` (3 preceding siblings ...)
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 5/6] i40e: Use correct shift for vlan priority Alice Michael
@ 2018-10-26 21:33 ` Alice Michael
  2018-10-31 16:28   ` Bowers, AndrewX
  2018-10-31 16:26 ` [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Bowers, AndrewX
  5 siblings, 1 reply; 12+ messages in thread
From: Alice Michael @ 2018-10-26 21:33 UTC (permalink / raw)
  To: intel-wired-lan

From: Mitch Williams <mitch.a.williams@intel.com>

The i40e driver complains about unprivileged VFs trying to configure
promiscuous mode each time a VF reset occurs. This isn't the fault of
the poor VF driver - the PF driver itself is making the request.

To fix this, skip the privilege check if the request is to disable all
promiscuous activity. This gets rid of the bogus message, but doesn't
affect privilege checks, since we really only care if the unprivileged
VF is trying to enable promiscuous mode.

Testing Hints (required if no HSD): watch dmesg log while VF resets
occur. You can trigger a VFR by unloading i40evf or shutting down the VM
with an assigned VF.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index ac5698e..c41e8ad 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@ -1112,7 +1112,8 @@ static i40e_status i40e_config_vf_promiscuous_mode(struct i40e_vf *vf,
 	if (!i40e_vc_isvalid_vsi_id(vf, vsi_id) || !vsi)
 		return I40E_ERR_PARAM;
 
-	if (!test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps)) {
+	if (!test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) &&
+	    (allmulti || alluni)) {
 		dev_err(&pf->pdev->dev,
 			"Unprivileged VF %d is attempting to configure promiscuous mode\n",
 			vf->vf_id);
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported
  2018-10-26 21:33 [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Alice Michael
                   ` (4 preceding siblings ...)
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 6/6] i40e: suppress bogus error message Alice Michael
@ 2018-10-31 16:26 ` Bowers, AndrewX
  5 siblings, 0 replies; 12+ messages in thread
From: Bowers, AndrewX @ 2018-10-31 16:26 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, October 26, 2018 2:33 PM
> To: Michael, Alice <alice.michael@intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if
> autoneg not supported
> 
> From: Mitch Williams <mitch.a.williams@intel.com>
> 
> On link types that do not support autoneg, we cannot attempt to restart
> nway negotiation. This results in a dead link that requires a power cycle to
> remedy.
> 
> Fix this by saving off the autoneg state and checking this value before we try
> to restart nway.
> 
> Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks->base.speed in i40e_get_settings_link_up
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks->base.speed in i40e_get_settings_link_up Alice Michael
@ 2018-10-31 16:26   ` Bowers, AndrewX
  0 siblings, 0 replies; 12+ messages in thread
From: Bowers, AndrewX @ 2018-10-31 16:26 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, October 26, 2018 2:33 PM
> To: Michael, Alice <alice.michael@intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks-
> >base.speed in i40e_get_settings_link_up
> 
> From: Jacob Keller <jacob.e.keller@intel.com>
> 
> In i40e_get_settings_link_up, set ks->base.speed to SPEED_UNKNOWN in
> the case where we don't know the link speed.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 1 +
>  1 file changed, 1 insertion(+)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 3/6] virtchnl: white space and reorder
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 3/6] virtchnl: white space and reorder Alice Michael
@ 2018-10-31 16:26   ` Bowers, AndrewX
  0 siblings, 0 replies; 12+ messages in thread
From: Bowers, AndrewX @ 2018-10-31 16:26 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, October 26, 2018 2:34 PM
> To: Michael, Alice <alice.michael@intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S98 3/6] virtchnl: white space and
> reorder
> 
> White space change.
> 
> Move the check on the virtchnl_vsi_queue_config_info struct to be close to
> the struct like all the other similar checks.
> This keeps it clearer and easier to read.
> 
> Signed-off-by: Alice Michael <alice.michael@intel.com>
> ---
>  include/linux/avf/virtchnl.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 4/6] virtchnl: Fix off by one error
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 4/6] virtchnl: Fix off by one error Alice Michael
@ 2018-10-31 16:27   ` Bowers, AndrewX
  0 siblings, 0 replies; 12+ messages in thread
From: Bowers, AndrewX @ 2018-10-31 16:27 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, October 26, 2018 2:34 PM
> To: Michael, Alice <alice.michael@intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S98 4/6] virtchnl: Fix off by one error
> 
> When calculating the valid length for a VIRTCHNL_OP_ENABLE_CHANNELS
> message, we accidentally allowed messages with one extra
> virtchnl_channel_info structure on the end. This happened due to an off by
> one error, because we forgot that valid_len already accounted for one
> virtchnl_channel_info structure, so we need to subtract one from the
> num_tc value.
> 
> Signed-off-by: Alice Michael <alice.michael@intel.com>
> ---
>  include/linux/avf/virtchnl.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 5/6] i40e: Use correct shift for vlan priority
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 5/6] i40e: Use correct shift for vlan priority Alice Michael
@ 2018-10-31 16:27   ` Bowers, AndrewX
  0 siblings, 0 replies; 12+ messages in thread
From: Bowers, AndrewX @ 2018-10-31 16:27 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, October 26, 2018 2:34 PM
> To: Michael, Alice <alice.michael@intel.com>; intel-wired-
> lan at lists.osuosl.org
> Cc: Rodriguez, Richard <richard.rodriguez@intel.com>
> Subject: [Intel-wired-lan] [next PATCH S98 5/6] i40e: Use correct shift for vlan
> priority
> 
> From: Richard Rodriguez <richard.rodriguez@intel.com>
> 
> When using port VLAN, for VFs, and setting priority bits, the device was
> sending out incorrect priority bits, and also setting the CFI bit incorrectly.
> 
> To fix this, changed shift and mask bit definition for this function, to use the
> correct ones.
> 
> Signed-off-by: Richard Rodriguez <richard.rodriguez@intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Intel-wired-lan] [next PATCH S98 6/6] i40e: suppress bogus error message
  2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 6/6] i40e: suppress bogus error message Alice Michael
@ 2018-10-31 16:28   ` Bowers, AndrewX
  0 siblings, 0 replies; 12+ messages in thread
From: Bowers, AndrewX @ 2018-10-31 16:28 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, October 26, 2018 2:34 PM
> To: Michael, Alice <alice.michael@intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S98 6/6] i40e: suppress bogus error
> message
> 
> From: Mitch Williams <mitch.a.williams@intel.com>
> 
> The i40e driver complains about unprivileged VFs trying to configure
> promiscuous mode each time a VF reset occurs. This isn't the fault of the
> poor VF driver - the PF driver itself is making the request.
> 
> To fix this, skip the privilege check if the request is to disable all promiscuous
> activity. This gets rid of the bogus message, but doesn't affect privilege
> checks, since we really only care if the unprivileged VF is trying to enable
> promiscuous mode.
> 
> Testing Hints (required if no HSD): watch dmesg log while VF resets occur.
> You can trigger a VFR by unloading i40evf or shutting down the VM with an
> assigned VF.
> 
> Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-10-31 16:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-26 21:33 [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Alice Michael
2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 2/6] i40e: always set ks->base.speed in i40e_get_settings_link_up Alice Michael
2018-10-31 16:26   ` Bowers, AndrewX
2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 3/6] virtchnl: white space and reorder Alice Michael
2018-10-31 16:26   ` Bowers, AndrewX
2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 4/6] virtchnl: Fix off by one error Alice Michael
2018-10-31 16:27   ` Bowers, AndrewX
2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 5/6] i40e: Use correct shift for vlan priority Alice Michael
2018-10-31 16:27   ` Bowers, AndrewX
2018-10-26 21:33 ` [Intel-wired-lan] [next PATCH S98 6/6] i40e: suppress bogus error message Alice Michael
2018-10-31 16:28   ` Bowers, AndrewX
2018-10-31 16:26 ` [Intel-wired-lan] [next PATCH S98 1/6] i40e: don't restart nway if autoneg not supported Bowers, AndrewX

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.