net/mlx5: improve stride parameter names
[dpdk.git] / drivers / net / mlx5 / mlx5.h
index 8466531..fa9af1d 100644 (file)
@@ -275,10 +275,10 @@ struct mlx5_dev_config {
        unsigned int hp_delay_drop:1; /* Enable hairpin Rxq delay drop. */
        struct {
                unsigned int enabled:1; /* Whether MPRQ is enabled. */
-               unsigned int stride_num_n; /* Number of strides. */
-               unsigned int stride_size_n; /* Size of a stride. */
-               unsigned int min_stride_size_n; /* Min size of a stride. */
-               unsigned int max_stride_size_n; /* Max size of a stride. */
+               unsigned int log_stride_num; /* Log number of strides. */
+               unsigned int log_stride_size; /* Log size of a stride. */
+               unsigned int log_min_stride_size; /* Log min size of a stride.*/
+               unsigned int log_max_stride_size; /* Log max size of a stride.*/
                unsigned int max_memcpy_len;
                /* Maximum packet size to memcpy Rx packets. */
                unsigned int min_rxqs_num;
@@ -977,7 +977,7 @@ struct mlx5_flow_id_pool {
        uint32_t base_index;
        /**< The next index that can be used without any free elements. */
        uint32_t *curr; /**< Pointer to the index to pop. */
-       uint32_t *last; /**< Pointer to the last element in the empty arrray. */
+       uint32_t *last; /**< Pointer to the last element in the empty array. */
        uint32_t max_id; /**< Maximum id can be allocated from the pool. */
 };
 
@@ -1014,7 +1014,7 @@ struct mlx5_dev_txpp {
        void *pp; /* Packet pacing context. */
        uint16_t pp_id; /* Packet pacing context index. */
        uint16_t ts_n; /* Number of captured timestamps. */
-       uint16_t ts_p; /* Pointer to statisticks timestamp. */
+       uint16_t ts_p; /* Pointer to statistics timestamp. */
        struct mlx5_txpp_ts *tsa; /* Timestamps sliding window stats. */
        struct mlx5_txpp_ts ts; /* Cached completion id/timestamp. */
        uint32_t sync_lost:1; /* ci/timestamp synchronization lost. */
@@ -1118,7 +1118,7 @@ struct mlx5_flex_parser_devx {
        uint32_t sample_ids[MLX5_GRAPH_NODE_SAMPLE_NUM];
 };
 
-/* Pattern field dscriptor - how to translate flex pattern into samples. */
+/* Pattern field descriptor - how to translate flex pattern into samples. */
 __extension__
 struct mlx5_flex_pattern_field {
        uint16_t width:6;
@@ -1169,7 +1169,7 @@ struct mlx5_dev_ctx_shared {
        /* Shared DV/DR flow data section. */
        uint32_t dv_meta_mask; /* flow META metadata supported mask. */
        uint32_t dv_mark_mask; /* flow MARK metadata supported mask. */
-       uint32_t dv_regc0_mask; /* available bits of metatada reg_c[0]. */
+       uint32_t dv_regc0_mask; /* available bits of metadata reg_c[0]. */
        void *fdb_domain; /* FDB Direct Rules name space handle. */
        void *rx_domain; /* RX Direct Rules name space handle. */
        void *tx_domain; /* TX Direct Rules name space handle. */