mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
net: ena: remove ena_restore_ethtool_params() and relevant fields
Deleted unused 4 fields from struct ena_adapter and their only user ena_restore_ethtool_params(). Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
242d81fd3d
commit
64d1fb9dfc
2 changed files with 0 additions and 13 deletions
|
@ -1563,14 +1563,6 @@ static void ena_napi_enable_all(struct ena_adapter *adapter)
|
||||||
napi_enable(&adapter->ena_napi[i].napi);
|
napi_enable(&adapter->ena_napi[i].napi);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ena_restore_ethtool_params(struct ena_adapter *adapter)
|
|
||||||
{
|
|
||||||
adapter->tx_usecs = 0;
|
|
||||||
adapter->rx_usecs = 0;
|
|
||||||
adapter->tx_frames = 1;
|
|
||||||
adapter->rx_frames = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Configure the Rx forwarding */
|
/* Configure the Rx forwarding */
|
||||||
static int ena_rss_configure(struct ena_adapter *adapter)
|
static int ena_rss_configure(struct ena_adapter *adapter)
|
||||||
{
|
{
|
||||||
|
@ -1620,8 +1612,6 @@ static int ena_up_complete(struct ena_adapter *adapter)
|
||||||
/* enable transmits */
|
/* enable transmits */
|
||||||
netif_tx_start_all_queues(adapter->netdev);
|
netif_tx_start_all_queues(adapter->netdev);
|
||||||
|
|
||||||
ena_restore_ethtool_params(adapter);
|
|
||||||
|
|
||||||
ena_napi_enable_all(adapter);
|
ena_napi_enable_all(adapter);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -330,9 +330,6 @@ struct ena_adapter {
|
||||||
|
|
||||||
u32 missing_tx_completion_threshold;
|
u32 missing_tx_completion_threshold;
|
||||||
|
|
||||||
u32 tx_usecs, rx_usecs; /* interrupt moderation */
|
|
||||||
u32 tx_frames, rx_frames; /* interrupt moderation */
|
|
||||||
|
|
||||||
u32 requested_tx_ring_size;
|
u32 requested_tx_ring_size;
|
||||||
u32 requested_rx_ring_size;
|
u32 requested_rx_ring_size;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue