From 5f20e22c45c08e2589e5c28956dd2bf9382619a7 Mon Sep 17 00:00:00 2001 From: Devesh Sharma Date: Mon, 18 May 2015 22:38:06 +0530 Subject: [PATCH] OFED/compat: modify rdma.m4 to fix ofed-bz2539 patch is to check vlan_insert_tag_set_proto, a recent rename of __valn_put_tag() function in kernel. Signed-off-by: Devesh Sharma --- config/rdma.m4 | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/config/rdma.m4 b/config/rdma.m4 index 0a2aaa3..1cd8351 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -1698,20 +1698,34 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], ],[ AC_MSG_RESULT(no) ]) - AC_MSG_CHECKING([if __vlan_put_tag has 3 parameters]) + + AC_MSG_CHECKING([if vlan_insert_tag_set_proto is defined]) LB_LINUX_TRY_COMPILE([ #include ],[ struct sk_buff *skb; - __vlan_put_tag(skb, 0, 0); - + vlan_insert_tag_set_proto(skb, 0, 0); return 0; ],[ AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_3_PARAMS_FOR_VLAN_PUT_TAG, 1, - [__vlan_put_tag has 3 parameters]) + AC_DEFINE(HAVE_VLAN_INSERT_TAG_SET_PROTO, 1, + [vlan_insert_tag_set_proto is defined]) ],[ AC_MSG_RESULT(no) + AC_MSG_CHECKING([if __vlan_put_tag has 3 parameters]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + struct sk_buff *skb; + __vlan_put_tag(skb, 0, 0); + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_3_PARAMS_FOR_VLAN_PUT_TAG, 1, + [__vlan_put_tag has 3 parameters]) + ],[ + AC_MSG_RESULT(no) + ]) ]) AC_MSG_CHECKING([if __vlan_hwaccel_put_tag has 3 parameters]) -- 2.41.0