|
36 | 36 | /* Convert L3 MTU to L2 MFL */
|
37 | 37 | #define DPAA2_ETH_L2_MAX_FRM(mtu) ((mtu) + VLAN_ETH_HLEN)
|
38 | 38 |
|
39 |
| -/* Set the taildrop threshold (in bytes) to allow the enqueue of several jumbo |
40 |
| - * frames in the Rx queues (length of the current frame is not |
41 |
| - * taken into account when making the taildrop decision) |
| 39 | +/* Set the taildrop threshold (in bytes) to allow the enqueue of a large |
| 40 | + * enough number of jumbo frames in the Rx queues (length of the current |
| 41 | + * frame is not taken into account when making the taildrop decision) |
42 | 42 | */
|
43 |
| -#define DPAA2_ETH_FQ_TAILDROP_THRESH (64 * 1024) |
| 43 | +#define DPAA2_ETH_FQ_TAILDROP_THRESH (1024 * 1024) |
44 | 44 |
|
45 | 45 | /* Maximum number of Tx confirmation frames to be processed
|
46 | 46 | * in a single NAPI call
|
47 | 47 | */
|
48 | 48 | #define DPAA2_ETH_TXCONF_PER_NAPI 256
|
49 | 49 |
|
50 |
| -/* Buffer quota per queue. Must be large enough such that for minimum sized |
51 |
| - * frames taildrop kicks in before the bpool gets depleted, so we compute |
52 |
| - * how many 64B frames fit inside the taildrop threshold and add a margin |
53 |
| - * to accommodate the buffer refill delay. |
| 50 | +/* Buffer qouta per channel. We want to keep in check number of ingress frames |
| 51 | + * in flight: for small sized frames, congestion group taildrop may kick in |
| 52 | + * first; for large sizes, Rx FQ taildrop threshold will ensure only a |
| 53 | + * reasonable number of frames will be pending at any given time. |
| 54 | + * Ingress frame drop due to buffer pool depletion should be a corner case only |
54 | 55 | */
|
55 |
| -#define DPAA2_ETH_MAX_FRAMES_PER_QUEUE (DPAA2_ETH_FQ_TAILDROP_THRESH / 64) |
56 |
| -#define DPAA2_ETH_NUM_BUFS (DPAA2_ETH_MAX_FRAMES_PER_QUEUE + 256) |
| 56 | +#define DPAA2_ETH_NUM_BUFS 1280 |
57 | 57 | #define DPAA2_ETH_REFILL_THRESH \
|
58 | 58 | (DPAA2_ETH_NUM_BUFS - DPAA2_ETH_BUFS_PER_CMD)
|
59 | 59 |
|
|
63 | 63 | * taildrop kicks in
|
64 | 64 | */
|
65 | 65 | #define DPAA2_ETH_CG_TAILDROP_THRESH(priv) \
|
66 |
| - (DPAA2_ETH_MAX_FRAMES_PER_QUEUE * dpaa2_eth_queue_count(priv) / \ |
67 |
| - dpaa2_eth_tc_count(priv)) |
| 66 | + (1024 * dpaa2_eth_queue_count(priv) / dpaa2_eth_tc_count(priv)) |
68 | 67 |
|
69 | 68 | /* Maximum number of buffers that can be acquired/released through a single
|
70 | 69 | * QBMan command
|
|
0 commit comments