Commit 9912c72e authored by Shay Agroskin's avatar Shay Agroskin Committed by David S. Miller

net: ena: Remove unused code

The ENA_DEFAULT_MIN_RX_BUFF_ALLOC_SIZE macro,
ena_xdp_queues_present() function and SUSPEND_RESUME enums aren't used
in the driver, and so not needed.
Signed-off-by: default avatarArthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: default avatarGal Pressman <galpress@amazon.com>
Signed-off-by: default avatarSameeh Jubran <sameehj@amazon.com>
Signed-off-by: default avatarShay Agroskin <shayagr@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e4ac382e
...@@ -1042,8 +1042,6 @@ enum ena_admin_aenq_group { ...@@ -1042,8 +1042,6 @@ enum ena_admin_aenq_group {
}; };
enum ena_admin_aenq_notification_syndrome { enum ena_admin_aenq_notification_syndrome {
ENA_ADMIN_SUSPEND = 0,
ENA_ADMIN_RESUME = 1,
ENA_ADMIN_UPDATE_HINTS = 2, ENA_ADMIN_UPDATE_HINTS = 2,
}; };
......
...@@ -55,12 +55,6 @@ ...@@ -55,12 +55,6 @@
#define ENA_TX_WAKEUP_THRESH (MAX_SKB_FRAGS + 2) #define ENA_TX_WAKEUP_THRESH (MAX_SKB_FRAGS + 2)
#define ENA_DEFAULT_RX_COPYBREAK (256 - NET_IP_ALIGN) #define ENA_DEFAULT_RX_COPYBREAK (256 - NET_IP_ALIGN)
/* limit the buffer size to 600 bytes to handle MTU changes from very
* small to very large, in which case the number of buffers per packet
* could exceed ENA_PKT_MAX_BUFS
*/
#define ENA_DEFAULT_MIN_RX_BUFF_ALLOC_SIZE 600
#define ENA_MIN_MTU 128 #define ENA_MIN_MTU 128
#define ENA_NAME_MAX_LEN 20 #define ENA_NAME_MAX_LEN 20
...@@ -417,11 +411,6 @@ enum ena_xdp_errors_t { ...@@ -417,11 +411,6 @@ enum ena_xdp_errors_t {
ENA_XDP_NO_ENOUGH_QUEUES, ENA_XDP_NO_ENOUGH_QUEUES,
}; };
static inline bool ena_xdp_queues_present(struct ena_adapter *adapter)
{
return adapter->xdp_first_ring != 0;
}
static inline bool ena_xdp_present(struct ena_adapter *adapter) static inline bool ena_xdp_present(struct ena_adapter *adapter)
{ {
return !!adapter->xdp_bpf_prog; return !!adapter->xdp_bpf_prog;
......
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