summaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorCarolina Jubran <cjubran@nvidia.com>2023-12-19 16:23:07 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2024-02-05 16:45:53 -0800
commita90f55916f150ced7b2635bedd43676f922ee075 (patch)
tree57a1602185e9ea04293d1459cf2dc0d9f2e8ae23 /Documentation/networking
parentfb3bfdfcd10609c90911307a545864d2996d951f (diff)
downloadlinux-a90f55916f150ced7b2635bedd43676f922ee075.tar.gz
linux-a90f55916f150ced7b2635bedd43676f922ee075.tar.bz2
linux-a90f55916f150ced7b2635bedd43676f922ee075.zip
net/mlx5e: XDP, Exclude headroom and tailroom from memory calculations
In the case of XDP Multi-Buffer with Striding RQ, an extra page is allocated for the linear part of non-linear SKBs. Including headroom and tailroom in the calculation may result in an unnecessary increase in the amount of memory allocated. This could be critical, particularly for large MTUs (e.g. 7975B) and large RQ sizes (e.g. 8192). In this case, the requested page pool size is 64K, but 32K would be sufficient. This causes a failure due to exceeding the page pool size limit of 32K. Exclude headroom and tailroom from SKB size calculations to reduce page pool size. Signed-off-by: Carolina Jubran <cjubran@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'Documentation/networking')
0 files changed, 0 insertions, 0 deletions