]> 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)
commitc7f0c9445a740ccbe4c17c2ebd4200e0c129970e
tree9d979cb282d7314b8c558299bf8fb358ea434e1b
parent37b26df41b3d02292cb94ad0085b2b64732ce4bf
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: 3e985319cc11 ("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