Commit 18d79f72 authored by Arjun Vynipadath's avatar Arjun Vynipadath Committed by David S. Miller

cxgb4vf: Update port information in cxgb4vf_open()

It's possible that the basic port information could have
changed since we first read it.
Signed-off-by: default avatarArjun Vynipadath <arjun@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac93e2fa
...@@ -791,6 +791,13 @@ static int cxgb4vf_open(struct net_device *dev) ...@@ -791,6 +791,13 @@ static int cxgb4vf_open(struct net_device *dev)
return err; 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 ... * Note that this interface is up and start everything up ...
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment