forked from Minki/linux
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: Arjun Vynipadath <arjun@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ac93e2fa85
commit
18d79f721e
@ -791,6 +791,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 ...
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user