net/mlx5e: RX, Recycle buffer of UMR WQEs
authorTariq Toukan <tariqt@mellanox.com>
Thu, 4 Jan 2018 11:09:15 +0000 (13:09 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 30 Mar 2018 23:55:07 +0000 (16:55 -0700)
commitab966d7e4ff988a48b3ad72e7abf903aa840afd1
tree0dc36aa0c86c03b0588db5df2e0a4e789c9ad529
parentb8a98a4cf3221d8140969e3f5bde09206a6cb623
net/mlx5e: RX, Recycle buffer of UMR WQEs

Upon a new UMR post, check if the WQE buffer contains
a previous UMR WQE. If so, modify the dynamic fields
instead of a whole WQE overwrite. This saves a memcpy.

In current setting, after 2 WQ cycles (12 UMR posts),
this will always be the case.

No degradation sensed.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c