diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2017-03-29 11:46:10 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-04-30 16:03:16 +0300 |
commit | 1f5b1e47ee08f6c623db599b6c23ce7c20b79458 (patch) | |
tree | 22ba10a6a89b11fccd7d07db2804aa647dbf7783 /ipc | |
parent | a2fa1fe5ad13e7f11b82291fc08bdc654fac741e (diff) |
net/mlx5e: Optimize poll ICOSQ completion queue
UMR operations are more frequent and important.
Check them first, and add a compiler branch predictor hint.
According to current design, ICOSQ CQ can contain at most one
pending CQE per napi. Poll function is optimized accordingly.
Performance:
Single-stream packet-rate tested with pktgen.
Packets are dropped in tc level to zoom into driver data-path.
Larger gain is expected for larger packet sizes, as BW is higher
and UMR posts are more frequent.
---------------------------------------------
packet size | before | after | gain |
64B | 4,092,370 | 4,113,306 | 0.5% |
1024B | 3,421,435 | 3,633,819 | 6.2% |
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions