From: Vladimir Sokolovsky Date: Sun, 20 Nov 2016 10:41:48 +0000 (+0200) Subject: rdma.m4: Added macros to support SLES12 SP2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0c61870743f33491011b3e0b40dc686f5c9d9c64;p=~aditr%2Fcompat.git rdma.m4: Added macros to support SLES12 SP2 Signed-off-by: Vladimir Sokolovsky --- diff --git a/config/rdma.m4 b/config/rdma.m4 index cb97890..e935849 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -3496,6 +3496,66 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if net/pkt_cls.h has tcf_exts_to_list]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + tcf_exts_to_list(NULL, NULL); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_TCF_EXTS_TO_LIST, 1, + [tcf_exts_to_list is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if net/act_api.h has tcf_action_stats_update]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + tcf_action_stats_update(NULL, 0, 0, 0); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_TCF_ACTION_STATS_UPDATE, 1, + [tcf_action_stats_update is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if net/tc_act/tc_mirred.h has is_tcf_mirred_redirect]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + is_tcf_mirred_redirect(NULL, 0, 0, 0); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_IS_TCF_MIRRED_REDIRECT, 1, + [is_tcf_mirred_redirect is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + + AC_MSG_CHECKING([if enum tc_fl_command has TC_CLSFLOWER_STATS]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + enum tc_fl_command x = TC_CLSFLOWER_STATS; + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_TC_CLSFLOWER_STATS, 1, + [TC_CLSFLOWER_STATS is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + ]) # # COMPAT_CONFIG_HEADERS