On 1/16/2021 1:48 AM, Min Hu (Connor) wrote:
Hi, Ferruh,
this change origin from the opinions by Andrew Rybchenko
<arybche...@solarflare.com>. snippets like this:
> +__rte_experimental
> +int rte_eth_fec_get(uint16_t port_id, uint32_t *mode);
> +
> +/**
> + * @warning
> + * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
> + *
> + * Set Forward Error Correction(FEC) mode.
> + *
> + * @param port_id
> + * The port identifier of the Ethernet device.
> + * @param mode
> + * The FEC mode.
mode -> fec_capa
A bitmask of enabled FEC modes. If AUTO bit is set, other
bits specify FEC modes which may be negotiated. If AUTO
bit is clear, specify FEC modes to be used (only one valid
mode per speed may be set).
> + * @return
> + * - (0) if successful.
> + * - (-EINVAL) if the FEC mode is not valid.
Much more info could be referred to the patch:
Re: [dpdk-dev] [PATCH V13 1/3] ethdev: introduce FEC API
from arybche...@solarflare.com
thanks.
Got it, if the parameter name explicitly selected this way, dropping this patch.