|
@@ -1128,7 +1128,7 @@ static void clean_rx_pools(struct ibmvnic_adapter *adapter)
|
|
if (!adapter->rx_pool)
|
|
if (!adapter->rx_pool)
|
|
return;
|
|
return;
|
|
|
|
|
|
- rx_scrqs = be32_to_cpu(adapter->login_rsp_buf->num_rxadd_subcrqs);
|
|
|
|
|
|
+ rx_scrqs = adapter->num_active_rx_pools;
|
|
rx_entries = adapter->req_rx_add_entries_per_subcrq;
|
|
rx_entries = adapter->req_rx_add_entries_per_subcrq;
|
|
|
|
|
|
/* Free any remaining skbs in the rx buffer pools */
|
|
/* Free any remaining skbs in the rx buffer pools */
|
|
@@ -1177,7 +1177,7 @@ static void clean_tx_pools(struct ibmvnic_adapter *adapter)
|
|
if (!adapter->tx_pool || !adapter->tso_pool)
|
|
if (!adapter->tx_pool || !adapter->tso_pool)
|
|
return;
|
|
return;
|
|
|
|
|
|
- tx_scrqs = be32_to_cpu(adapter->login_rsp_buf->num_txsubm_subcrqs);
|
|
|
|
|
|
+ tx_scrqs = adapter->num_active_tx_pools;
|
|
|
|
|
|
/* Free any remaining skbs in the tx buffer pools */
|
|
/* Free any remaining skbs in the tx buffer pools */
|
|
for (i = 0; i < tx_scrqs; i++) {
|
|
for (i = 0; i < tx_scrqs; i++) {
|