Commit fb43201f authored by Shannon Nelson's avatar Shannon Nelson Committed by Jeff Kirsher

i40e/i40evf: give up the __func__

During early development, we added the function name to all of the error
strings to make debugging simpler. Now that we've released the driver,
our users should have more comprehensible error messages. So tear the
roof off and give up the __func__. Ow.

Change-ID: I7e1766252c7a032b9af6520da6aff536bdfd533c
Signed-off-by: default avatarShannon Nelson <shannon.nelson@intel.com>
Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 0002e118
...@@ -240,9 +240,8 @@ static void i40e_dcbnl_del_app(struct i40e_pf *pf, ...@@ -240,9 +240,8 @@ static void i40e_dcbnl_del_app(struct i40e_pf *pf,
if (pf->vsi[v] && pf->vsi[v]->netdev) { if (pf->vsi[v] && pf->vsi[v]->netdev) {
err = i40e_dcbnl_vsi_del_app(pf->vsi[v], app); err = i40e_dcbnl_vsi_del_app(pf->vsi[v], app);
if (err) if (err)
dev_info(&pf->pdev->dev, "%s: Failed deleting app for VSI seid=%d err=%d sel=%d proto=0x%x prio=%d\n", dev_info(&pf->pdev->dev, "Failed deleting app for VSI seid=%d err=%d sel=%d proto=0x%x prio=%d\n",
__func__, pf->vsi[v]->seid, pf->vsi[v]->seid, err, app->selector,
err, app->selector,
app->protocolid, app->priority); app->protocolid, app->priority);
} }
} }
......
...@@ -3156,8 +3156,7 @@ static int i40e_vsi_request_irq_msix(struct i40e_vsi *vsi, char *basename) ...@@ -3156,8 +3156,7 @@ static int i40e_vsi_request_irq_msix(struct i40e_vsi *vsi, char *basename)
q_vector); q_vector);
if (err) { if (err) {
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"%s: request_irq failed, error: %d\n", "MSIX request_irq failed, error: %d\n", err);
__func__, err);
goto free_queue_irqs; goto free_queue_irqs;
} }
/* assign the mask for this irq */ /* assign the mask for this irq */
...@@ -3681,9 +3680,8 @@ static int i40e_vsi_control_tx(struct i40e_vsi *vsi, bool enable) ...@@ -3681,9 +3680,8 @@ static int i40e_vsi_control_tx(struct i40e_vsi *vsi, bool enable)
ret = i40e_pf_txq_wait(pf, pf_q, enable); ret = i40e_pf_txq_wait(pf, pf_q, enable);
if (ret) { if (ret) {
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"%s: VSI seid %d Tx ring %d %sable timeout\n", "VSI seid %d Tx ring %d %sable timeout\n",
__func__, vsi->seid, pf_q, vsi->seid, pf_q, (enable ? "en" : "dis"));
(enable ? "en" : "dis"));
break; break;
} }
} }
...@@ -3759,9 +3757,8 @@ static int i40e_vsi_control_rx(struct i40e_vsi *vsi, bool enable) ...@@ -3759,9 +3757,8 @@ static int i40e_vsi_control_rx(struct i40e_vsi *vsi, bool enable)
ret = i40e_pf_rxq_wait(pf, pf_q, enable); ret = i40e_pf_rxq_wait(pf, pf_q, enable);
if (ret) { if (ret) {
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"%s: VSI seid %d Rx ring %d %sable timeout\n", "VSI seid %d Rx ring %d %sable timeout\n",
__func__, vsi->seid, pf_q, vsi->seid, pf_q, (enable ? "en" : "dis"));
(enable ? "en" : "dis"));
break; break;
} }
} }
...@@ -4056,8 +4053,7 @@ static void i40e_quiesce_vsi(struct i40e_vsi *vsi) ...@@ -4056,8 +4053,7 @@ static void i40e_quiesce_vsi(struct i40e_vsi *vsi)
if ((test_bit(__I40E_PORT_TX_SUSPENDED, &vsi->back->state)) && if ((test_bit(__I40E_PORT_TX_SUSPENDED, &vsi->back->state)) &&
vsi->type == I40E_VSI_FCOE) { vsi->type == I40E_VSI_FCOE) {
dev_dbg(&vsi->back->pdev->dev, dev_dbg(&vsi->back->pdev->dev,
"%s: VSI seid %d skipping FCoE VSI disable\n", "VSI seid %d skipping FCoE VSI disable\n", vsi->seid);
__func__, vsi->seid);
return; return;
} }
...@@ -4131,8 +4127,8 @@ static int i40e_vsi_wait_txq_disabled(struct i40e_vsi *vsi) ...@@ -4131,8 +4127,8 @@ static int i40e_vsi_wait_txq_disabled(struct i40e_vsi *vsi)
ret = i40e_pf_txq_wait(pf, pf_q, false); ret = i40e_pf_txq_wait(pf, pf_q, false);
if (ret) { if (ret) {
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
"%s: VSI seid %d Tx ring %d disable timeout\n", "VSI seid %d Tx ring %d disable timeout\n",
__func__, vsi->seid, pf_q); vsi->seid, pf_q);
return ret; return ret;
} }
} }
...@@ -5423,8 +5419,7 @@ bool i40e_dcb_need_reconfig(struct i40e_pf *pf, ...@@ -5423,8 +5419,7 @@ bool i40e_dcb_need_reconfig(struct i40e_pf *pf,
dev_dbg(&pf->pdev->dev, "APP Table change detected.\n"); dev_dbg(&pf->pdev->dev, "APP Table change detected.\n");
} }
dev_dbg(&pf->pdev->dev, "%s: need_reconfig=%d\n", __func__, dev_dbg(&pf->pdev->dev, "dcb need_reconfig=%d\n", need_reconfig);
need_reconfig);
return need_reconfig; return need_reconfig;
} }
...@@ -5451,16 +5446,14 @@ static int i40e_handle_lldp_event(struct i40e_pf *pf, ...@@ -5451,16 +5446,14 @@ static int i40e_handle_lldp_event(struct i40e_pf *pf,
/* Ignore if event is not for Nearest Bridge */ /* Ignore if event is not for Nearest Bridge */
type = ((mib->type >> I40E_AQ_LLDP_BRIDGE_TYPE_SHIFT) type = ((mib->type >> I40E_AQ_LLDP_BRIDGE_TYPE_SHIFT)
& I40E_AQ_LLDP_BRIDGE_TYPE_MASK); & I40E_AQ_LLDP_BRIDGE_TYPE_MASK);
dev_dbg(&pf->pdev->dev, dev_dbg(&pf->pdev->dev, "LLDP event mib bridge type 0x%x\n", type);
"%s: LLDP event mib bridge type 0x%x\n", __func__, type);
if (type != I40E_AQ_LLDP_BRIDGE_TYPE_NEAREST_BRIDGE) if (type != I40E_AQ_LLDP_BRIDGE_TYPE_NEAREST_BRIDGE)
return ret; return ret;
/* Check MIB Type and return if event for Remote MIB update */ /* Check MIB Type and return if event for Remote MIB update */
type = mib->type & I40E_AQ_LLDP_MIB_TYPE_MASK; type = mib->type & I40E_AQ_LLDP_MIB_TYPE_MASK;
dev_dbg(&pf->pdev->dev, dev_dbg(&pf->pdev->dev,
"%s: LLDP event mib type %s\n", __func__, "LLDP event mib type %s\n", type ? "remote" : "local");
type ? "remote" : "local");
if (type == I40E_AQ_LLDP_MIB_REMOTE) { if (type == I40E_AQ_LLDP_MIB_REMOTE) {
/* Update the remote cached instance and return */ /* Update the remote cached instance and return */
ret = i40e_aq_get_dcb_config(hw, I40E_AQ_LLDP_MIB_REMOTE, ret = i40e_aq_get_dcb_config(hw, I40E_AQ_LLDP_MIB_REMOTE,
...@@ -9054,8 +9047,7 @@ struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type, ...@@ -9054,8 +9047,7 @@ struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
if (veb) { if (veb) {
if (vsi->seid != pf->vsi[pf->lan_vsi]->seid) { if (vsi->seid != pf->vsi[pf->lan_vsi]->seid) {
dev_info(&vsi->back->pdev->dev, dev_info(&vsi->back->pdev->dev,
"%s: New VSI creation error, uplink seid of LAN VSI expected.\n", "New VSI creation error, uplink seid of LAN VSI expected.\n");
__func__);
return NULL; return NULL;
} }
/* We come up by default in VEPA mode if SRIOV is not /* We come up by default in VEPA mode if SRIOV is not
...@@ -10498,7 +10490,7 @@ static pci_ers_result_t i40e_pci_error_slot_reset(struct pci_dev *pdev) ...@@ -10498,7 +10490,7 @@ static pci_ers_result_t i40e_pci_error_slot_reset(struct pci_dev *pdev)
int err; int err;
u32 reg; u32 reg;
dev_info(&pdev->dev, "%s\n", __func__); dev_dbg(&pdev->dev, "%s\n", __func__);
if (pci_enable_device_mem(pdev)) { if (pci_enable_device_mem(pdev)) {
dev_info(&pdev->dev, dev_info(&pdev->dev,
"Cannot re-enable PCI device after reset.\n"); "Cannot re-enable PCI device after reset.\n");
...@@ -10538,7 +10530,7 @@ static void i40e_pci_error_resume(struct pci_dev *pdev) ...@@ -10538,7 +10530,7 @@ static void i40e_pci_error_resume(struct pci_dev *pdev)
{ {
struct i40e_pf *pf = pci_get_drvdata(pdev); struct i40e_pf *pf = pci_get_drvdata(pdev);
dev_info(&pdev->dev, "%s\n", __func__); dev_dbg(&pdev->dev, "%s\n", __func__);
if (test_bit(__I40E_SUSPENDED, &pf->state)) if (test_bit(__I40E_SUSPENDED, &pf->state))
return; return;
...@@ -10630,9 +10622,7 @@ static int i40e_resume(struct pci_dev *pdev) ...@@ -10630,9 +10622,7 @@ static int i40e_resume(struct pci_dev *pdev)
err = pci_enable_device_mem(pdev); err = pci_enable_device_mem(pdev);
if (err) { if (err) {
dev_err(&pdev->dev, dev_err(&pdev->dev, "Cannot enable PCI device from suspend\n");
"%s: Cannot enable PCI device from suspend\n",
__func__);
return err; return err;
} }
pci_set_master(pdev); pci_set_master(pdev);
......
...@@ -489,8 +489,7 @@ i40evf_request_traffic_irqs(struct i40evf_adapter *adapter, char *basename) ...@@ -489,8 +489,7 @@ i40evf_request_traffic_irqs(struct i40evf_adapter *adapter, char *basename)
q_vector); q_vector);
if (err) { if (err) {
dev_info(&adapter->pdev->dev, dev_info(&adapter->pdev->dev,
"%s: request_irq failed, error: %d\n", "Request_irq failed, error: %d\n", err);
__func__, err);
goto free_queue_irqs; goto free_queue_irqs;
} }
/* assign the mask for this irq */ /* assign the mask for this irq */
...@@ -1853,8 +1852,7 @@ static int i40evf_setup_all_tx_resources(struct i40evf_adapter *adapter) ...@@ -1853,8 +1852,7 @@ static int i40evf_setup_all_tx_resources(struct i40evf_adapter *adapter)
if (!err) if (!err)
continue; continue;
dev_err(&adapter->pdev->dev, dev_err(&adapter->pdev->dev,
"%s: Allocation for Tx Queue %u failed\n", "Allocation for Tx Queue %u failed\n", i);
__func__, i);
break; break;
} }
...@@ -1881,8 +1879,7 @@ static int i40evf_setup_all_rx_resources(struct i40evf_adapter *adapter) ...@@ -1881,8 +1879,7 @@ static int i40evf_setup_all_rx_resources(struct i40evf_adapter *adapter)
if (!err) if (!err)
continue; continue;
dev_err(&adapter->pdev->dev, dev_err(&adapter->pdev->dev,
"%s: Allocation for Rx Queue %u failed\n", "Allocation for Rx Queue %u failed\n", i);
__func__, i);
break; break;
} }
return err; return err;
......
...@@ -234,8 +234,8 @@ void i40evf_configure_queues(struct i40evf_adapter *adapter) ...@@ -234,8 +234,8 @@ void i40evf_configure_queues(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot configure queues, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
adapter->current_op = I40E_VIRTCHNL_OP_CONFIG_VSI_QUEUES; adapter->current_op = I40E_VIRTCHNL_OP_CONFIG_VSI_QUEUES;
...@@ -288,8 +288,8 @@ void i40evf_enable_queues(struct i40evf_adapter *adapter) ...@@ -288,8 +288,8 @@ void i40evf_enable_queues(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot enable queues, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
adapter->current_op = I40E_VIRTCHNL_OP_ENABLE_QUEUES; adapter->current_op = I40E_VIRTCHNL_OP_ENABLE_QUEUES;
...@@ -313,8 +313,8 @@ void i40evf_disable_queues(struct i40evf_adapter *adapter) ...@@ -313,8 +313,8 @@ void i40evf_disable_queues(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot disable queues, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
adapter->current_op = I40E_VIRTCHNL_OP_DISABLE_QUEUES; adapter->current_op = I40E_VIRTCHNL_OP_DISABLE_QUEUES;
...@@ -341,8 +341,8 @@ void i40evf_map_queues(struct i40evf_adapter *adapter) ...@@ -341,8 +341,8 @@ void i40evf_map_queues(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot map queues to vectors, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
adapter->current_op = I40E_VIRTCHNL_OP_CONFIG_IRQ_MAP; adapter->current_op = I40E_VIRTCHNL_OP_CONFIG_IRQ_MAP;
...@@ -393,8 +393,8 @@ void i40evf_add_ether_addrs(struct i40evf_adapter *adapter) ...@@ -393,8 +393,8 @@ void i40evf_add_ether_addrs(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot add filters, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
list_for_each_entry(f, &adapter->mac_filter_list, list) { list_for_each_entry(f, &adapter->mac_filter_list, list) {
...@@ -410,8 +410,7 @@ void i40evf_add_ether_addrs(struct i40evf_adapter *adapter) ...@@ -410,8 +410,7 @@ void i40evf_add_ether_addrs(struct i40evf_adapter *adapter)
len = sizeof(struct i40e_virtchnl_ether_addr_list) + len = sizeof(struct i40e_virtchnl_ether_addr_list) +
(count * sizeof(struct i40e_virtchnl_ether_addr)); (count * sizeof(struct i40e_virtchnl_ether_addr));
if (len > I40EVF_MAX_AQ_BUF_SIZE) { if (len > I40EVF_MAX_AQ_BUF_SIZE) {
dev_warn(&adapter->pdev->dev, "%s: Too many MAC address changes in one request\n", dev_warn(&adapter->pdev->dev, "Too many add MAC changes in one request\n");
__func__);
count = (I40EVF_MAX_AQ_BUF_SIZE - count = (I40EVF_MAX_AQ_BUF_SIZE -
sizeof(struct i40e_virtchnl_ether_addr_list)) / sizeof(struct i40e_virtchnl_ether_addr_list)) /
sizeof(struct i40e_virtchnl_ether_addr); sizeof(struct i40e_virtchnl_ether_addr);
...@@ -453,8 +452,8 @@ void i40evf_del_ether_addrs(struct i40evf_adapter *adapter) ...@@ -453,8 +452,8 @@ void i40evf_del_ether_addrs(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot remove filters, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
list_for_each_entry(f, &adapter->mac_filter_list, list) { list_for_each_entry(f, &adapter->mac_filter_list, list) {
...@@ -470,8 +469,7 @@ void i40evf_del_ether_addrs(struct i40evf_adapter *adapter) ...@@ -470,8 +469,7 @@ void i40evf_del_ether_addrs(struct i40evf_adapter *adapter)
len = sizeof(struct i40e_virtchnl_ether_addr_list) + len = sizeof(struct i40e_virtchnl_ether_addr_list) +
(count * sizeof(struct i40e_virtchnl_ether_addr)); (count * sizeof(struct i40e_virtchnl_ether_addr));
if (len > I40EVF_MAX_AQ_BUF_SIZE) { if (len > I40EVF_MAX_AQ_BUF_SIZE) {
dev_warn(&adapter->pdev->dev, "%s: Too many MAC address changes in one request\n", dev_warn(&adapter->pdev->dev, "Too many delete MAC changes in one request\n");
__func__);
count = (I40EVF_MAX_AQ_BUF_SIZE - count = (I40EVF_MAX_AQ_BUF_SIZE -
sizeof(struct i40e_virtchnl_ether_addr_list)) / sizeof(struct i40e_virtchnl_ether_addr_list)) /
sizeof(struct i40e_virtchnl_ether_addr); sizeof(struct i40e_virtchnl_ether_addr);
...@@ -513,8 +511,8 @@ void i40evf_add_vlans(struct i40evf_adapter *adapter) ...@@ -513,8 +511,8 @@ void i40evf_add_vlans(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot add VLANs, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
...@@ -531,8 +529,7 @@ void i40evf_add_vlans(struct i40evf_adapter *adapter) ...@@ -531,8 +529,7 @@ void i40evf_add_vlans(struct i40evf_adapter *adapter)
len = sizeof(struct i40e_virtchnl_vlan_filter_list) + len = sizeof(struct i40e_virtchnl_vlan_filter_list) +
(count * sizeof(u16)); (count * sizeof(u16));
if (len > I40EVF_MAX_AQ_BUF_SIZE) { if (len > I40EVF_MAX_AQ_BUF_SIZE) {
dev_warn(&adapter->pdev->dev, "%s: Too many VLAN changes in one request\n", dev_warn(&adapter->pdev->dev, "Too many add VLAN changes in one request\n");
__func__);
count = (I40EVF_MAX_AQ_BUF_SIZE - count = (I40EVF_MAX_AQ_BUF_SIZE -
sizeof(struct i40e_virtchnl_vlan_filter_list)) / sizeof(struct i40e_virtchnl_vlan_filter_list)) /
sizeof(u16); sizeof(u16);
...@@ -572,8 +569,8 @@ void i40evf_del_vlans(struct i40evf_adapter *adapter) ...@@ -572,8 +569,8 @@ void i40evf_del_vlans(struct i40evf_adapter *adapter)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot remove VLANs, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
...@@ -590,8 +587,7 @@ void i40evf_del_vlans(struct i40evf_adapter *adapter) ...@@ -590,8 +587,7 @@ void i40evf_del_vlans(struct i40evf_adapter *adapter)
len = sizeof(struct i40e_virtchnl_vlan_filter_list) + len = sizeof(struct i40e_virtchnl_vlan_filter_list) +
(count * sizeof(u16)); (count * sizeof(u16));
if (len > I40EVF_MAX_AQ_BUF_SIZE) { if (len > I40EVF_MAX_AQ_BUF_SIZE) {
dev_warn(&adapter->pdev->dev, "%s: Too many VLAN changes in one request\n", dev_warn(&adapter->pdev->dev, "Too many delete VLAN changes in one request\n");
__func__);
count = (I40EVF_MAX_AQ_BUF_SIZE - count = (I40EVF_MAX_AQ_BUF_SIZE -
sizeof(struct i40e_virtchnl_vlan_filter_list)) / sizeof(struct i40e_virtchnl_vlan_filter_list)) /
sizeof(u16); sizeof(u16);
...@@ -629,8 +625,8 @@ void i40evf_set_promiscuous(struct i40evf_adapter *adapter, int flags) ...@@ -629,8 +625,8 @@ void i40evf_set_promiscuous(struct i40evf_adapter *adapter, int flags)
if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) { if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
/* bail because we already have a command pending */ /* bail because we already have a command pending */
dev_err(&adapter->pdev->dev, "%s: command %d pending\n", dev_err(&adapter->pdev->dev, "Cannot set promiscuous mode, command %d pending\n",
__func__, adapter->current_op); adapter->current_op);
return; return;
} }
adapter->current_op = I40E_VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE; adapter->current_op = I40E_VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE;
...@@ -720,17 +716,16 @@ void i40evf_virtchnl_completion(struct i40evf_adapter *adapter, ...@@ -720,17 +716,16 @@ void i40evf_virtchnl_completion(struct i40evf_adapter *adapter,
} }
break; break;
default: default:
dev_err(&adapter->pdev->dev, dev_err(&adapter->pdev->dev, "Unknown event %d from PF\n",
"%s: Unknown event %d from pf\n", vpe->event);
__func__, vpe->event);
break; break;
} }
return; return;
} }
if (v_retval) { if (v_retval) {
dev_err(&adapter->pdev->dev, "%s: PF returned error %d (%s) to our request %d\n", dev_err(&adapter->pdev->dev, "PF returned error %d (%s) to our request %d\n",
__func__, v_retval, v_retval, i40evf_stat_str(&adapter->hw, v_retval),
i40evf_stat_str(&adapter->hw, v_retval), v_opcode); v_opcode);
} }
switch (v_opcode) { switch (v_opcode) {
case I40E_VIRTCHNL_OP_GET_STATS: { case I40E_VIRTCHNL_OP_GET_STATS: {
......
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