if (!adapter->rx_pool)
return;
- for (i = 0; i < adapter->num_active_rx_pools; i++) {
+ for (i = 0; i < adapter->num_active_rx_scrqs; i++) {
rx_pool = &adapter->rx_pool[i];
netdev_dbg(adapter->netdev, "Releasing rx_pool[%d]\n", i);
kfree(adapter->rx_pool);
adapter->rx_pool = NULL;
- adapter->num_active_rx_pools = 0;
+ adapter->num_active_rx_scrqs = 0;
}
static int init_rx_pools(struct net_device *netdev)
return -1;
}
- adapter->num_active_rx_pools = 0;
+ adapter->num_active_rx_scrqs = 0;
for (i = 0; i < rxadd_subcrqs; i++) {
rx_pool = &adapter->rx_pool[i];
rx_pool->next_free = 0;
}
- adapter->num_active_rx_pools = rxadd_subcrqs;
+ adapter->num_active_rx_scrqs = rxadd_subcrqs;
return 0;
}
if (!adapter->tx_pool)
return;
- for (i = 0; i < adapter->num_active_tx_pools; i++) {
+ for (i = 0; i < adapter->num_active_tx_scrqs; i++) {
netdev_dbg(adapter->netdev, "Releasing tx_pool[%d]\n", i);
tx_pool = &adapter->tx_pool[i];
kfree(tx_pool->tx_buff);
kfree(adapter->tx_pool);
adapter->tx_pool = NULL;
- adapter->num_active_tx_pools = 0;
+ adapter->num_active_tx_scrqs = 0;
}
static int init_tx_pools(struct net_device *netdev)
if (!adapter->tx_pool)
return -1;
- adapter->num_active_tx_pools = 0;
+ adapter->num_active_tx_scrqs = 0;
for (i = 0; i < tx_subcrqs; i++) {
tx_pool = &adapter->tx_pool[i];
tx_pool->producer_index = 0;
}
- adapter->num_active_tx_pools = tx_subcrqs;
+ adapter->num_active_tx_scrqs = tx_subcrqs;
return 0;
}
u64 opt_rxba_entries_per_subcrq;
__be64 tx_rx_desc_req;
u8 map_id;
- u64 num_active_rx_pools;
- u64 num_active_tx_pools;
+ u64 num_active_rx_scrqs;
+ u64 num_active_tx_scrqs;
struct tasklet_struct tasklet;
enum vnic_state state;