DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] kni: reduce interface name size
@ 2019-11-15 11:41 Michael Pfeiffer
  2019-11-15 12:30 ` Igor Ryzhov
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Michael Pfeiffer @ 2019-11-15 11:41 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Michael Pfeiffer

The name in rte_kni_device_info is passed to the kernel, which allows
interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
longer name currently trigger a kernel BUG in alloc_netdev_mqs in
net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.

Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
---
 lib/librte_eal/linux/eal/include/rte_kni_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h b/lib/librte_eal/linux/eal/include/rte_kni_common.h
index 46f75a710..59339271b 100644
--- a/lib/librte_eal/linux/eal/include/rte_kni_common.h
+++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h
@@ -18,7 +18,7 @@
 /**
  * KNI name is part of memzone name.
  */
-#define RTE_KNI_NAMESIZE 32
+#define RTE_KNI_NAMESIZE 16
 
 #define RTE_CACHE_LINE_MIN_SIZE 64
 
-- 
2.20.1


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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-15 11:41 [dpdk-dev] [PATCH] kni: reduce interface name size Michael Pfeiffer
@ 2019-11-15 12:30 ` Igor Ryzhov
  2019-11-15 12:43   ` Ferruh Yigit
  2019-11-15 12:43   ` Michael Pfeiffer
  2019-11-15 13:03 ` [dpdk-dev] [PATCH v2] " Michael Pfeiffer
  2019-11-15 16:23 ` [dpdk-dev] [PATCH] " Stephen Hemminger
  2 siblings, 2 replies; 12+ messages in thread
From: Igor Ryzhov @ 2019-11-15 12:30 UTC (permalink / raw)
  To: Michael Pfeiffer; +Cc: Ferruh Yigit, dev

Hi Michael,

Isn't it better to set it to IFNAMSIZ instead of 16?

Best regards,
Igot

On Fri, Nov 15, 2019 at 2:41 PM Michael Pfeiffer <
michael.pfeiffer@tu-ilmenau.de> wrote:

> The name in rte_kni_device_info is passed to the kernel, which allows
> interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
> longer name currently trigger a kernel BUG in alloc_netdev_mqs in
> net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
>
> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
> ---
>  lib/librte_eal/linux/eal/include/rte_kni_common.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h
> b/lib/librte_eal/linux/eal/include/rte_kni_common.h
> index 46f75a710..59339271b 100644
> --- a/lib/librte_eal/linux/eal/include/rte_kni_common.h
> +++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h
> @@ -18,7 +18,7 @@
>  /**
>   * KNI name is part of memzone name.
>   */
> -#define RTE_KNI_NAMESIZE 32
> +#define RTE_KNI_NAMESIZE 16
>
>  #define RTE_CACHE_LINE_MIN_SIZE 64
>
> --
> 2.20.1
>
>

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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-15 12:30 ` Igor Ryzhov
@ 2019-11-15 12:43   ` Ferruh Yigit
  2019-11-15 12:43   ` Michael Pfeiffer
  1 sibling, 0 replies; 12+ messages in thread
From: Ferruh Yigit @ 2019-11-15 12:43 UTC (permalink / raw)
  To: Igor Ryzhov, Michael Pfeiffer; +Cc: dev

On 11/15/2019 12:30 PM, Igor Ryzhov wrote:
> Hi Michael,
> 
> Isn't it better to set it to IFNAMSIZ instead of 16?

I was thinking same, but "linux/if.h" included only for kernel, so instead of
introducing new dependency in user side, perhaps better to keep it as hardcoded
value.

> 
> Best regards,
> Igot
> 
> On Fri, Nov 15, 2019 at 2:41 PM Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de
> <mailto:michael.pfeiffer@tu-ilmenau.de>> wrote:
> 
>     The name in rte_kni_device_info is passed to the kernel, which allows
>     interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
>     longer name currently trigger a kernel BUG in alloc_netdev_mqs in
>     net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
> 
>     Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de
>     <mailto:michael.pfeiffer@tu-ilmenau.de>>
>     ---
>      lib/librte_eal/linux/eal/include/rte_kni_common.h | 2 +-
>      1 file changed, 1 insertion(+), 1 deletion(-)
> 
>     diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h
>     b/lib/librte_eal/linux/eal/include/rte_kni_common.h
>     index 46f75a710..59339271b 100644
>     --- a/lib/librte_eal/linux/eal/include/rte_kni_common.h
>     +++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h
>     @@ -18,7 +18,7 @@
>      /**
>       * KNI name is part of memzone name.
>       */
>     -#define RTE_KNI_NAMESIZE 32
>     +#define RTE_KNI_NAMESIZE 16
> 
>      #define RTE_CACHE_LINE_MIN_SIZE 64
> 
>     -- 
>     2.20.1
> 


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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-15 12:30 ` Igor Ryzhov
  2019-11-15 12:43   ` Ferruh Yigit
@ 2019-11-15 12:43   ` Michael Pfeiffer
  2019-11-15 12:49     ` Ferruh Yigit
  1 sibling, 1 reply; 12+ messages in thread
From: Michael Pfeiffer @ 2019-11-15 12:43 UTC (permalink / raw)
  To: Igor Ryzhov; +Cc: Ferruh Yigit, dev

Hi Igor,
you're right, RTE_KNI_NAMESIZE == IFNAMSIZ is the intention. However,
to my understanding linux/if.h (where IFNAMSIZ is defined) is only
included when building kernel code. I thought maybe this was
intentional to keep rte_kni_common.h free of Linux kernel dependencies
(when building userland code).

In practice, it probably won't matter, as the KNI kernel module is
available for Linux only at the moment. I will therefore gladly change
this to IFNAMSIZ if you and Ferruh think this is the way to go.

Regards
Michael

On Fri, 2019-11-15 at 15:30 +0300, Igor Ryzhov wrote:
> Hi Michael,
> 
> Isn't it better to set it to IFNAMSIZ instead of 16?
> 
> Best regards,
> Igot
> 
> On Fri, Nov 15, 2019 at 2:41 PM Michael Pfeiffer <
> michael.pfeiffer@tu-ilmenau.de> wrote:
> 
> > The name in rte_kni_device_info is passed to the kernel, which
> > allows
> > interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc
> > with a
> > longer name currently trigger a kernel BUG in alloc_netdev_mqs in
> > net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
> > 
> > Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
> > ---
> >  lib/librte_eal/linux/eal/include/rte_kni_common.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > b/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > index 46f75a710..59339271b 100644
> > --- a/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > +++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > @@ -18,7 +18,7 @@
> >  /**
> >   * KNI name is part of memzone name.
> >   */
> > -#define RTE_KNI_NAMESIZE 32
> > +#define RTE_KNI_NAMESIZE 16
> > 
> >  #define RTE_CACHE_LINE_MIN_SIZE 64
> > 
> > --
> > 2.20.1
> > 
> > 
-- 
Michael Pfeiffer

Technische Universität Ilmenau
Fakultät für Informatik und Automatisierung
Fachgebiet Telematik / Rechnernetze

E-Mail: michael.pfeiffer@tu-ilmenau.de
Telefon: +49 3677 69-4854
Web: https://www.tu-ilmenau.de/telematik/mitarbeiter/michael-pfeiffer/


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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-15 12:43   ` Michael Pfeiffer
@ 2019-11-15 12:49     ` Ferruh Yigit
  2019-11-15 12:52       ` Michael Pfeiffer
  0 siblings, 1 reply; 12+ messages in thread
From: Ferruh Yigit @ 2019-11-15 12:49 UTC (permalink / raw)
  To: Michael Pfeiffer, Igor Ryzhov; +Cc: dev

On 11/15/2019 12:43 PM, Michael Pfeiffer wrote:
> Hi Igor,
> you're right, RTE_KNI_NAMESIZE == IFNAMSIZ is the intention. However,
> to my understanding linux/if.h (where IFNAMSIZ is defined) is only
> included when building kernel code. I thought maybe this was
> intentional to keep rte_kni_common.h free of Linux kernel dependencies
> (when building userland code).
> 
> In practice, it probably won't matter, as the KNI kernel module is
> available for Linux only at the moment. I will therefore gladly change
> this to IFNAMSIZ if you and Ferruh think this is the way to go.

I think better to not add dependency to userland, and I don't expect IFNAMSIZ
changing in kernel side, so safe to keep hardcoded value,
only perhaps a simple /* IFNAMSIZ  */ comment can be added to highlight the
relation?

> 
> Regards
> Michael
> 
> On Fri, 2019-11-15 at 15:30 +0300, Igor Ryzhov wrote:
>> Hi Michael,
>>
>> Isn't it better to set it to IFNAMSIZ instead of 16?
>>
>> Best regards,
>> Igot
>>
>> On Fri, Nov 15, 2019 at 2:41 PM Michael Pfeiffer <
>> michael.pfeiffer@tu-ilmenau.de> wrote:
>>
>>> The name in rte_kni_device_info is passed to the kernel, which
>>> allows
>>> interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc
>>> with a
>>> longer name currently trigger a kernel BUG in alloc_netdev_mqs in
>>> net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
>>>
>>> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
>>> ---
>>>  lib/librte_eal/linux/eal/include/rte_kni_common.h | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h
>>> b/lib/librte_eal/linux/eal/include/rte_kni_common.h
>>> index 46f75a710..59339271b 100644
>>> --- a/lib/librte_eal/linux/eal/include/rte_kni_common.h
>>> +++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h
>>> @@ -18,7 +18,7 @@
>>>  /**
>>>   * KNI name is part of memzone name.
>>>   */
>>> -#define RTE_KNI_NAMESIZE 32
>>> +#define RTE_KNI_NAMESIZE 16
>>>
>>>  #define RTE_CACHE_LINE_MIN_SIZE 64
>>>
>>> --
>>> 2.20.1
>>>
>>>


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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-15 12:49     ` Ferruh Yigit
@ 2019-11-15 12:52       ` Michael Pfeiffer
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Pfeiffer @ 2019-11-15 12:52 UTC (permalink / raw)
  To: Ferruh Yigit, Igor Ryzhov; +Cc: dev

Hi Ferruh,

On Fri, 2019-11-15 at 12:49 +0000, Ferruh Yigit wrote:
> On 11/15/2019 12:43 PM, Michael Pfeiffer wrote:
> > Hi Igor,
> > you're right, RTE_KNI_NAMESIZE == IFNAMSIZ is the intention.
> > However,
> > to my understanding linux/if.h (where IFNAMSIZ is defined) is only
> > included when building kernel code. I thought maybe this was
> > intentional to keep rte_kni_common.h free of Linux kernel
> > dependencies
> > (when building userland code).
> > 
> > In practice, it probably won't matter, as the KNI kernel module is
> > available for Linux only at the moment. I will therefore gladly
> > change
> > this to IFNAMSIZ if you and Ferruh think this is the way to go.
> 
> I think better to not add dependency to userland, and I don't expect
> IFNAMSIZ
> changing in kernel side, so safe to keep hardcoded value,
> only perhaps a simple /* IFNAMSIZ  */ comment can be added to
> highlight the
> relation?

perfect, I will update the patch accordingly.

Regards
Michael

> > Regards
> > Michael
> > 
> > On Fri, 2019-11-15 at 15:30 +0300, Igor Ryzhov wrote:
> > > Hi Michael,
> > > 
> > > Isn't it better to set it to IFNAMSIZ instead of 16?
> > > 
> > > Best regards,
> > > Igot
> > > 
> > > On Fri, Nov 15, 2019 at 2:41 PM Michael Pfeiffer <
> > > michael.pfeiffer@tu-ilmenau.de> wrote:
> > > 
> > > > The name in rte_kni_device_info is passed to the kernel, which
> > > > allows
> > > > interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc
> > > > with a
> > > > longer name currently trigger a kernel BUG in alloc_netdev_mqs
> > > > in
> > > > net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this
> > > > situation.
> > > > 
> > > > Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de
> > > > >
> > > > ---
> > > >  lib/librte_eal/linux/eal/include/rte_kni_common.h | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > 
> > > > diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > > > b/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > > > index 46f75a710..59339271b 100644
> > > > --- a/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > > > +++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h
> > > > @@ -18,7 +18,7 @@
> > > >  /**
> > > >   * KNI name is part of memzone name.
> > > >   */
> > > > -#define RTE_KNI_NAMESIZE 32
> > > > +#define RTE_KNI_NAMESIZE 16
> > > > 
> > > >  #define RTE_CACHE_LINE_MIN_SIZE 64
> > > > 
> > > > --
> > > > 2.20.1
> > > > 
> > > > 
-- 
Michael Pfeiffer

Technische Universität Ilmenau
Fakultät für Informatik und Automatisierung
Fachgebiet Telematik / Rechnernetze

E-Mail: michael.pfeiffer@tu-ilmenau.de
Telefon: +49 3677 69-4854
Web: https://www.tu-ilmenau.de/telematik/mitarbeiter/michael-pfeiffer/


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

* [dpdk-dev] [PATCH v2] kni: reduce interface name size
  2019-11-15 11:41 [dpdk-dev] [PATCH] kni: reduce interface name size Michael Pfeiffer
  2019-11-15 12:30 ` Igor Ryzhov
@ 2019-11-15 13:03 ` Michael Pfeiffer
  2019-11-15 13:30   ` Ferruh Yigit
  2019-11-15 16:23 ` [dpdk-dev] [PATCH] " Stephen Hemminger
  2 siblings, 1 reply; 12+ messages in thread
From: Michael Pfeiffer @ 2019-11-15 13:03 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Michael Pfeiffer

The name in rte_kni_device_info is passed to the kernel, which allows
interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
longer name currently trigger a kernel BUG in alloc_netdev_mqs in
net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.

Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
---
 lib/librte_eal/linux/eal/include/rte_kni_common.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h b/lib/librte_eal/linux/eal/include/rte_kni_common.h
index 46f75a710..b427cd56c 100644
--- a/lib/librte_eal/linux/eal/include/rte_kni_common.h
+++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h
@@ -15,10 +15,10 @@
 #include <rte_config.h>
 #endif
 
-/**
- * KNI name is part of memzone name.
+/*
+ * KNI name is part of memzone name. Must not exceed IFNAMSIZ.
  */
-#define RTE_KNI_NAMESIZE 32
+#define RTE_KNI_NAMESIZE 16
 
 #define RTE_CACHE_LINE_MIN_SIZE 64
 
-- 
2.20.1


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

* Re: [dpdk-dev] [PATCH v2] kni: reduce interface name size
  2019-11-15 13:03 ` [dpdk-dev] [PATCH v2] " Michael Pfeiffer
@ 2019-11-15 13:30   ` Ferruh Yigit
  2019-11-19 21:02     ` David Marchand
  0 siblings, 1 reply; 12+ messages in thread
From: Ferruh Yigit @ 2019-11-15 13:30 UTC (permalink / raw)
  To: Michael Pfeiffer; +Cc: dev, Igor Ryzhov

On 11/15/2019 1:03 PM, Michael Pfeiffer wrote:
> The name in rte_kni_device_info is passed to the kernel, which allows
> interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
> longer name currently trigger a kernel BUG in alloc_netdev_mqs in
> net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
> 
> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>

Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>

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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-15 11:41 [dpdk-dev] [PATCH] kni: reduce interface name size Michael Pfeiffer
  2019-11-15 12:30 ` Igor Ryzhov
  2019-11-15 13:03 ` [dpdk-dev] [PATCH v2] " Michael Pfeiffer
@ 2019-11-15 16:23 ` Stephen Hemminger
  2019-11-19 12:13   ` Ferruh Yigit
  2 siblings, 1 reply; 12+ messages in thread
From: Stephen Hemminger @ 2019-11-15 16:23 UTC (permalink / raw)
  To: Michael Pfeiffer; +Cc: ferruh.yigit, dev

On Fri, 15 Nov 2019 12:41:07 +0100
Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de> wrote:

> The name in rte_kni_device_info is passed to the kernel, which allows
> interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
> longer name currently trigger a kernel BUG in alloc_netdev_mqs in
> net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
> 
> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>

Why not kill the NAMESIZE define in KNI and use the kernel one.

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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-15 16:23 ` [dpdk-dev] [PATCH] " Stephen Hemminger
@ 2019-11-19 12:13   ` Ferruh Yigit
  2019-11-19 20:58     ` David Marchand
  0 siblings, 1 reply; 12+ messages in thread
From: Ferruh Yigit @ 2019-11-19 12:13 UTC (permalink / raw)
  To: Stephen Hemminger, Michael Pfeiffer; +Cc: dev, David Marchand

On 11/15/2019 4:23 PM, Stephen Hemminger wrote:
> On Fri, 15 Nov 2019 12:41:07 +0100
> Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de> wrote:
> 
>> The name in rte_kni_device_info is passed to the kernel, which allows
>> interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
>> longer name currently trigger a kernel BUG in alloc_netdev_mqs in
>> net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
>>
>> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
> 
> Why not kill the NAMESIZE define in KNI and use the kernel one.
> 


As mentioned in the thread, userspace doesn't know NAMESIZE, only kernel module
does, because "linux/if.h" is only included by kernel module.

I don't know if will there be any side affect of including relevant header and
creating this dependency to the userspace, but I am not for taking that chance
for this benefit, the comment already clarifies the value and it is not
something that will change.

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

* Re: [dpdk-dev] [PATCH] kni: reduce interface name size
  2019-11-19 12:13   ` Ferruh Yigit
@ 2019-11-19 20:58     ` David Marchand
  0 siblings, 0 replies; 12+ messages in thread
From: David Marchand @ 2019-11-19 20:58 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: Stephen Hemminger, Michael Pfeiffer, dev

On Tue, Nov 19, 2019 at 1:13 PM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> On 11/15/2019 4:23 PM, Stephen Hemminger wrote:
> > On Fri, 15 Nov 2019 12:41:07 +0100
> > Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de> wrote:
> >
> >> The name in rte_kni_device_info is passed to the kernel, which allows
> >> interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
> >> longer name currently trigger a kernel BUG in alloc_netdev_mqs in
> >> net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
> >>
> >> Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
> >
> > Why not kill the NAMESIZE define in KNI and use the kernel one.
> >
>
>
> As mentioned in the thread, userspace doesn't know NAMESIZE, only kernel module
> does, because "linux/if.h" is only included by kernel module.
>
> I don't know if will there be any side affect of including relevant header and
> creating this dependency to the userspace, but I am not for taking that chance
> for this benefit, the comment already clarifies the value and it is not
> something that will change.

We can still revisit this later.
I will go and apply the acked v2 https://patchwork.dpdk.org/patch/63042/


-- 
David Marchand


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

* Re: [dpdk-dev] [PATCH v2] kni: reduce interface name size
  2019-11-15 13:30   ` Ferruh Yigit
@ 2019-11-19 21:02     ` David Marchand
  0 siblings, 0 replies; 12+ messages in thread
From: David Marchand @ 2019-11-19 21:02 UTC (permalink / raw)
  To: Michael Pfeiffer; +Cc: dev, Igor Ryzhov, Ferruh Yigit, Stephen Hemminger

On Fri, Nov 15, 2019 at 2:30 PM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
> On 11/15/2019 1:03 PM, Michael Pfeiffer wrote:
> > The name in rte_kni_device_info is passed to the kernel, which allows
> > interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
> > longer name currently trigger a kernel BUG in alloc_netdev_mqs in
> > net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.
> >
> > Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
>
> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied, thanks.



--
David Marchand


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

end of thread, other threads:[~2019-11-19 21:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-15 11:41 [dpdk-dev] [PATCH] kni: reduce interface name size Michael Pfeiffer
2019-11-15 12:30 ` Igor Ryzhov
2019-11-15 12:43   ` Ferruh Yigit
2019-11-15 12:43   ` Michael Pfeiffer
2019-11-15 12:49     ` Ferruh Yigit
2019-11-15 12:52       ` Michael Pfeiffer
2019-11-15 13:03 ` [dpdk-dev] [PATCH v2] " Michael Pfeiffer
2019-11-15 13:30   ` Ferruh Yigit
2019-11-19 21:02     ` David Marchand
2019-11-15 16:23 ` [dpdk-dev] [PATCH] " Stephen Hemminger
2019-11-19 12:13   ` Ferruh Yigit
2019-11-19 20:58     ` David Marchand

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).