All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] cxgb4vf: Update port information in cxgb4vf_open()
@ 2019-01-29  9:50 Arjun Vynipadath
  2019-01-29 17:50 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Arjun Vynipadath @ 2019-01-29  9:50 UTC (permalink / raw)
  To: netdev, davem; +Cc: nirranjan, indranil, dt, leedom, Arjun Vynipadath

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

Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
---
 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
index a8f78ea..3e37815 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
@@ -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 ...
 	 */
-- 
2.9.5


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

* Re: [PATCH net-next] cxgb4vf: Update port information in cxgb4vf_open()
  2019-01-29  9:50 [PATCH net-next] cxgb4vf: Update port information in cxgb4vf_open() Arjun Vynipadath
@ 2019-01-29 17:50 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-01-29 17:50 UTC (permalink / raw)
  To: arjun; +Cc: netdev, nirranjan, indranil, dt, leedom

From: Arjun Vynipadath <arjun@chelsio.com>
Date: Tue, 29 Jan 2019 15:20:19 +0530

> It's possible that the basic port information could have
> changed since we first read it.
> 
> Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>

Applied, thanks.

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

end of thread, other threads:[~2019-01-29 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-29  9:50 [PATCH net-next] cxgb4vf: Update port information in cxgb4vf_open() Arjun Vynipadath
2019-01-29 17:50 ` David Miller

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.