On Thu, Jul 4, 2019 at 4:12 PM Jakub Kicinski <jakub.kicin...@netronome.com> wrote: > > On Thu, 4 Jul 2019 18:16:15 +0000, Saeed Mahameed wrote: > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.c > > b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.c > > index 483d321d2151..6854f132d505 100644 > > --- a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.c > > +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.c > > @@ -50,6 +50,15 @@ static const struct counter_desc sw_stats_desc[] = { > > #ifdef CONFIG_MLX5_EN_TLS > > { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_tls_ooo) }, > > { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_tls_resync_bytes) }, > > + > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_ktls_ooo) }, > > Why do you call this stat tx_ktls_ooo, and not tx_tls_ooo (extra 'k')? > > For nfp I used the stats' names from mlx5 FPGA to make sure we are all > consistent. I've added them to the tls-offload.rst doc and Boris has > reviewed it. > > * ``rx_tls_decrypted`` - number of successfully decrypted TLS segments > * ``tx_tls_encrypted`` - number of in-order TLS segments passed to device > for encryption > * ``tx_tls_ooo`` - number of TX packets which were part of a TLS stream > but did not arrive in the expected order > * ``tx_tls_drop_no_sync_data`` - number of TX packets dropped because > they arrived out of order and associated record could not be found > > Why can't you use the same names for the stats as you used for your mlx5 > FPGA? >
Actually i agree here, I asked tariq to have FPGA TLS and new mlx5 embedded TLS mutually exclusive. so there shouldn't be any reason to have new counter names for non FPGA tls. > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, > > tx_ktls_ooo_drop_no_sync_data) }, > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, > > tx_ktls_ooo_drop_bypass_req) }, > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_ktls_ooo_dump_bytes) }, > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_ktls_ooo_dump_packets) > > }, > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_ktls_enc_packets) }, > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_ktls_enc_bytes) }, > > + { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, tx_ktls_ctx) }, > > #endif > > > > { MLX5E_DECLARE_STAT(struct mlx5e_sw_stats, rx_lro_packets) }, > > Dave, please don't apply this, I will review in depth once I get > through the earlier 200 emails ;) Jakub can you please expedite ? Dave if it is ok with you i will re-spin and push a new pull request with mlx5-next dependencies + 2 Devlink fw version patches, and independently, i will post the TLS series for Jakub to review ?