[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YZ+V0DjXTnUmi51R@unreal>
Date: Thu, 25 Nov 2021 15:55:28 +0200
From: Leon Romanovsky <leon@...nel.org>
To: xiangxia.m.yue@...il.com
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH net-next 1/2] ifb: support ethtools driver info
On Thu, Nov 25, 2021 at 10:01:54AM +0800, xiangxia.m.yue@...il.com wrote:
> From: Tonghao Zhang <xiangxia.m.yue@...il.com>
>
> ifb netdev may be created by others prefix, not ifbX.
> For getting netdev driver info, add ifb ethtools callback.
>
> Cc: Jakub Kicinski <kuba@...nel.org>
> Cc: "David S. Miller" <davem@...emloft.net>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@...il.com>
> ---
> drivers/net/ifb.c | 22 +++++++++++++++++++---
> 1 file changed, 19 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
> index 31f522b8e54e..d9078ce041c4 100644
> --- a/drivers/net/ifb.c
> +++ b/drivers/net/ifb.c
> @@ -26,6 +26,7 @@
>
> #include <linux/module.h>
> #include <linux/kernel.h>
> +#include <linux/ethtool.h>
> #include <linux/netdevice.h>
> #include <linux/etherdevice.h>
> #include <linux/init.h>
> @@ -35,7 +36,10 @@
> #include <net/pkt_sched.h>
> #include <net/net_namespace.h>
>
> -#define TX_Q_LIMIT 32
> +#define DRV_NAME "ifb"
> +#define DRV_VERSION "1.0"
Please don't add this line too.
Thanks
Powered by blists - more mailing lists