OSDN Git Service

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)
commit5c6f40c61777e059ac3692c4505dff5eb880a12d
tree9d979cb282d7314b8c558299bf8fb358ea434e1b
parenta6633e11e8732b9c000774746a2c1827a7e3c316
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: d2ead1f360e8 ("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