netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dimlib: make DIMLIB a hidden symbol
@ 2019-09-20 13:31 Uwe Kleine-König
  2019-09-20 17:02 ` Tal Gilboa
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-09-20 13:31 UTC (permalink / raw)
  To: Tal Gilboa, Saeed Mahameed; +Cc: linux-kernel, netdev

According to Tal Gilboa the only benefit from DIM comes from a driver
that uses it. So it doesn't make sense to make this symbol user visible,
instead all drivers that use it should select it (as is already the case
AFAICT).

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
---
 lib/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index cc04124ed8f7..9fe8a21fd183 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -555,8 +555,7 @@ config SIGNATURE
 	  Implementation is done using GnuPG MPI library
 
 config DIMLIB
-	bool "DIM library"
-	default y
+	bool
 	help
 	  Dynamic Interrupt Moderation library.
 	  Implements an algorithm for dynamically change CQ moderation values
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-20 13:31 [PATCH] dimlib: make DIMLIB a hidden symbol Uwe Kleine-König
@ 2019-09-20 17:02 ` Tal Gilboa
  2019-09-20 17:41   ` Randy Dunlap
                     ` (2 more replies)
  2019-09-22  3:06 ` Jakub Kicinski
                   ` (2 subsequent siblings)
  3 siblings, 3 replies; 12+ messages in thread
From: Tal Gilboa @ 2019-09-20 17:02 UTC (permalink / raw)
  To: Uwe Kleine-König, Saeed Mahameed, Arthur Kiyanovski
  Cc: linux-kernel, netdev

On 9/20/2019 4:31 PM, Uwe Kleine-König wrote:
> According to Tal Gilboa the only benefit from DIM comes from a driver
> that uses it. So it doesn't make sense to make this symbol user visible,
> instead all drivers that use it should select it (as is already the case
> AFAICT).
> 
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
> ---
>   lib/Kconfig | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/lib/Kconfig b/lib/Kconfig
> index cc04124ed8f7..9fe8a21fd183 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -555,8 +555,7 @@ config SIGNATURE
>   	  Implementation is done using GnuPG MPI library
>   
>   config DIMLIB
> -	bool "DIM library"
> -	default y
> +	bool
>   	help
>   	  Dynamic Interrupt Moderation library.
>   	  Implements an algorithm for dynamically change CQ moderation values
>
There's a pending series using DIM which didn't add the select clause 
[1]. Arthur, FYI. Other than that LGTM.

[1] https://www.mail-archive.com/netdev@vger.kernel.org/msg314304.html


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-20 17:02 ` Tal Gilboa
@ 2019-09-20 17:41   ` Randy Dunlap
  2019-09-20 17:58   ` Uwe Kleine-König
  2019-09-25  7:59   ` Kiyanovski, Arthur
  2 siblings, 0 replies; 12+ messages in thread
From: Randy Dunlap @ 2019-09-20 17:41 UTC (permalink / raw)
  To: Tal Gilboa, Uwe Kleine-König, Saeed Mahameed, Arthur Kiyanovski
  Cc: linux-kernel, netdev

On 9/20/19 10:02 AM, Tal Gilboa wrote:
> On 9/20/2019 4:31 PM, Uwe Kleine-König wrote:
>> According to Tal Gilboa the only benefit from DIM comes from a driver
>> that uses it. So it doesn't make sense to make this symbol user visible,
>> instead all drivers that use it should select it (as is already the case
>> AFAICT).
>>
>> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
>> ---
>>   lib/Kconfig | 3 +--
>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/lib/Kconfig b/lib/Kconfig
>> index cc04124ed8f7..9fe8a21fd183 100644
>> --- a/lib/Kconfig
>> +++ b/lib/Kconfig
>> @@ -555,8 +555,7 @@ config SIGNATURE
>>   	  Implementation is done using GnuPG MPI library
>>   
>>   config DIMLIB
>> -	bool "DIM library"
>> -	default y
>> +	bool
>>   	help
>>   	  Dynamic Interrupt Moderation library.
>>   	  Implements an algorithm for dynamically change CQ moderation values
>>
> There's a pending series using DIM which didn't add the select clause 
> [1]. Arthur, FYI. Other than that LGTM.

That's easy enough to fix.

> [1] https://www.mail-archive.com/netdev@vger.kernel.org/msg314304.html

for the patch:
Acked-by: Randy Dunlap <rdunlap@infradead.org>


-- 
~Randy

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-20 17:02 ` Tal Gilboa
  2019-09-20 17:41   ` Randy Dunlap
@ 2019-09-20 17:58   ` Uwe Kleine-König
  2019-09-25  7:59   ` Kiyanovski, Arthur
  2 siblings, 0 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-09-20 17:58 UTC (permalink / raw)
  To: Tal Gilboa, Saeed Mahameed, Arthur Kiyanovski; +Cc: linux-kernel, netdev


[-- Attachment #1.1: Type: text/plain, Size: 830 bytes --]

Hello,

On 9/20/19 7:02 PM, Tal Gilboa wrote:
> On 9/20/2019 4:31 PM, Uwe Kleine-König wrote:
>> diff --git a/lib/Kconfig b/lib/Kconfig
>> index cc04124ed8f7..9fe8a21fd183 100644
>> --- a/lib/Kconfig
>> +++ b/lib/Kconfig
>> @@ -555,8 +555,7 @@ config SIGNATURE
>>   	  Implementation is done using GnuPG MPI library
>>   
>>   config DIMLIB
>> -	bool "DIM library"
>> -	default y
>> +	bool
>>   	help
>>   	  Dynamic Interrupt Moderation library.
>>   	  Implements an algorithm for dynamically change CQ moderation values
>>
> There's a pending series using DIM which didn't add the select clause 
> [1]. Arthur, FYI. Other than that LGTM.

IMHO this should be fixed, as otherwise the config with the new code
enabled and DIMLIB disabled will fail to build also without my change.

Best regards
Uwe


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-20 13:31 [PATCH] dimlib: make DIMLIB a hidden symbol Uwe Kleine-König
  2019-09-20 17:02 ` Tal Gilboa
@ 2019-09-22  3:06 ` Jakub Kicinski
  2019-09-23  6:18   ` Uwe Kleine-König
  2019-09-24 14:45 ` David Miller
  2019-09-30 19:34 ` [PATCH] " Geert Uytterhoeven
  3 siblings, 1 reply; 12+ messages in thread
From: Jakub Kicinski @ 2019-09-22  3:06 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Tal Gilboa, Saeed Mahameed, linux-kernel, netdev

On Fri, 20 Sep 2019 15:31:15 +0200, Uwe Kleine-König wrote:
> According to Tal Gilboa the only benefit from DIM comes from a driver
> that uses it. So it doesn't make sense to make this symbol user visible,
> instead all drivers that use it should select it (as is already the case
> AFAICT).
> 
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
> ---
>  lib/Kconfig | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/lib/Kconfig b/lib/Kconfig
> index cc04124ed8f7..9fe8a21fd183 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -555,8 +555,7 @@ config SIGNATURE
>  	  Implementation is done using GnuPG MPI library
>  
>  config DIMLIB
> -	bool "DIM library"
> -	default y
> +	bool
>  	help
>  	  Dynamic Interrupt Moderation library.
>  	  Implements an algorithm for dynamically change CQ moderation values

Hi Uwe! Looks like in the net tree there is a spelling mistake and
moderation is spelled "modertion":

https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/tree/lib/Kconfig#n562

I'm not seeing any patch to fix that anywhere, is it possible you have
some local change in your tree?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-22  3:06 ` Jakub Kicinski
@ 2019-09-23  6:18   ` Uwe Kleine-König
  0 siblings, 0 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-09-23  6:18 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: Tal Gilboa, Saeed Mahameed, linux-kernel, netdev


[-- Attachment #1.1: Type: text/plain, Size: 1506 bytes --]

Hello Jakub,

On 9/22/19 5:06 AM, Jakub Kicinski wrote:
> On Fri, 20 Sep 2019 15:31:15 +0200, Uwe Kleine-König wrote:
>> According to Tal Gilboa the only benefit from DIM comes from a driver
>> that uses it. So it doesn't make sense to make this symbol user visible,
>> instead all drivers that use it should select it (as is already the case
>> AFAICT).
>>
>> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
>> ---
>>  lib/Kconfig | 3 +--
>>  1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/lib/Kconfig b/lib/Kconfig
>> index cc04124ed8f7..9fe8a21fd183 100644
>> --- a/lib/Kconfig
>> +++ b/lib/Kconfig
>> @@ -555,8 +555,7 @@ config SIGNATURE
>>  	  Implementation is done using GnuPG MPI library
>>  
>>  config DIMLIB
>> -	bool "DIM library"
>> -	default y
>> +	bool
>>  	help
>>  	  Dynamic Interrupt Moderation library.
>>  	  Implements an algorithm for dynamically change CQ moderation values
> 
> Hi Uwe! Looks like in the net tree there is a spelling mistake and
> moderation is spelled "modertion":
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/tree/lib/Kconfig#n562
> 
> I'm not seeing any patch to fix that anywhere, is it possible you have
> some local change in your tree?

I sent a patch[1] for that typo, but at that time wasn't aware that
DIMLIB was relevant for net and so didn't Cc the netdev.

Best regards
Uwe

[1]
https://lore.kernel.org/lkml/20190919210314.22110-1-uwe@kleine-koenig.org/


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-20 13:31 [PATCH] dimlib: make DIMLIB a hidden symbol Uwe Kleine-König
  2019-09-20 17:02 ` Tal Gilboa
  2019-09-22  3:06 ` Jakub Kicinski
@ 2019-09-24 14:45 ` David Miller
  2019-09-24 16:02   ` [PATCH v2] " Uwe Kleine-König
  2019-09-30 19:34 ` [PATCH] " Geert Uytterhoeven
  3 siblings, 1 reply; 12+ messages in thread
From: David Miller @ 2019-09-24 14:45 UTC (permalink / raw)
  To: uwe; +Cc: talgi, saeedm, linux-kernel, netdev

From: Uwe Kleine-König <uwe@kleine-koenig.org>
Date: Fri, 20 Sep 2019 15:31:15 +0200

> According to Tal Gilboa the only benefit from DIM comes from a driver
> that uses it. So it doesn't make sense to make this symbol user visible,
> instead all drivers that use it should select it (as is already the case
> AFAICT).
> 
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>

Since this doesn't apply due to the moderation typo being elsewhere, I'd
really like you to fix up this submission to properly be against 'net'.

Thank you.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v2] dimlib: make DIMLIB a hidden symbol
  2019-09-24 14:45 ` David Miller
@ 2019-09-24 16:02   ` Uwe Kleine-König
  2019-09-26  0:18     ` Randy Dunlap
  2019-09-27  7:51     ` David Miller
  0 siblings, 2 replies; 12+ messages in thread
From: Uwe Kleine-König @ 2019-09-24 16:02 UTC (permalink / raw)
  To: Tal Gilboa, Saeed Mahameed, David Miller; +Cc: netdev

According to Tal Gilboa the only benefit from DIM comes from a driver
that uses it. So it doesn't make sense to make this symbol user visible,
instead all drivers that use it should select it (as is already the case
AFAICT).

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
---
Hello David,

On Tue, Sep 24, 2019 at 04:45:28PM +0200, David Miller wrote:
> Since this doesn't apply due to the moderation typo being elsewhere, I'd
> really like you to fix up this submission to properly be against 'net'.

I thought it would be possible to git-apply my patch with the -3 option.
I even tested that, but obviously it only applies to my tree that has
the git object with the typo fixed. Sorry for the extra effort I'm
forcing on you. This patch applies to your public tree from just now.

Best regads
Uwe

 lib/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index 4e6b1c3e4c98..d7fc9eb33b9b 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -555,8 +555,7 @@ config SIGNATURE
 	  Implementation is done using GnuPG MPI library
 
 config DIMLIB
-	bool "DIM library"
-	default y
+	bool
 	help
 	  Dynamic Interrupt Moderation library.
 	  Implements an algorithm for dynamically change CQ modertion values
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* RE: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-20 17:02 ` Tal Gilboa
  2019-09-20 17:41   ` Randy Dunlap
  2019-09-20 17:58   ` Uwe Kleine-König
@ 2019-09-25  7:59   ` Kiyanovski, Arthur
  2 siblings, 0 replies; 12+ messages in thread
From: Kiyanovski, Arthur @ 2019-09-25  7:59 UTC (permalink / raw)
  To: Tal Gilboa, Uwe Kleine-König, Saeed Mahameed; +Cc: linux-kernel, netdev

> -----Original Message-----
> From: Tal Gilboa <talgi@mellanox.com>
> Sent: Friday, September 20, 2019 8:02 PM
> To: Uwe Kleine-König <uwe@kleine-koenig.org>; Saeed Mahameed
> <saeedm@mellanox.com>; Kiyanovski, Arthur <akiyano@amazon.com>
> Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org
> Subject: Re: [PATCH] dimlib: make DIMLIB a hidden symbol
> 
> On 9/20/2019 4:31 PM, Uwe Kleine-König wrote:
> > According to Tal Gilboa the only benefit from DIM comes from a driver
> > that uses it. So it doesn't make sense to make this symbol user visible,
> > instead all drivers that use it should select it (as is already the case
> > AFAICT).
> >
> > Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
> > ---
> >   lib/Kconfig | 3 +--
> >   1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/lib/Kconfig b/lib/Kconfig
> > index cc04124ed8f7..9fe8a21fd183 100644
> > --- a/lib/Kconfig
> > +++ b/lib/Kconfig
> > @@ -555,8 +555,7 @@ config SIGNATURE
> >   	  Implementation is done using GnuPG MPI library
> >
> >   config DIMLIB
> > -	bool "DIM library"
> > -	default y
> > +	bool
> >   	help
> >   	  Dynamic Interrupt Moderation library.
> >   	  Implements an algorithm for dynamically change CQ moderation
> values
> >
> There's a pending series using DIM which didn't add the select clause
> [1]. Arthur, FYI. Other than that LGTM.
> 
> [1] https://www.mail-archive.com/netdev@vger.kernel.org/msg314304.html

Thanks Tal, I missed that.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2] dimlib: make DIMLIB a hidden symbol
  2019-09-24 16:02   ` [PATCH v2] " Uwe Kleine-König
@ 2019-09-26  0:18     ` Randy Dunlap
  2019-09-27  7:51     ` David Miller
  1 sibling, 0 replies; 12+ messages in thread
From: Randy Dunlap @ 2019-09-26  0:18 UTC (permalink / raw)
  To: Uwe Kleine-König, Tal Gilboa, Saeed Mahameed, David Miller; +Cc: netdev

On 9/24/19 9:02 AM, Uwe Kleine-König wrote:
> According to Tal Gilboa the only benefit from DIM comes from a driver
> that uses it. So it doesn't make sense to make this symbol user visible,
> instead all drivers that use it should select it (as is already the case
> AFAICT).
> 
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>

Acked-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.

> ---
> Hello David,
> 
> On Tue, Sep 24, 2019 at 04:45:28PM +0200, David Miller wrote:
>> Since this doesn't apply due to the moderation typo being elsewhere, I'd
>> really like you to fix up this submission to properly be against 'net'.
> 
> I thought it would be possible to git-apply my patch with the -3 option.
> I even tested that, but obviously it only applies to my tree that has
> the git object with the typo fixed. Sorry for the extra effort I'm
> forcing on you. This patch applies to your public tree from just now.
> 
> Best regads
> Uwe
> 
>  lib/Kconfig | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/lib/Kconfig b/lib/Kconfig
> index 4e6b1c3e4c98..d7fc9eb33b9b 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -555,8 +555,7 @@ config SIGNATURE
>  	  Implementation is done using GnuPG MPI library
>  
>  config DIMLIB
> -	bool "DIM library"
> -	default y
> +	bool
>  	help
>  	  Dynamic Interrupt Moderation library.
>  	  Implements an algorithm for dynamically change CQ modertion values
> 


-- 
~Randy

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2] dimlib: make DIMLIB a hidden symbol
  2019-09-24 16:02   ` [PATCH v2] " Uwe Kleine-König
  2019-09-26  0:18     ` Randy Dunlap
@ 2019-09-27  7:51     ` David Miller
  1 sibling, 0 replies; 12+ messages in thread
From: David Miller @ 2019-09-27  7:51 UTC (permalink / raw)
  To: uwe; +Cc: talgi, saeedm, netdev

From: Uwe Kleine-König <uwe@kleine-koenig.org>
Date: Tue, 24 Sep 2019 18:02:59 +0200

> According to Tal Gilboa the only benefit from DIM comes from a driver
> that uses it. So it doesn't make sense to make this symbol user visible,
> instead all drivers that use it should select it (as is already the case
> AFAICT).
> 
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>

Applied.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dimlib: make DIMLIB a hidden symbol
  2019-09-20 13:31 [PATCH] dimlib: make DIMLIB a hidden symbol Uwe Kleine-König
                   ` (2 preceding siblings ...)
  2019-09-24 14:45 ` David Miller
@ 2019-09-30 19:34 ` Geert Uytterhoeven
  3 siblings, 0 replies; 12+ messages in thread
From: Geert Uytterhoeven @ 2019-09-30 19:34 UTC (permalink / raw)
  To: Uwe Kleine-König, Tal Gilboa
  Cc: Saeed Mahameed, Linux Kernel Mailing List, netdev

Hi Uwe, Tal,

On Sat, Sep 21, 2019 at 7:50 PM Uwe Kleine-König <uwe@kleine-koenig.org> wrote:
> According to Tal Gilboa the only benefit from DIM comes from a driver
> that uses it. So it doesn't make sense to make this symbol user visible,
> instead all drivers that use it should select it (as is already the case
> AFAICT).
>
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>

Thanks for your patch!

> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -555,8 +555,7 @@ config SIGNATURE
>           Implementation is done using GnuPG MPI library
>
>  config DIMLIB
> -       bool "DIM library"
> -       default y
> +       bool
>         help
>           Dynamic Interrupt Moderation library.
>           Implements an algorithm for dynamically change CQ moderation values

Thanks for fixing the first issue!

The second issue is still present: NET_VENDOR_BROADCOM (which defaults
to y, as all other NET_VENDOR_* symbols) should only be a gatekeeper for
the various Broadcom network driver config options, and should not select
DIMLIB.

Cfr. my earlier complaint in
https://lore.kernel.org/linux-rdma/alpine.DEB.2.21.1907021810220.13058@ramsan.of.borg/

Gr{oetje,eeting}s,

                        Geert


--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-09-30 21:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 13:31 [PATCH] dimlib: make DIMLIB a hidden symbol Uwe Kleine-König
2019-09-20 17:02 ` Tal Gilboa
2019-09-20 17:41   ` Randy Dunlap
2019-09-20 17:58   ` Uwe Kleine-König
2019-09-25  7:59   ` Kiyanovski, Arthur
2019-09-22  3:06 ` Jakub Kicinski
2019-09-23  6:18   ` Uwe Kleine-König
2019-09-24 14:45 ` David Miller
2019-09-24 16:02   ` [PATCH v2] " Uwe Kleine-König
2019-09-26  0:18     ` Randy Dunlap
2019-09-27  7:51     ` David Miller
2019-09-30 19:34 ` [PATCH] " Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).