aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
diff options
context:
space:
mode:
authorArjun Vynipadath <arjun@chelsio.com>2019-01-29 15:20:19 +0530
committerDavid S. Miller <davem@davemloft.net>2019-01-29 09:50:36 -0800
commit18d79f721e0a5338280cee1891800ff1f611502e (patch)
treec230d69b4579ac212740dfb3170428bce1a25a62 /drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
parentliquidio: fix the validation of rx checksum status from NIC hardware (diff)
downloadlinux-dev-18d79f721e0a5338280cee1891800ff1f611502e.tar.xz
linux-dev-18d79f721e0a5338280cee1891800ff1f611502e.zip
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
index 2fab87e86561..1fa24af8099f 100644
--- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
@@ -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 ...
*/