datapath: Improve compat rxhash functionality.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 3 Dec 2013 16:33:36 +0000 (08:33 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 3 Dec 2013 16:36:46 +0000 (08:36 -0800)
commit1653f445b3cf25ce1278bd7451ee1f56e90c5928
tree414d210bb430a60a8ae5099b66eba2486c5a6486
parent3a5edd799e7ae823ef4bb413f998fbf04d376611
datapath: Improve compat rxhash functionality.

Following patch improves rxhash calculation, It is taken from
upstream Linux kernel code.
From kernel 3.8, skb_get_rxhash() can handle hardware generated
l4-rxhash. Therefore compat skb_get_rxhash() is not used on
kernel 3.8 or new.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Reviewed-by: Thomas Graf <tgraf@redhat.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/flow_dissector.c
datapath/linux/compat/include/linux/net.h
datapath/linux/compat/include/linux/skbuff.h
datapath/linux/compat/utils.c