Lines Matching +full:tx +full:- +full:sec
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
34 * the value of the rate limit is non-zero
40 #define IAVF_INTRL_8K 125 /* 8000 ints/sec */
41 #define IAVF_INTRL_62K 16 /* 62500 ints/sec */
42 #define IAVF_INTRL_83K 12 /* 83333 ints/sec */
89 if ((i) == (r)->count) \
91 r->next_to_clean = i; \
97 if ((i) == (r)->count) \
111 /* The size limit for a transmit buffer in a descriptor is (16K - 1).
116 #define IAVF_MAX_DATA_PER_TXD (16 * 1024 - 1)
118 (IAVF_MAX_DATA_PER_TXD & ~(IAVF_MAX_READ_REQ_SIZE - 1))
121 * iavf_txd_use_count - estimate the number of descriptors needed for Tx
126 * though each descriptor can take up to 16K - 1 bytes of aligned memory.
137 * accurate as we have 4K - 1 of wiggle room that we can fit into the last
153 /* Tx Descriptors needed, worst case */
223 struct device *dev; /* Used on Tx for DMA mapping */
267 int prev_pkt_ctr; /* For Tx stall detection */
310 for (pos = (head).ring; pos != NULL; pos = pos->next)
324 * iavf_xmit_descriptor_count - calculate number of Tx descriptors needed
333 const skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; in iavf_xmit_descriptor_count()
334 unsigned int nr_frags = skb_shinfo(skb)->nr_frags; in iavf_xmit_descriptor_count()
340 if (!nr_frags--) in iavf_xmit_descriptor_count()
350 * iavf_maybe_stop_tx - 1st level check for Tx stop conditions
364 * iavf_chk_linearize - Check if there are more than 8 fragments per packet
368 * Note: Our HW can't scatter-gather more than 8 fragments to build
385 * txring_txq - helper to convert from a ring to a queue
386 * @ring: Tx ring to find the netdev equivalent of
390 return netdev_get_tx_queue(ring->netdev, ring->queue_index); in txring_txq()