net/mlx5: add C++ include guard to public header
[dpdk.git] / drivers / net / mlx5 / mlx5.h
index 8466531..737ad68 100644 (file)
@@ -275,10 +275,14 @@ 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 log_min_stride_num; /* Log min num of strides. */
+               unsigned int log_max_stride_num; /* Log max num of strides. */
+               unsigned int log_min_stride_wqe_size;
+               /* Log min WQE size, (size of single stride)*(num of strides).*/
                unsigned int max_memcpy_len;
                /* Maximum packet size to memcpy Rx packets. */
                unsigned int min_rxqs_num;
@@ -977,7 +981,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 +1018,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 +1122,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 +1173,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. */
@@ -1409,6 +1413,7 @@ struct mlx5_priv {
        unsigned int mtr_en:1; /* Whether support meter. */
        unsigned int mtr_reg_share:1; /* Whether support meter REG_C share. */
        unsigned int lb_used:1; /* Loopback queue is referred to. */
+       uint32_t mark_enabled:1; /* If mark action is enabled on rxqs. */
        uint16_t domain_id; /* Switch domain identifier. */
        uint16_t vport_id; /* Associated VF vport index (if any). */
        uint32_t vport_meta_tag; /* Used for vport index match ove VF LAG. */