summaryrefslogtreecommitdiff
path: root/lib/usercopy.c
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2017-12-20 12:56:35 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2018-03-31 02:55:07 +0300
commitb8a98a4cf3221d8140969e3f5bde09206a6cb623 (patch)
tree4ab167a2152d139d86ed2e28cc334df6cd2f1816 /lib/usercopy.c
parent9f9e9cd50eac6ad09cb053509f2e764bddc05f18 (diff)
downloadlinux-b8a98a4cf3221d8140969e3f5bde09206a6cb623.tar.xz
net/mlx5e: Keep single pre-initialized UMR WQE per RQ
All UMR WQEs of an RQ share many common fields. We use pre-initialized structures to save calculations in datapath. One field (xlt_offset) was the only reason we saved a pre-initialized copy per WQE index. Here we remove its initialization (move its calculation to datapath), and reduce the number of copies to one-per-RQ. A very small datapath calculation is added, it occurs once per a MPWQE (i.e. once every 256KB), but reduces memory consumption and gives better cache utilization. Performance testing: Tested packet rate, no degradation sensed. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'lib/usercopy.c')
0 files changed, 0 insertions, 0 deletions