]> git.baikalelectronics.ru Git - kernel.git/commit
hyperv: Add handling of IP header with option field in netvsc_set_hash()
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 16 Oct 2014 21:47:58 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Oct 2014 03:43:40 +0000 (23:43 -0400)
commit99afe07285320092bd7d78227ee35760b817c674
tree3f7fa7be6589fa32d74d2c7c0c3e82bde97a3968
parent0551a9c445ca72f554d7053fe42d79c97aa9697a
hyperv: Add handling of IP header with option field in netvsc_set_hash()

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. The general
parser skb_flow_dissect() is used here.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c