From: Naga Irrinki Date: Mon, 15 Feb 2016 05:52:27 +0000 (+0530) Subject: rdma.m4: be2net backport for RHEL 7.2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=92e9f5eb8d09080c2373958ba4c99962cc989598;p=~emulex%2Ftmp%2Fcompat%2F.git rdma.m4: be2net backport for RHEL 7.2 Adding the defines for backporting the be2net for RH 7.2 Use HAVE_NDO_DFLT_BRIDGE_GETLINK_7_PARAMS macro Signed-off-by: Naga Irrinki Signed-off-by: Selvin Xavier --- diff --git a/config/rdma.m4 b/config/rdma.m4 index bd53a97..f00c8e6 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -1308,6 +1308,21 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if rtnetlink.h ndo_dflt_bridge_getlink has 7 params]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + ndo_dflt_bridge_getlink(NULL, 0, 0, NULL, 0, 0, 0); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_NDO_DFLT_BRIDGE_GETLINK_7_PARAMS, 1, + [ ndo_dflt_bridge_getlink with 7 params is defined]) + ],[ + AC_MSG_RESULT(no) + ]) + AC_MSG_CHECKING([if struct net_device_ops ndo_vlan_rx_add_vid has 3 parameters ]) LB_LINUX_TRY_COMPILE([ #include