[PATCH 1/2] eppic: vhost_net_buffers - Adopt to struct sk_buff changes

Atsushi Kumagai ats-kumagai at wm.jp.nec.com
Sun Dec 18 23:34:45 PST 2016


Hello Kamalesh,

Thanks for taking care of the scripts.

The current scripts are created based on the same kernel version:

   ===================================
    Eppic scripts README
   ==================================
   
   The eppic scripts are based on the fedora 19 kernel. 

So if you update a part of the scripts, the target kernel version of
them will be complex and confusing.
I don't think we need to update these scripts since they are just sample,
the purpose is to tell users how to write a script.


Thanks,
Atsushi Kumagai

>Linux kernel commit 56b174256b69 ("net: add rbnode to struct sk_buff"),
>moves sk_buff->next into an union of sk_buff->{next/prev/tstamp/rb_node}.
>Introduce this structure member change, while traversing the socket
>buffer list.
>
>Signed-off-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>
>---
> eppic_scripts/vhost_net_buffers.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
>diff --git a/eppic_scripts/vhost_net_buffers.c b/eppic_scripts/vhost_net_buffers.c
>index 39ae595..1260acb 100644
>--- a/eppic_scripts/vhost_net_buffers.c
>+++ b/eppic_scripts/vhost_net_buffers.c
>@@ -45,7 +45,10 @@ vhost_net(struct vhost_net *net)
> 				memset((char *)&(buff->data_len), 'L', 0x4);
> 			}
>
>-			next = buff->next;
>+			/*
>+			 * .next is the first entry.
>+			 */
>+			next = (struct sk_buff *)(unsigned long)*buff;
> 		}
>
> 		head = (struct sk_buff_head *)&(sk->sk_write_queue);
>@@ -60,8 +63,10 @@ vhost_net(struct vhost_net *net)
> 				memset((char *)&(buff->data_len), 'L', 0x4);
> 			}
>
>-			next = buff->next;
>-
>+			/*
>+			 * .next is the first entry.
>+			 */
>+			next = (struct sk_buff *)(unsigned long)*buff;
> 		}
> 	}
> }
>--
>2.7.4
>
>
>_______________________________________________
>kexec mailing list
>kexec at lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/kexec



More information about the kexec mailing list