Lines Matching +full:current +full:- +full:limiting

1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
7 /* Interrupt Throttling and Rate Limiting Goodies */
31 /* 0x40 is the enable bit for interrupt rate limiting, and must be set if
32 * the value of the rate limit is non-zero
86 * iavf_test_staterr - tests bits in Rx descriptor status and error fields
98 return !!(rx_desc->wb.qword1.status_error_len & in iavf_test_staterr()
106 if ((i) == (r)->count) \
108 r->next_to_clean = i; \
114 if ((i) == (r)->count) \
128 /* The size limit for a transmit buffer in a descriptor is (16K - 1).
133 #define IAVF_MAX_DATA_PER_TXD (16 * 1024 - 1)
135 (IAVF_MAX_DATA_PER_TXD & ~(IAVF_MAX_READ_REQ_SIZE - 1))
138 * iavf_txd_use_count - estimate the number of descriptors needed for Tx
143 * though each descriptor can take up to 16K - 1 bytes of aligned memory.
154 * accurate as we have 4K - 1 of wiggle room that we can fit into the last
291 * the current packet, we save that skb
315 u16 current_itr; /* current ITR setting for ring(s) */
320 for (pos = (head).ring; pos != NULL; pos = pos->next)
334 * iavf_xmit_descriptor_count - calculate number of Tx descriptors needed
343 const skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; in iavf_xmit_descriptor_count()
344 unsigned int nr_frags = skb_shinfo(skb)->nr_frags; in iavf_xmit_descriptor_count()
350 if (!nr_frags--) in iavf_xmit_descriptor_count()
360 * iavf_maybe_stop_tx - 1st level check for Tx stop conditions
374 * iavf_chk_linearize - Check if there are more than 8 fragments per packet
378 * Note: Our HW can't scatter-gather more than 8 fragments to build
395 * txring_txq - helper to convert from a ring to a queue
400 return netdev_get_tx_queue(ring->netdev, ring->queue_index); in txring_txq()