[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200701.153321.436005855074448230.davem@davemloft.net>
Date: Wed, 01 Jul 2020 15:33:21 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ecree@...arflare.com
Cc: kuba@...nel.org, linux-net-drivers@...arflare.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next 12/15] sfc_ef100: add EF100 to NIC-revision
enumeration
From: Edward Cree <ecree@...arflare.com>
Date: Wed, 1 Jul 2020 23:23:40 +0100
> On 01/07/2020 20:44, David Miller wrote:
>> Or is this code used as a library by two "drivers"?
> Yes, it is; there will be a second module 'sfc_ef100.ko'which this
> file will be linked into and which will set efx->type to one with
> an EF100 revision.
>
> Although tbh I have been wondering about another approach to
> ethtool_get_drvinfo: we could have a const char [] in each driver's
> non-common parts, holding KBUILD_MODNAME, which ethtool_common.c
> could just reference, rather than looking at efx->type->revision
> and relying on the rest of the driver to set it up right.
> Since it looks like I'll need to respin this series anyway, I'll try
> that and see if it works — it seems cleaner to me.
It seems cleaner to me too.
Powered by blists - more mailing lists