Skip to contentSkip to conversation

cxgb4vf: Update port information in cxgb4vf_open()

PATCH Applied Arjun Vynipadath 2 participants 2 messages Jan 29, 2019

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

PATCH 1/1 cxgb4vf: Update port information in cxgb4vf_open()

It's possible that the basic port information could have changed since we first read it.

---
 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +7 -0
index a8f78ea..3e37815 100644
@@ -855,6 +855,13 @@ static int cxgb4vf_open(struct net_device *dev)
 			return err;
 	}
 
+	/* It's possible that the basic port information could have
+	 * changed since we first read it.
+	 */
+	err = t4vf_update_port_info(pi);
+	if (err < 0)
+		return err;
+
 	/*
 	 * Note that this interface is up and start everything up ...
 	 */
Signature · 1 line
2.9.5