All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
@ 2025-06-11 16:20 Jan Kiszka
  2025-06-11 16:36 ` Philippe Gerum
  2025-06-12 13:58 ` Jan Kiszka
  0 siblings, 2 replies; 10+ messages in thread
From: Jan Kiszka @ 2025-06-11 16:20 UTC (permalink / raw)
  To: Philippe Gerum, Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Not yet tested, but this should make our pipeline green again:
https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309

 drivers/net/ethernet/intel/igb/igb_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index c0932a3cb220f..26be743f2a6cf 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -12,6 +12,7 @@
 #include <linux/pagemap.h>
 #include <linux/netdevice.h>
 #include <linux/ipv6.h>
+#include <linux/skbuff.h>
 #include <linux/slab.h>
 #include <net/checksum.h>
 #include <net/ip6_checksum.h>
-- 
2.43.0

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-11 16:20 [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions Jan Kiszka
@ 2025-06-11 16:36 ` Philippe Gerum
  2025-06-11 16:50   ` Jan Kiszka
  2025-06-12 13:58 ` Jan Kiszka
  1 sibling, 1 reply; 10+ messages in thread
From: Philippe Gerum @ 2025-06-11 16:36 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai

Jan Kiszka <jan.kiszka@siemens.com> writes:

> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> Not yet tested, but this should make our pipeline green again:
> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>
>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
> index c0932a3cb220f..26be743f2a6cf 100644
> --- a/drivers/net/ethernet/intel/igb/igb_main.c
> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
> @@ -12,6 +12,7 @@
>  #include <linux/pagemap.h>
>  #include <linux/netdevice.h>
>  #include <linux/ipv6.h>
> +#include <linux/skbuff.h>
>  #include <linux/slab.h>
>  #include <net/checksum.h>
>  #include <net/ip6_checksum.h>

Interestingly, the original code never directly included that
header. The x4 includes it indirectly, x3 does not since it does not
use the oob netstack. Applying this patch, and forwarding it to v6.12.y
which is going to have the same issue.

Thanks,

-- 
Philippe.

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-11 16:36 ` Philippe Gerum
@ 2025-06-11 16:50   ` Jan Kiszka
  2025-06-11 17:02     ` Philippe Gerum
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Kiszka @ 2025-06-11 16:50 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai

On 11.06.25 18:36, Philippe Gerum wrote:
> Jan Kiszka <jan.kiszka@siemens.com> writes:
> 
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>>
>> Not yet tested, but this should make our pipeline green again:
>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>>
>>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>> index c0932a3cb220f..26be743f2a6cf 100644
>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>> @@ -12,6 +12,7 @@
>>  #include <linux/pagemap.h>
>>  #include <linux/netdevice.h>
>>  #include <linux/ipv6.h>
>> +#include <linux/skbuff.h>
>>  #include <linux/slab.h>
>>  #include <net/checksum.h>
>>  #include <net/ip6_checksum.h>
> 
> Interestingly, the original code never directly included that
> header. The x4 includes it indirectly, x3 does not since it does not
> use the oob netstack. Applying this patch, and forwarding it to v6.12.y
> which is going to have the same issue.

Interestingly, the current 6.12.y builds did not fail.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-11 16:50   ` Jan Kiszka
@ 2025-06-11 17:02     ` Philippe Gerum
  0 siblings, 0 replies; 10+ messages in thread
From: Philippe Gerum @ 2025-06-11 17:02 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai

Jan Kiszka <jan.kiszka@siemens.com> writes:

> On 11.06.25 18:36, Philippe Gerum wrote:
>> Jan Kiszka <jan.kiszka@siemens.com> writes:
>> 
>>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>>
>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>> ---
>>>
>>> Not yet tested, but this should make our pipeline green again:
>>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>>>
>>>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>>> index c0932a3cb220f..26be743f2a6cf 100644
>>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>>> @@ -12,6 +12,7 @@
>>>  #include <linux/pagemap.h>
>>>  #include <linux/netdevice.h>
>>>  #include <linux/ipv6.h>
>>> +#include <linux/skbuff.h>
>>>  #include <linux/slab.h>
>>>  #include <net/checksum.h>
>>>  #include <net/ip6_checksum.h>
>> 
>> Interestingly, the original code never directly included that
>> header. The x4 includes it indirectly, x3 does not since it does not
>> use the oob netstack. Applying this patch, and forwarding it to v6.12.y
>> which is going to have the same issue.
>
> Interestingly, the current 6.12.y builds did not fail.
>

Maybe the pipeline ran on the fixed tree already (or some indirect
inclusion was at work with v6.12..).

-- 
Philippe.

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-11 16:20 [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions Jan Kiszka
  2025-06-11 16:36 ` Philippe Gerum
@ 2025-06-12 13:58 ` Jan Kiszka
  2025-06-12 14:15   ` Philippe Gerum
  2025-06-12 15:11   ` Philippe Gerum
  1 sibling, 2 replies; 10+ messages in thread
From: Jan Kiszka @ 2025-06-12 13:58 UTC (permalink / raw)
  To: Philippe Gerum, Xenomai

On 11.06.25 18:20, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> 
> Not yet tested, but this should make our pipeline green again:
> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
> 
>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
> index c0932a3cb220f..26be743f2a6cf 100644
> --- a/drivers/net/ethernet/intel/igb/igb_main.c
> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
> @@ -12,6 +12,7 @@
>  #include <linux/pagemap.h>
>  #include <linux/netdevice.h>
>  #include <linux/ipv6.h>
> +#include <linux/skbuff.h>
>  #include <linux/slab.h>
>  #include <net/checksum.h>
>  #include <net/ip6_checksum.h>

Sorry, this was wrong, at least insufficient:

https://source.denx.de/Xenomai/xenomai-images/-/jobs/1167536

Seems there is no way around reproducing locally. Will keep you informed.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-12 13:58 ` Jan Kiszka
@ 2025-06-12 14:15   ` Philippe Gerum
  2025-06-12 15:11   ` Philippe Gerum
  1 sibling, 0 replies; 10+ messages in thread
From: Philippe Gerum @ 2025-06-12 14:15 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai

Jan Kiszka <jan.kiszka@siemens.com> writes:

> On 11.06.25 18:20, Jan Kiszka wrote:
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>> 
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>> 
>> Not yet tested, but this should make our pipeline green again:
>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>> 
>>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>>  1 file changed, 1 insertion(+)
>> 
>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>> index c0932a3cb220f..26be743f2a6cf 100644
>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>> @@ -12,6 +12,7 @@
>>  #include <linux/pagemap.h>
>>  #include <linux/netdevice.h>
>>  #include <linux/ipv6.h>
>> +#include <linux/skbuff.h>
>>  #include <linux/slab.h>
>>  #include <net/checksum.h>
>>  #include <net/ip6_checksum.h>
>
> Sorry, this was wrong, at least insufficient:
>
> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1167536
>
> Seems there is no way around reproducing locally. Will keep you informed.
>

Meanwhile, I noticed that threaded IRQs were allowed to switch to oob
mode, which is quite wrong. This causes the oob-capable IGB driver to
run into a serious issue when forced IRQ threading is active. I'm
working on this problem, which is a Dovetail one.

-- 
Philippe.

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-12 13:58 ` Jan Kiszka
  2025-06-12 14:15   ` Philippe Gerum
@ 2025-06-12 15:11   ` Philippe Gerum
  2025-06-12 16:15     ` Jan Kiszka
  1 sibling, 1 reply; 10+ messages in thread
From: Philippe Gerum @ 2025-06-12 15:11 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai

Jan Kiszka <jan.kiszka@siemens.com> writes:

> On 11.06.25 18:20, Jan Kiszka wrote:
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>> 
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>> 
>> Not yet tested, but this should make our pipeline green again:
>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>> 
>>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>>  1 file changed, 1 insertion(+)
>> 
>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>> index c0932a3cb220f..26be743f2a6cf 100644
>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>> @@ -12,6 +12,7 @@
>>  #include <linux/pagemap.h>
>>  #include <linux/netdevice.h>
>>  #include <linux/ipv6.h>
>> +#include <linux/skbuff.h>
>>  #include <linux/slab.h>
>>  #include <net/checksum.h>
>>  #include <net/ip6_checksum.h>
>
> Sorry, this was wrong, at least insufficient:
>
> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1167536
>
> Seems there is no way around reproducing locally. Will keep you informed.
>
> Jan

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 26be743f2a6cf..67920a8a66733 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -8910,8 +8910,10 @@ static struct sk_buff *igb_build_skb(struct igb_ring *rx_ring,
 	if (unlikely(!skb))
 		return NULL;
 
+#ifdef CONFIG_IGB_OOB
 	if (igb_is_oob_page(rx_ring, rx_buffer->page))
 		skb_mark_for_recycle(skb);
+#endif
 
 	/* update pointers within the skb to store the data */
 	skb_reserve(skb, xdp->data - xdp->data_hard_start);
-- 

Philippe.

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-12 15:11   ` Philippe Gerum
@ 2025-06-12 16:15     ` Jan Kiszka
  2025-06-12 16:37       ` Philippe Gerum
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Kiszka @ 2025-06-12 16:15 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai

On 12.06.25 17:11, Philippe Gerum wrote:
> Jan Kiszka <jan.kiszka@siemens.com> writes:
> 
>> On 11.06.25 18:20, Jan Kiszka wrote:
>>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>>
>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>> ---
>>>
>>> Not yet tested, but this should make our pipeline green again:
>>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>>>
>>>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>>> index c0932a3cb220f..26be743f2a6cf 100644
>>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>>> @@ -12,6 +12,7 @@
>>>  #include <linux/pagemap.h>
>>>  #include <linux/netdevice.h>
>>>  #include <linux/ipv6.h>
>>> +#include <linux/skbuff.h>
>>>  #include <linux/slab.h>
>>>  #include <net/checksum.h>
>>>  #include <net/ip6_checksum.h>
>>
>> Sorry, this was wrong, at least insufficient:
>>
>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1167536
>>
>> Seems there is no way around reproducing locally. Will keep you informed.
>>
>> Jan
> 
> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
> index 26be743f2a6cf..67920a8a66733 100644
> --- a/drivers/net/ethernet/intel/igb/igb_main.c
> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
> @@ -8910,8 +8910,10 @@ static struct sk_buff *igb_build_skb(struct igb_ring *rx_ring,
>  	if (unlikely(!skb))
>  		return NULL;
>  
> +#ifdef CONFIG_IGB_OOB
>  	if (igb_is_oob_page(rx_ring, rx_buffer->page))
>  		skb_mark_for_recycle(skb);
> +#endif
>  
>  	/* update pointers within the skb to store the data */
>  	skb_reserve(skb, xdp->data - xdp->data_hard_start);

Yeah, that looks better - we are not enabling OOB networking in Xenomai 3.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-12 16:15     ` Jan Kiszka
@ 2025-06-12 16:37       ` Philippe Gerum
  2025-06-12 16:39         ` Jan Kiszka
  0 siblings, 1 reply; 10+ messages in thread
From: Philippe Gerum @ 2025-06-12 16:37 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai

Jan Kiszka <jan.kiszka@siemens.com> writes:

> On 12.06.25 17:11, Philippe Gerum wrote:
>> Jan Kiszka <jan.kiszka@siemens.com> writes:
>> 
>>> On 11.06.25 18:20, Jan Kiszka wrote:
>>>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>>>
>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>> ---
>>>>
>>>> Not yet tested, but this should make our pipeline green again:
>>>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>>>>
>>>>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>>>>  1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>>>> index c0932a3cb220f..26be743f2a6cf 100644
>>>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>>>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>>>> @@ -12,6 +12,7 @@
>>>>  #include <linux/pagemap.h>
>>>>  #include <linux/netdevice.h>
>>>>  #include <linux/ipv6.h>
>>>> +#include <linux/skbuff.h>
>>>>  #include <linux/slab.h>
>>>>  #include <net/checksum.h>
>>>>  #include <net/ip6_checksum.h>
>>>
>>> Sorry, this was wrong, at least insufficient:
>>>
>>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1167536
>>>
>>> Seems there is no way around reproducing locally. Will keep you informed.
>>>
>>> Jan
>> 
>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>> index 26be743f2a6cf..67920a8a66733 100644
>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>> @@ -8910,8 +8910,10 @@ static struct sk_buff *igb_build_skb(struct igb_ring *rx_ring,
>>  	if (unlikely(!skb))
>>  		return NULL;
>>  
>> +#ifdef CONFIG_IGB_OOB
>>  	if (igb_is_oob_page(rx_ring, rx_buffer->page))
>>  		skb_mark_for_recycle(skb);
>> +#endif
>>  
>>  	/* update pointers within the skb to store the data */
>>  	skb_reserve(skb, xdp->data - xdp->data_hard_start);
>
> Yeah, that looks better - we are not enabling OOB networking in Xenomai 3.
>
> Jan

This is related to the page pool support, not used by the upstream IGB
driver which manages packet memory somewhat manually. That support has
gained an oob extension NET_OOB wants, so that we can keep most of the
original memory management unchanged in drivers which already depend on
it. IOW, IGB_OOB -> NET_OOB -> PAGE_POOL_OOB -> PAGE_POOL.

-- 
Philippe.

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

* Re: [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions
  2025-06-12 16:37       ` Philippe Gerum
@ 2025-06-12 16:39         ` Jan Kiszka
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Kiszka @ 2025-06-12 16:39 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai

On 12.06.25 18:37, Philippe Gerum wrote:
> Jan Kiszka <jan.kiszka@siemens.com> writes:
> 
>> On 12.06.25 17:11, Philippe Gerum wrote:
>>> Jan Kiszka <jan.kiszka@siemens.com> writes:
>>>
>>>> On 11.06.25 18:20, Jan Kiszka wrote:
>>>>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>>>>
>>>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>>>> ---
>>>>>
>>>>> Not yet tested, but this should make our pipeline green again:
>>>>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1166309
>>>>>
>>>>>  drivers/net/ethernet/intel/igb/igb_main.c | 1 +
>>>>>  1 file changed, 1 insertion(+)
>>>>>
>>>>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>>>>> index c0932a3cb220f..26be743f2a6cf 100644
>>>>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>>>>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>>>>> @@ -12,6 +12,7 @@
>>>>>  #include <linux/pagemap.h>
>>>>>  #include <linux/netdevice.h>
>>>>>  #include <linux/ipv6.h>
>>>>> +#include <linux/skbuff.h>
>>>>>  #include <linux/slab.h>
>>>>>  #include <net/checksum.h>
>>>>>  #include <net/ip6_checksum.h>
>>>>
>>>> Sorry, this was wrong, at least insufficient:
>>>>
>>>> https://source.denx.de/Xenomai/xenomai-images/-/jobs/1167536
>>>>
>>>> Seems there is no way around reproducing locally. Will keep you informed.
>>>>
>>>> Jan
>>>
>>> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
>>> index 26be743f2a6cf..67920a8a66733 100644
>>> --- a/drivers/net/ethernet/intel/igb/igb_main.c
>>> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
>>> @@ -8910,8 +8910,10 @@ static struct sk_buff *igb_build_skb(struct igb_ring *rx_ring,
>>>  	if (unlikely(!skb))
>>>  		return NULL;
>>>  
>>> +#ifdef CONFIG_IGB_OOB
>>>  	if (igb_is_oob_page(rx_ring, rx_buffer->page))
>>>  		skb_mark_for_recycle(skb);
>>> +#endif
>>>  
>>>  	/* update pointers within the skb to store the data */
>>>  	skb_reserve(skb, xdp->data - xdp->data_hard_start);
>>
>> Yeah, that looks better - we are not enabling OOB networking in Xenomai 3.
>>
>> Jan
> 
> This is related to the page pool support, not used by the upstream IGB
> driver which manages packet memory somewhat manually. That support has
> gained an oob extension NET_OOB wants, so that we can keep most of the
> original memory management unchanged in drivers which already depend on
> it. IOW, IGB_OOB -> NET_OOB -> PAGE_POOL_OOB -> PAGE_POOL.
> 

Right. And applying your change locally fixed the build issue for
xenomai-images. Please apply, and feel free to drop my wrong "fix" here
as well - I suspect the header is anyway included, via multiple paths.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

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

end of thread, other threads:[~2025-06-12 16:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 16:20 [PATCH dovetail 6.1-cip] igb: add missing header for oob extensions Jan Kiszka
2025-06-11 16:36 ` Philippe Gerum
2025-06-11 16:50   ` Jan Kiszka
2025-06-11 17:02     ` Philippe Gerum
2025-06-12 13:58 ` Jan Kiszka
2025-06-12 14:15   ` Philippe Gerum
2025-06-12 15:11   ` Philippe Gerum
2025-06-12 16:15     ` Jan Kiszka
2025-06-12 16:37       ` Philippe Gerum
2025-06-12 16:39         ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.