summaryrefslogtreecommitdiffstats
path: root/mm/mmu_context.c
diff options
context:
space:
mode:
authorTariq Toukan2018-03-21 15:31:08 +0100
committerSaeed Mahameed2018-05-25 23:11:00 +0200
commit043dc78ecf07f3fc5b87270518d7f322aea2f748 (patch)
tree8f239559368d60085731b7da57b8256caa0ffe55 /mm/mmu_context.c
parentnet/mlx5e: Use WQ API functions instead of direct fields access (diff)
downloadkernel-qcow2-linux-043dc78ecf07f3fc5b87270518d7f322aea2f748.tar.gz
kernel-qcow2-linux-043dc78ecf07f3fc5b87270518d7f322aea2f748.tar.xz
kernel-qcow2-linux-043dc78ecf07f3fc5b87270518d7f322aea2f748.zip
net/mlx5e: TX, Use actual WQE size for SQ edge fill
We fill SQ edge with NOPs to avoid WQEs wrap. Here, instead of doing that in advance for the maximum possible WQE size, we do it on-demand using the actual WQE size. We re-order some parts in mlx5e_sq_xmit to finish the calculation of WQE size (ds_cnt) before doing any writes to the WQE buffer. When SQ work queue is fragmented (introduced in an downstream patch), dealing with WQE wraps becomes more frequent. This change would drastically reduce the overhead in this case. Performance tests: ConnectX-5 100Gbps, CPU: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz Packet rate of 64B packets, single transmit ring, size 8K. Before: 14.9 Mpps After: 15.8 Mpps Improvement of 6%. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'mm/mmu_context.c')
0 files changed, 0 insertions, 0 deletions