15/09/2021 23:40, Dmitry Kozlyuk:
> --- a/doc/guides/rel_notes/release_20_11.rst
> +++ b/doc/guides/rel_notes/release_20_11.rst
> @@ -662,6 +662,9 @@ API Changes
> * sched: Removed ``tb_rate``, ``tc_rate``, ``tc_period`` and ``tb_size``
> from ``struct rte_sched_subport_params``.
>
> +* compressdev: Renamed ``min`` and ``max`` fields of ``rte_param_log2_range``
> + structure to ``minimum`` and ``maximum``, respectively.
It should be in release notes of 21.11, not 20.11,
yes one year passed ;)
@@ -35,10 +35,10 @@ param_range_check(uint16_t size, const struct rte_param_log2_range *range)
unsigned int next_size;
/* Check lower/upper bounds */
- if (size < range->min)
+ if (size < range->minimum)
return -1;
- if (size > range->max)
+ if (size > range->maximum)
return -1;
/* If range is actually only one value, size is correct */
@@ -46,7 +46,7 @@ param_range_check(uint16_t size, const struct rte_param_log2_range *range)
return 0;
/* Check if value is one of the supported sizes */
- for (next_size = range->min; next_size <= range->max;
+ for (next_size = range->minimum; next_size <= range->maximum;
next_size += range->increment)
if (size == next_size)
return 0;
@@ -93,7 +93,7 @@ comp_perf_check_capabilities(struct comp_test_data *test_data, uint8_t cdev_id)
}
} else
/* Set window size to PMD maximum if none was specified */
- test_data->window_sz = cap->window_size.max;
+ test_data->window_sz = cap->window_size.maximum;
/* Check if chained mbufs is supported */
if (test_data->max_sgl_segs > 1 &&
@@ -196,9 +196,6 @@ Deprecation Notices
and ``rte_vhost_driver_set_protocol_features`` functions will be removed
and the API functions will be made stable in DPDK 21.11.
-* compressdev: ``min`` and ``max`` fields of ``rte_param_log2_range`` structure
- will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
-
* cryptodev: ``min`` and ``max`` fields of ``rte_crypto_param_range`` structure
will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
@@ -662,6 +662,9 @@ API Changes
* sched: Removed ``tb_rate``, ``tc_rate``, ``tc_period`` and ``tb_size``
from ``struct rte_sched_subport_params``.
+* compressdev: Renamed ``min`` and ``max`` fields of ``rte_param_log2_range``
+ structure to ``minimum`` and ``maximum``, respectively.
+
ABI Changes
-----------
@@ -22,8 +22,8 @@ static const struct rte_compressdev_capabilities isal_pmd_capabilities[] = {
RTE_COMP_FF_CRC32_CHECKSUM |
RTE_COMP_FF_ADLER32_CHECKSUM,
.window_size = {
- .min = 15,
- .max = 15,
+ .minimum = 15,
+ .maximum = 15,
.increment = 0
},
},
@@ -90,7 +90,7 @@ static const struct rte_compressdev_capabilities mlx5_caps[] = {
RTE_COMP_FF_SHAREABLE_PRIV_XFORM |
RTE_COMP_FF_HUFFMAN_FIXED |
RTE_COMP_FF_HUFFMAN_DYNAMIC,
- .window_size = {.min = 10, .max = 15, .increment = 1},
+ .window_size = {.minimum = 10, .maximum = 15, .increment = 1},
},
{
.algo = RTE_COMP_ALGO_LIST_END,
@@ -19,8 +19,8 @@ static const struct rte_compressdev_capabilities
RTE_COMP_FF_HUFFMAN_DYNAMIC,
/* Non sharable Priv XFORM and Stateless */
.window_size = {
- .min = 1,
- .max = 14,
+ .minimum = 1,
+ .maximum = 14,
.increment = 1
/* size supported 2^1 to 2^14 */
},
@@ -29,7 +29,7 @@ static const struct rte_compressdev_capabilities qat_comp_gen_capabilities[] = {
RTE_COMP_FF_OOP_SGL_IN_LB_OUT |
RTE_COMP_FF_OOP_LB_IN_SGL_OUT |
RTE_COMP_FF_STATEFUL_DECOMPRESSION,
- .window_size = {.min = 15, .max = 15, .increment = 0} },
+ .window_size = {.minimum = 15, .maximum = 15, .increment = 0} },
{RTE_COMP_ALGO_LIST_END, 0, {0, 0, 0} } };
static void
@@ -16,8 +16,8 @@ static const struct rte_compressdev_capabilities zlib_pmd_capabilities[] = {
RTE_COMP_FF_HUFFMAN_FIXED |
RTE_COMP_FF_HUFFMAN_DYNAMIC),
.window_size = {
- .min = 8,
- .max = 15,
+ .minimum = 8,
+ .maximum = 15,
.increment = 1
},
},
@@ -30,8 +30,8 @@ extern "C" {
* Final value will be 2^value.
*/
struct rte_param_log2_range {
- uint8_t min; /**< Minimum log2 value */
- uint8_t max; /**< Maximum log2 value */
+ uint8_t minimum; /**< Minimum log2 value */
+ uint8_t maximum; /**< Maximum log2 value */
uint8_t increment;
/**< If a range of sizes are supported,
* this parameter is used to indicate