From: Hadar Hen Zion <had...@mellanox.com>
Date: Tue,  9 Jun 2015 18:29:54 +0300

> Add strings array of the current supported tunable options.
> 
> Signed-off-by: Hadar Hen Zion <had...@mellanox.com>
> Reviewed-by: Amir Vadai <am...@mellanox.com>
> ---
>  include/uapi/linux/ethtool.h |  6 ++++++
>  net/core/ethtool.c           | 12 ++++++++++++
>  2 files changed, 18 insertions(+)
> 
> diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
> index 0594933..90e4bff 100644
> --- a/include/uapi/linux/ethtool.h
> +++ b/include/uapi/linux/ethtool.h
> @@ -215,6 +215,11 @@ enum tunable_id {
>       ETHTOOL_ID_UNSPEC,
>       ETHTOOL_RX_COPYBREAK,
>       ETHTOOL_TX_COPYBREAK,
> +     /*
> +      * Add your fresh new tubale attribute above and remember to update
> +      * tunable_strings[] in net/core/ethtool.c
> +      */
> +     ETHTOOL_TUNABLE_COUNT,
>  };
>  
>  enum tunable_type_id {

Please put two leading underscores in the name of this enumeration
to make it clear that it is an implementation internal value that
users should not try to use.  F.e. __ETHTOOL_TUNABLE_COUNT
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to