Lines Matching +full:elastic +full:- +full:limit
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
3 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
29 #define DEVICE_NAME "Elastic Network Adapter (ENA)"
37 * Since the max packet size the ENA handles is ~9kB limit the buffer length to
60 #define ENA_DEFAULT_RX_COPYBREAK (256 - NET_IP_ALIGN)
88 #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1))
90 #define ENA_RX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1))
92 (((idx) + (n)) & ((ring_size) - 1))
97 #define ENA_IO_RXQ_IDX_TO_COMBINED_IDX(q) (((q) - 1) / 2)
153 /* Used for detect missing tx packets to limit the number of prints */
409 adapter->reset_reason = reset_reason; in ena_reset_device()
412 set_bit(ENA_FLAG_TRIGGER_RESET, &adapter->flags); in ena_reset_device()
429 ena_com_write_sq_doorbell(tx_ring->ena_com_io_sq); in ena_ring_tx_doorbell()
430 ena_increase_stat(&tx_ring->tx_stats.doorbells, 1, &tx_ring->syncp); in ena_ring_tx_doorbell()