MAX_TX_RINGS
if (total_tx_count > MAX_TX_RINGS) {
total_tx_count, MAX_TX_RINGS);
if (total_count > MAX_TX_RINGS) {
total_count, MAX_TX_RINGS);
MAX_TX_RINGS);
dst->tx_cq[t] = kzalloc_objs(struct mlx4_en_cq *, MAX_TX_RINGS);
if (priv->tx_ring_num[TX] + xdp_ring_num > MAX_TX_RINGS) {
MAX_TX_RINGS - ALIGN(xdp_ring_num, priv->prof->num_up);
MAX_TX_RINGS, MAX_RX_RINGS);
MAX_TX_RINGS);
priv->tx_cq[t] = kzalloc_objs(struct mlx4_en_cq *, MAX_TX_RINGS);
for (i = 0; i < MAX_TX_RINGS; i++) {
#define N_TX_RINGS MAX_TX_RINGS /* for QoS */
struct cas_tx_desc *init_txds[MAX_TX_RINGS];
#define MAX_TX_RINGS_MASK (MAX_TX_RINGS - 1)