|
@@ -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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot configure queues, command %d pending\n",
|
|
|
|
|
+ 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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot enable queues, command %d pending\n",
|
|
|
|
|
+ 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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot disable queues, command %d pending\n",
|
|
|
|
|
+ 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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot map queues to vectors, command %d pending\n",
|
|
|
|
|
+ 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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot add filters, command %d pending\n",
|
|
|
|
|
+ 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)
|
|
|
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",
|
|
|
|
|
- __func__);
|
|
|
|
|
|
|
+ dev_warn(&adapter->pdev->dev, "Too many add MAC changes in one request\n");
|
|
|
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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot remove filters, command %d pending\n",
|
|
|
|
|
+ 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)
|
|
|
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",
|
|
|
|
|
- __func__);
|
|
|
|
|
|
|
+ dev_warn(&adapter->pdev->dev, "Too many delete MAC changes in one request\n");
|
|
|
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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot add VLANs, command %d pending\n",
|
|
|
|
|
+ adapter->current_op);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -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",
|
|
|
|
|
- __func__);
|
|
|
|
|
|
|
+ dev_warn(&adapter->pdev->dev, "Too many add VLAN changes in one request\n");
|
|
|
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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot remove VLANs, command %d pending\n",
|
|
|
|
|
+ adapter->current_op);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -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",
|
|
|
|
|
- __func__);
|
|
|
|
|
|
|
+ dev_warn(&adapter->pdev->dev, "Too many delete VLAN changes in one request\n");
|
|
|
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)
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
- __func__, adapter->current_op);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Cannot set promiscuous mode, command %d pending\n",
|
|
|
|
|
+ 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,
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
- dev_err(&adapter->pdev->dev,
|
|
|
|
|
- "%s: Unknown event %d from pf\n",
|
|
|
|
|
- __func__, vpe->event);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "Unknown event %d from PF\n",
|
|
|
|
|
+ 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",
|
|
|
|
|
- __func__, v_retval,
|
|
|
|
|
- i40evf_stat_str(&adapter->hw, v_retval), v_opcode);
|
|
|
|
|
|
|
+ dev_err(&adapter->pdev->dev, "PF returned error %d (%s) to our request %d\n",
|
|
|
|
|
+ v_retval, i40evf_stat_str(&adapter->hw, v_retval),
|
|
|
|
|
+ v_opcode);
|
|
|
}
|
|
}
|
|
|
switch (v_opcode) {
|
|
switch (v_opcode) {
|
|
|
case I40E_VIRTCHNL_OP_GET_STATS: {
|
|
case I40E_VIRTCHNL_OP_GET_STATS: {
|