Thread (3 messages) flat view 3 messages, 2 authors, 2014-10-14

RE: [PATCH net-next,v2] hyperv: Add handling of IP header with option field in netvsc_set_hash()

From: Haiyang Zhang <haiyangz@microsoft.com>
Date: 2014-10-14 22:21:10
Also in: lkml

-----Original Message-----
From: David Miller [mailto:davem@davemloft.net]
Sent: Tuesday, October 14, 2014 5:37 PM
To: Haiyang Zhang
Cc: netdev@vger.kernel.org; KY Srinivasan; olaf@aepfle.de;
jasowang@redhat.com; linux-kernel@vger.kernel.org; driverdev-
devel@linuxdriverproject.org
Subject: Re: [PATCH net-next,v2] hyperv: Add handling of IP header with option
field in netvsc_set_hash()

From: Haiyang Zhang <haiyangz@microsoft.com>
Date: Tue, 14 Oct 2014 15:16:28 -0700
quoted
In case that the IP header has optional field at the end, this patch
will get the port numbers after that field, and compute the hash.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Instead of adding hack after hack after hack to your internal header parser, just
use the generic flow dissector we already have in the kernel to fetch out the
values you need.

__skb_flow_get_ports() etc.
Thanks. I will update the patch.

- Haiyang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help