acinclude.m4: Fix skb_get_hash function detection
authorMarkos Chandras <mchandras@suse.de>
Tue, 10 May 2016 08:21:00 +0000 (09:21 +0100)
committerJesse Gross <jesse@kernel.org>
Mon, 16 May 2016 18:33:12 +0000 (11:33 -0700)
commitc253c2e3223882160addf0b1d66b64a6398b032d
tree0a0ccb5ff63edb2190365ea85aebb133fab3db44
parentb396293adf1d7ddc43587694ba6f0d1681403fd0
acinclude.m4: Fix skb_get_hash function detection

Commit e2f3178f0582 ("datapath: Add support for kernel 3.14.") added
support for 3.14 kernels and a new OVS_GREP_IFELSE check for the
"skg_get_hash" function in the process. "skb_get_hash" was introduced
in the Linux kernel commit 3958afa1b272 ("net: Change skb_get_rxhash to
skb_get_hash") which exists in >=3.14 but the OVS_GREP_IFELSE macro
also matches the "skb_get_hash_raw" function which exists in older
kernels. As a result of which, the check makes the build system
behave as if the "skb_get_hash" function is available in these older
kernels leading to build failures. We fix this by explicitly checking
for "skb_get_hash(" which matches the function definition.

Signed-off-by: Markos Chandras <mchandras@suse.de>
Signed-off-by: Jesse Gross <jesse@kernel.org>
acinclude.m4