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:
Arjun Vynipadath 2019-01-29 15:20:19 +05:30 committed by David S. Miller
parent ac93e2fa85
commit 18d79f721e
1 changed files with 7 additions and 0 deletions

View File

@ -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 ...
*/