Lines Matching +full:container +full:- +full:rules

1 /* SPDX-License-Identifier: GPL-2.0 */
19 /* The size limit for a transmit buffer in a descriptor is (16K - 1).
24 #define ICE_MAX_DATA_PER_TXD (16 * 1024 - 1)
26 (~(ICE_MAX_READ_REQ_SIZE - 1) & ICE_MAX_DATA_PER_TXD)
46 * ice_compute_pad - compute the padding
59 return SKB_WITH_OVERHEAD(half_page_size) - rx_buf_len; in ice_compute_pad()
63 * ice_skb_pad - determine the padding that we can supply
77 * cache-line alignment. in ice_skb_pad()
85 rx_buf_len -= NET_IP_ALIGN; in ice_skb_pad()
112 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
113 (R)->next_to_clean - (R)->next_to_use - 1)
116 ((((R)->first_desc > (R)->next_to_use) ? 0 : (R)->count) + \
117 (R)->first_desc - (R)->next_to_use - 1)
119 #define ICE_RING_QUARTER(R) ((R)->count >> 2)
146 * enum ice_tx_buf_type - type of &ice_tx_buf to act on Tx completion
171 void *raw_buf; /* used for XDP_TX and FDir rules */
286 #define ITR_IS_DYNAMIC(rc) ((rc)->itr_mode == ITR_DYNAMIC)
298 * set the write-back latency to the usecs passed in.
301 ((((usecs) << (GLINT_DYN_CTL_INTERVAL_S - ICE_ITR_GRAN_S)) & \
313 /* CL1 - 1st cacheline starts here */
330 /* CL2 - 2nd cacheline starts here */
335 /* CL3 - 3rd cacheline starts here */
355 /* CL4 - 4th cacheline starts here */
370 /* CL5 - 5th cacheline starts here */
375 /* CL1 - 1st cacheline starts here */
384 /* CL2 - 2nd cacheline starts here */
396 /* CL3 - 3rd cacheline starts here */
403 /* CL4 - 4th cacheline starts here */
414 return !!(ring->flags & ICE_RX_FLAGS_RING_BUILD_SKB); in ice_ring_uses_build_skb()
419 ring->flags |= ICE_RX_FLAGS_RING_BUILD_SKB; in ice_set_ring_build_skb_ena()
424 ring->flags &= ~ICE_RX_FLAGS_RING_BUILD_SKB; in ice_clear_ring_build_skb_ena()
429 return !!ring->ch; in ice_ring_ch_enabled()
434 return !!(ring->flags & ICE_TX_FLAGS_RING_XDP); in ice_ring_is_xdp()
443 /* head of linked-list of rings */
472 /* iterator for handling rings in ring container */
474 for (pos = (head).rx_ring; pos; pos = pos->next)
477 for (pos = (head).tx_ring; pos; pos = pos->next)
482 if (ring->rx_buf_len > (PAGE_SIZE / 2)) in ice_rx_pg_order()