Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Vadim Fedorenko
Sat, 28 Nov 2026 13:23
Re: [PATCH net-next v6 3/6] ionic: report the configured FEC mode in ethtool_fecparam.fec
Author: Vadim Fedorenko
Date: Sat, 28 Nov 2026 13:23
Date: Sat, 28 Nov 2026 13:23
53 lines
10439 bytes
10439 bytes
On 25/11/2026 23:22, Brett Creeley wrote:
> From: "Nikhil P. Rao" <nikhil.rao@amd.com>
>
> ionic_get_fecparam() fills fec->fec with the constant
> ETHTOOL_FEC_OFF | ETHTOOL_FEC_RS | ETHTOOL_FEC_BASER. The uAPI defines
> fec as the configured FEC modes, so a port configured for RS reports
> all three:
>
> Supported/Configured FEC encodings: Off RS BaseR
>
> where it should report RS alone. Take fec->fec from config.fec_type.
> Supported modes belong in ETHTOOL_GLINKSETTINGS, which
> ionic_get_link_ksettings() already fills.
>
> fec->active_fec still reads config.fec_type; reporting the operational
> mode is a separate change.
>
> Fixes: e95f922f4c2f ("ionic: implement ethtool set-fec")
> Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
> Signed-off-by: Eric Joyner <eric.joyner@amd.com>
> Signed-off-by: Brett Creeley <brett.creeley@amd.com>
> ---
> drivers/net/ethernet/pensando/ionic/ionic_ethtool.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c
> index 16c6e4c9852e..e7262a842eda 100644
> --- a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c
> +++ b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c
> @@ -432,17 +432,18 @@ static int ionic_get_fecparam(struct net_device *netdev,
> switch (lif->ionic->idev.port_info->config.fec_type) {
> case IONIC_PORT_FEC_TYPE_NONE:
> fec->active_fec = ETHTOOL_FEC_OFF;
> + fec->fec = ETHTOOL_FEC_OFF;
> break;
> case IONIC_PORT_FEC_TYPE_RS:
> fec->active_fec = ETHTOOL_FEC_RS;
> + fec->fec = ETHTOOL_FEC_RS;
> break;
> case IONIC_PORT_FEC_TYPE_FC:
> fec->active_fec = ETHTOOL_FEC_BASER;
> + fec->fec = ETHTOOL_FEC_BASER;
> break;
> }
>
> - fec->fec = ETHTOOL_FEC_OFF | ETHTOOL_FEC_RS | ETHTOOL_FEC_BASER;
> -
> return 0;
> }
>
>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads