]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add num bytes metadata to WQE info
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 22 Aug 2019 12:03:27 +0000 (15:03 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 22 Aug 2019 20:38:48 +0000 (13:38 -0700)
commit90190229baf2e6ba6b009cc1ed6c6c0b7a9d30b0
tree9d979cb282d7314b8c558299bf8fb358ea434e1b
parenta02cfb520fa02eba81fc0f0c713a3f095fd1f18a
net/mlx5e: Add num bytes metadata to WQE info

For TLS WQEs, metadata info did not include num_bytes. Due to this issue,
tx_tls_dump_bytes counter did not increment.

Modify tx_fill_wi() to fill num bytes. When it is called for non-traffic
WQE, zero is expected.

Fixes: 78c1118ca47b ("net/mlx5e: Add kTLS TX HW offload support")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c