|
|
@@ -172,6 +172,17 @@ static int nicvf_check_pf_ready(struct nicvf *nic)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
+static void nicvf_send_cfg_done(struct nicvf *nic)
|
|
|
+{
|
|
|
+ union nic_mbx mbx = {};
|
|
|
+
|
|
|
+ mbx.msg.msg = NIC_MBOX_MSG_CFG_DONE;
|
|
|
+ if (nicvf_send_msg_to_pf(nic, &mbx)) {
|
|
|
+ netdev_err(nic->netdev,
|
|
|
+ "PF didn't respond to CFG DONE msg\n");
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
static void nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx)
|
|
|
{
|
|
|
if (bgx->rx)
|
|
|
@@ -1416,7 +1427,6 @@ int nicvf_open(struct net_device *netdev)
|
|
|
struct nicvf *nic = netdev_priv(netdev);
|
|
|
struct queue_set *qs = nic->qs;
|
|
|
struct nicvf_cq_poll *cq_poll = NULL;
|
|
|
- union nic_mbx mbx = {};
|
|
|
|
|
|
netif_carrier_off(netdev);
|
|
|
|
|
|
@@ -1512,8 +1522,7 @@ int nicvf_open(struct net_device *netdev)
|
|
|
nicvf_enable_intr(nic, NICVF_INTR_RBDR, qidx);
|
|
|
|
|
|
/* Send VF config done msg to PF */
|
|
|
- mbx.msg.msg = NIC_MBOX_MSG_CFG_DONE;
|
|
|
- nicvf_write_to_mbx(nic, &mbx);
|
|
|
+ nicvf_send_cfg_done(nic);
|
|
|
|
|
|
return 0;
|
|
|
cleanup:
|