Lines Matching +full:tx +full:- +full:sec
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
3 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
61 #define ENA_DEFAULT_RX_COPYBREAK (256 - NET_IP_ALIGN)
73 /* The number of tx packet completions that will be handled each NAPI poll
89 #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1))
91 #define ENA_RX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1))
93 (((idx) + (n)) & ((ring_size) - 1))
98 #define ENA_IO_RXQ_IDX_TO_COMBINED_IDX(q) (((q) - 1) / 2)
106 /* ENA device should send keep alive msg every 1 sec.
107 * We wait for 6 sec just to be on the safe side.
156 /* Used for detect missing tx packets to limit the number of prints */
158 /* Save the last jiffies to detect missing tx packets
222 /* Holds the empty requests for TX/RX
243 spinlock_t xdp_tx_lock; /* synchronize XDP TX/Redirect traffic */
244 /* Used for rx queues only to point to the xdp tx ring, to
267 /* number of tx/rx_buffer_info's entries */
357 /* TX */
383 /* last queue index that was checked for uncompleted tx packets */
421 adapter->reset_reason = reset_reason; in ena_reset_device()
424 set_bit(ENA_FLAG_TRIGGER_RESET, &adapter->flags); in ena_reset_device()
443 ena_com_write_sq_doorbell(tx_ring->ena_com_io_sq); in ena_ring_tx_doorbell()
444 ena_increase_stat(&tx_ring->tx_stats.doorbells, 1, &tx_ring->syncp); in ena_ring_tx_doorbell()