[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <dkfesntoylodx2xm65frikdhm6gslddp6xj2mcidxwbpjtklsv@cwfxiuywrysg>
Date: Mon, 25 Nov 2024 20:29:30 +0100
From: Michal Kubecek <mkubecek@...e.cz>
To: Oleksij Rempel <o.rempel@...gutronix.de>
Cc: kernel@...gutronix.de, netdev@...r.kernel.org
Subject: Re: [PATCH ethtool-next v1 1/1] ethtool: add support for
ETHTOOL_A_CABLE_FAULT_LENGTH_SRC and ETHTOOL_A_CABLE_RESULT_SRC
On Tue, Nov 19, 2024 at 02:10:54PM +0100, Oleksij Rempel wrote:
> diff --git a/netlink/desc-ethtool.c b/netlink/desc-ethtool.c
> index 5c0e1c6f433d..97a994961c8e 100644
> --- a/netlink/desc-ethtool.c
> +++ b/netlink/desc-ethtool.c
> @@ -252,12 +252,14 @@ static const struct pretty_nla_desc __cable_test_result_desc[] = {
> NLATTR_DESC_INVALID(ETHTOOL_A_CABLE_RESULT_UNSPEC),
> NLATTR_DESC_U8(ETHTOOL_A_CABLE_RESULT_PAIR),
> NLATTR_DESC_U8(ETHTOOL_A_CABLE_RESULT_CODE),
> + NLATTR_DESC_U8(ETHTOOL_A_CABLE_RESULT_SRC),
> };
>
> static const struct pretty_nla_desc __cable_test_flength_desc[] = {
> NLATTR_DESC_INVALID(ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC),
> NLATTR_DESC_U8(ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR),
> NLATTR_DESC_U32(ETHTOOL_A_CABLE_FAULT_LENGTH_CM),
> + NLATTR_DESC_U8(ETHTOOL_A_CABLE_FAULT_LENGTH_SRC),
> };
>
> static const struct pretty_nla_desc __cable_nest_desc[] = {
AFAICS both new attributes are U32 so that NLATTR_DESC_U32() should be
used here. Looks good to me otherwise.
One question: the kernel counterpart seems to be present in 6.12 final,
is there something that would prevent including this in ethtool 6.12
(planned to be wrapped up at the end of this week)?
Michal
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists