compat-rdma/compat.git
2 years agocompat/rdma.m4: add define for dma_map_page_attrs
Selvin Xavier [Tue, 4 Sep 2018 06:28:08 +0000 (02:28 -0400)]
compat/rdma.m4: add define for dma_map_page_attrs

Add defined for dma_map_page_attrs

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
2 years agordma.m4: Compat headers for RHEL7.4 support in iw_cxgb3/cxgb3/cxgb4/iw_cxgb4
Arjun Vynipadath [Mon, 13 Aug 2018 06:24:02 +0000 (11:54 +0530)]
rdma.m4: Compat headers for RHEL7.4 support in iw_cxgb3/cxgb3/cxgb4/iw_cxgb4

2 years agoconfig-2.6.h: LINUX_BACKPORT should be defined outside of ifdef scope
Vladimir Sokolovsky [Wed, 22 Aug 2018 20:52:26 +0000 (15:52 -0500)]
config-2.6.h: LINUX_BACKPORT should be defined outside of ifdef scope

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoconfig-2.6.h: Always include config.h
Vladimir Sokolovsky [Wed, 22 Aug 2018 20:09:04 +0000 (15:09 -0500)]
config-2.6.h: Always include config.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded macros and headers to support NVME host
Vladimir Sokolovsky [Fri, 10 Aug 2018 16:18:51 +0000 (11:18 -0500)]
Added macros and headers to support NVME host

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agordma.m4: Remove redundant macros
Vladimir Sokolovsky [Thu, 9 Aug 2018 18:03:19 +0000 (13:03 -0500)]
rdma.m4: Remove redundant macros

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded macro to support iSER on RHEL7.5
Vladimir Sokolovsky [Wed, 8 Aug 2018 21:28:08 +0000 (16:28 -0500)]
Added macro to support iSER on RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded functionality to support SLES12 SP3
Vladimir Sokolovsky [Wed, 8 Aug 2018 20:09:40 +0000 (15:09 -0500)]
Added functionality to support SLES12 SP3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoRemove include/uapi/linux/ethtool.h
Vladimir Sokolovsky [Thu, 2 Aug 2018 20:08:24 +0000 (15:08 -0500)]
Remove include/uapi/linux/ethtool.h

The relevant content exist in compat-4.17.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded macros and headers to support MLX5 on RHEL7.4
Vladimir Sokolovsky [Wed, 1 Aug 2018 21:44:26 +0000 (16:44 -0500)]
Added macros and headers to support MLX5 on RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdding missing compat-3.19.h and compat-4.11.h
Vladimir Sokolovsky [Wed, 1 Aug 2018 14:46:32 +0000 (09:46 -0500)]
Adding missing compat-3.19.h and compat-4.11.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded headers and macros to support MLX4 on RHEL7.4
Vladimir Sokolovsky [Fri, 27 Jul 2018 19:40:31 +0000 (14:40 -0500)]
Added headers and macros to support MLX4 on RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded headers and macros to support IB core on RHEL7.4
Vladimir Sokolovsky [Fri, 27 Jul 2018 18:14:12 +0000 (13:14 -0500)]
Added headers and macros to support IB core on RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded HAVE_NETDEV_REG_STATE
Vladimir Sokolovsky [Thu, 26 Jul 2018 20:57:49 +0000 (15:57 -0500)]
Added HAVE_NETDEV_REG_STATE

This is to avoid redefinition of netdev_reg_state on SLES15

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agocompat: Added support for SRP on RHEL7.5
Vladimir Sokolovsky [Thu, 26 Jul 2018 18:44:33 +0000 (13:44 -0500)]
compat: Added support for SRP on RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agonetdevice.h: Use [un]register_netdevice_notifier_rh if exist
Vladimir Sokolovsky [Mon, 23 Jul 2018 19:18:04 +0000 (14:18 -0500)]
netdevice.h: Use [un]register_netdevice_notifier_rh if exist

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoAdded macros and headers required by MLX4/5 drivers on RHEL7.5
Vladimir Sokolovsky [Tue, 17 Jul 2018 18:42:51 +0000 (13:42 -0500)]
Added macros and headers required by MLX4/5 drivers on RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoMerge branch 'ofed' of https://github.com/arjunvynipadath/compat into ofed
Vladimir Sokolovsky [Fri, 13 Jul 2018 14:06:12 +0000 (09:06 -0500)]
Merge branch 'ofed' of https://github.com/arjunvynipadath/compat into ofed

2 years agordma.m4: Added compat headers for cxgb3/iw_cxgb3/cxgb4/iw_cxgb4
Arjun Vynipadath [Mon, 25 Jun 2018 07:32:02 +0000 (13:02 +0530)]
rdma.m4: Added compat headers for cxgb3/iw_cxgb3/cxgb4/iw_cxgb4

2 years agoAdded missing part of HAVE_XDP_RXQ_INFO macro
Vladimir Sokolovsky [Fri, 6 Jul 2018 16:38:53 +0000 (11:38 -0500)]
Added missing part of HAVE_XDP_RXQ_INFO macro

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoOFED-4.17: Add config defines for bnxt_en compilation
Somnath Kotur [Fri, 6 Jul 2018 06:17:55 +0000 (23:17 -0700)]
OFED-4.17: Add config defines for bnxt_en compilation

Adds config defines HAVE_XDP_RXQ_INFO, HAVE_TC_SETUP_BLOCK,
HAVE_NET_DIM_H, HAVE_TIME64_TO_TM

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
2 years agoAdded compat headers required by Mellanox drivers and IPoIB
Vladimir Sokolovsky [Fri, 8 Jun 2018 14:37:56 +0000 (09:37 -0500)]
Added compat headers required by Mellanox drivers and IPoIB

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agordma.m4: Added macros to support RHEL7.5
Vladimir Sokolovsky [Fri, 8 Jun 2018 14:00:58 +0000 (09:00 -0500)]
rdma.m4: Added macros to support RHEL7.5

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoconfig/build-linux.m4: Updated gcc parameters
Vladimir Sokolovsky [Fri, 8 Jun 2018 14:00:32 +0000 (09:00 -0500)]
config/build-linux.m4: Updated gcc parameters

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agoib_core: Added RHEL7.5 support
Vladimir Sokolovsky [Fri, 4 May 2018 21:20:05 +0000 (16:20 -0500)]
ib_core: Added RHEL7.5 support

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agocompat-2.6.h: Use compat only if CONFIG_COMPAT_RDMA defined
Vladimir Sokolovsky [Mon, 30 Apr 2018 16:59:12 +0000 (11:59 -0500)]
compat-2.6.h: Use compat only if CONFIG_COMPAT_RDMA defined

This will enable to avoid using compat on the base kernel

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agocompat: Cleanup for OFED-4.17
Vladimir Sokolovsky [Mon, 23 Apr 2018 22:20:57 +0000 (18:20 -0400)]
compat: Cleanup for OFED-4.17

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agocxgb4: add m4 check for net_device.max_mtu ofed_4_8_x vofed-4.8-2 vofed-4.8-2-rc1 vofed-4.8-2-rc2 vofed-4.8-2-rc3
Steve Wise [Fri, 19 Jan 2018 19:59:12 +0000 (11:59 -0800)]
cxgb4: add m4 check for net_device.max_mtu

If max_mtu is part of struct net_device, then define
HAVE_NET_DEVICE_MAX_MTU.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
2 years agoRemoved HAVE_GET_USER_PAGES_6_PARAMS
Vladimir Sokolovsky [Thu, 11 Jan 2018 19:50:19 +0000 (13:50 -0600)]
Removed HAVE_GET_USER_PAGES_6_PARAMS

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agordma.m4: Added macros to support SLES12SP3
Vladimir Sokolovsky [Tue, 5 Dec 2017 16:22:27 +0000 (18:22 +0200)]
rdma.m4: Added macros to support SLES12SP3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agordma.m4: Added macros to support RHEL7.4
Vladimir Sokolovsky [Mon, 4 Dec 2017 15:47:00 +0000 (17:47 +0200)]
rdma.m4: Added macros to support RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agocompat-3.11.h: Mask sg_copy_buffer as it defined in RHEL7.4
Vladimir Sokolovsky [Mon, 4 Dec 2017 15:46:33 +0000 (17:46 +0200)]
compat-3.11.h: Mask sg_copy_buffer as it defined in RHEL7.4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
2 years agolinux/timekeeping.h: Remove wrong comment
Vladimir Sokolovsky [Mon, 4 Dec 2017 15:41:05 +0000 (17:41 +0200)]
linux/timekeeping.h: Remove wrong comment

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agocopact: Adding compat for pci_is_bridge vofed-4.8-1 vofed-4.8-1-rc1 vofed-4.8-1-rc2 vofed-4.8-1-rc3
Selvin Xavier [Mon, 4 Sep 2017 09:26:51 +0000 (02:26 -0700)]
copact: Adding compat for pci_is_bridge

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
3 years agoNFS/RDMA backport: check if kernel exports xprt_put symbol.
Jeff Becker [Fri, 1 Sep 2017 20:35:23 +0000 (13:35 -0700)]
NFS/RDMA backport: check if kernel exports xprt_put symbol.

Signed-off-by: Jeff Becker <Jeffrey.C.Becker@nasa.gov>
3 years agoAdd PCI atomic operations registers
Ram Amrani [Sun, 30 Apr 2017 13:00:00 +0000 (16:00 +0300)]
Add PCI atomic operations registers

Add PCI atomic operations registers:
 - PCI_EXP_DEVCAP2_ATOMIC_COMP64
 - PCI_EXP_DEVCAP2_ATOMIC_ROUTE
 - PCI_EXP_DEVCTL2_ATOMIC_REQ

3 years agoCleanup auto-generated defines vofed-4.8 vofed-4.8-rc4
Vladimir Sokolovsky [Wed, 17 May 2017 15:30:46 +0000 (18:30 +0300)]
Cleanup auto-generated defines

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agoprio.h: Fixed typo
Vladimir Sokolovsky [Wed, 19 Apr 2017 12:54:43 +0000 (15:54 +0300)]
prio.h: Fixed typo

issue: http://bugs.openfabrics.org/show_bug.cgi?id=2621

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agocompat-3.12.h: Fixed typo
Vladimir Sokolovsky [Thu, 16 Mar 2017 12:05:24 +0000 (14:05 +0200)]
compat-3.12.h: Fixed typo

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agocompat/nes: Adding pci_zalloc_consistent backport
Tatyana Nikolova [Wed, 22 Feb 2017 05:33:33 +0000 (21:33 -0800)]
compat/nes: Adding pci_zalloc_consistent backport

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
3 years agocompat: Compat file changes for rhel and sles
Potnuri Bharat Teja [Tue, 14 Feb 2017 14:46:44 +0000 (20:16 +0530)]
compat: Compat file changes for rhel and sles

Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
3 years agocompat/cxgb4: Support for RHEL 7.0 in rdma.m4
Potnuri Bharat Teja [Thu, 9 Feb 2017 11:46:03 +0000 (17:16 +0530)]
compat/cxgb4: Support for RHEL 7.0 in rdma.m4

Check if idr_is_empty() is defined.

Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
3 years agocompat/cxgb4: Support for SLES 12 SP1 in rdma.m4
Potnuri Bharat Teja [Wed, 8 Feb 2017 10:25:53 +0000 (15:55 +0530)]
compat/cxgb4: Support for SLES 12 SP1 in rdma.m4

Check if skb_vlan_tagged() is defined.

Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
3 years agocompat: Identify existence of netdev_notifier_info_to_dev
Vladimir Sokolovsky [Sun, 12 Feb 2017 09:34:18 +0000 (11:34 +0200)]
compat: Identify existence of netdev_notifier_info_to_dev

Instead of saying that all kernels under 3.11.0 don't have
implementation of netdev_notifier_info_to_dev() check it specifically.
Otherwise, the 3rd argument to notifier call will be handled in a wrong
way.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agoMerge branch 'for_vlad' of ssh://openfabrics.org:1010/home/pschulfer/compat into...
Vladimir Sokolovsky [Thu, 19 Jan 2017 15:13:17 +0000 (17:13 +0200)]
Merge branch 'for_vlad' of ssh://openfabrics.org:1010/home/pschulfer/compat into ofed

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agoAdded include/scsi/scsi.h
Vladimir Sokolovsky [Thu, 19 Jan 2017 11:32:15 +0000 (13:32 +0200)]
Added include/scsi/scsi.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agoAdded macros for ISER and SRP
Vladimir Sokolovsky [Thu, 19 Jan 2017 11:05:14 +0000 (13:05 +0200)]
Added macros for ISER and SRP

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agoSupport rdmavt on RHEL7.2 and SLES12 in OFED-4.8
Pawel Schulfer [Tue, 17 Jan 2017 14:36:27 +0000 (06:36 -0800)]
Support rdmavt on RHEL7.2 and SLES12 in OFED-4.8

Changes included in this patch:
1) Check for MIN_NICE in prio.h

Signed-off-by: Pawel Schulfer <pawel.schulfer@intel.com>
3 years agocompat: Added headers and macros to support RHEL7.0
Vladimir Sokolovsky [Mon, 16 Jan 2017 08:23:19 +0000 (10:23 +0200)]
compat: Added headers and macros to support RHEL7.0

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agordma.m4: Remove redundant macro HAVE_HW_FLOWER_OFFLOAD_SUPPORT
Vladimir Sokolovsky [Tue, 13 Dec 2016 07:11:04 +0000 (09:11 +0200)]
rdma.m4: Remove redundant macro HAVE_HW_FLOWER_OFFLOAD_SUPPORT

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agocompat: Added macros and headers to support RHEL7.1
Vladimir Sokolovsky [Mon, 12 Dec 2016 08:25:19 +0000 (10:25 +0200)]
compat: Added macros and headers to support RHEL7.1

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
3 years agoSupport RHEL7.2 and SLES12SP1 for QIB in OFED-4.8
Pawel Schulfer [Tue, 6 Dec 2016 21:15:00 +0000 (13:15 -0800)]
Support RHEL7.2 and SLES12SP1 for QIB in OFED-4.8

Changes included in this patch:
1) Check for write_iter in file_operations structure
2) Check for inode_lock function in fs.h
3) Check for simple_positive function in dcache.h
4) Check for __GFP_RECLAIM in gfp.h

Signed-off-by: Pawel Schulfer <pawel.schulfer@intel.com>
3 years agoAdded macros required for IB_SRP backport
Vladimir Sokolovsky [Mon, 5 Dec 2016 16:27:42 +0000 (18:27 +0200)]
Added macros required for IB_SRP backport

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoAdded macro HAVE_NETDEV_NOTIFIER_CHANGEUPPER_INFO
Vladimir Sokolovsky [Thu, 1 Dec 2016 15:47:11 +0000 (17:47 +0200)]
Added macro HAVE_NETDEV_NOTIFIER_CHANGEUPPER_INFO

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agocompat: Added support for SLES12 SP1
Vladimir Sokolovsky [Thu, 1 Dec 2016 12:24:43 +0000 (14:24 +0200)]
compat: Added support for SLES12 SP1

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: Added macros to support SLES12 SP2
Vladimir Sokolovsky [Sun, 20 Nov 2016 10:41:48 +0000 (12:41 +0200)]
rdma.m4: Added macros to support SLES12 SP2

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agocompat: Added macros and header fixes to support RHEL7.3
Vladimir Sokolovsky [Wed, 16 Nov 2016 16:25:16 +0000 (18:25 +0200)]
compat: Added macros and header fixes to support RHEL7.3

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: Added macro for default_groups in configfs
Vladimir Sokolovsky [Wed, 16 Nov 2016 11:46:10 +0000 (13:46 +0200)]
rdma.m4: Added macro for default_groups in configfs

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: Added macros required on RHEL7.2
Vladimir Sokolovsky [Mon, 7 Nov 2016 13:46:54 +0000 (15:46 +0200)]
rdma.m4: Added macros required on RHEL7.2

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agocompat-4.5.h: Added skb_inner_transport_offset
Vladimir Sokolovsky [Mon, 7 Nov 2016 13:46:24 +0000 (15:46 +0200)]
compat-4.5.h: Added skb_inner_transport_offset

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: check if debugfs_create_bool() uses a bool or u32 pointer
Steve Wise [Fri, 14 Oct 2016 19:02:44 +0000 (12:02 -0700)]
rdma.m4: check if debugfs_create_bool() uses a bool or u32 pointer

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
4 years agordma.m4: determine arg count for string_get_size
Steve Wise [Fri, 14 Oct 2016 16:22:45 +0000 (09:22 -0700)]
rdma.m4: determine arg count for string_get_size

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
4 years agordma.m4: check if ethtool_drvinfo has erom_version
Steve Wise [Thu, 13 Oct 2016 20:28:45 +0000 (13:28 -0700)]
rdma.m4: check if ethtool_drvinfo has erom_version

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
4 years agordma.m4: check for pci_set_vpd_size()
Steve Wise [Wed, 12 Oct 2016 21:49:10 +0000 (14:49 -0700)]
rdma.m4: check for pci_set_vpd_size()

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
4 years agordma.m4: check for request_firmware_direct() support
Steve Wise [Wed, 12 Oct 2016 18:20:45 +0000 (11:20 -0700)]
rdma.m4: check for request_firmware_direct() support

If it is available, define HAVE_REQUEST_FIRMWARE_DIRECT.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
4 years agocompat-3.19: add debugfs_create_file_size() function
Steve Wise [Tue, 11 Oct 2016 19:18:24 +0000 (12:18 -0700)]
compat-3.19: add debugfs_create_file_size() function

Create compat/compat-3.19.c and add debugfs_create_file_size().

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
4 years agordma.m4: fix fib_lookup test
Vladimir Sokolovsky [Mon, 10 Oct 2016 13:09:23 +0000 (16:09 +0300)]
rdma.m4: fix fib_lookup test

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoRemoved extra definitions
Vladimir Sokolovsky [Mon, 10 Oct 2016 10:41:59 +0000 (13:41 +0300)]
Removed extra definitions

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: Fixed ip_fib.h location
Vladimir Sokolovsky [Mon, 10 Oct 2016 09:23:18 +0000 (12:23 +0300)]
rdma.m4: Fixed ip_fib.h location

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: Add macros to support SLES12 SP2
Vladimir Sokolovsky [Mon, 10 Oct 2016 08:16:05 +0000 (11:16 +0300)]
rdma.m4: Add macros to support SLES12 SP2

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoAvoid redefinitions
Vladimir Sokolovsky [Mon, 10 Oct 2016 08:15:21 +0000 (11:15 +0300)]
Avoid redefinitions

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoAdded include/linux/netdevice.h
Vladimir Sokolovsky [Mon, 10 Oct 2016 08:14:45 +0000 (11:14 +0300)]
Added include/linux/netdevice.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoAdd macros for netdevice functions existence check
Vladimir Sokolovsky [Sun, 9 Oct 2016 12:03:04 +0000 (15:03 +0300)]
Add macros for netdevice functions existence check

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agobuild-linux.m4: Fail compilation test on some warnings
Vladimir Sokolovsky [Mon, 26 Sep 2016 05:41:54 +0000 (08:41 +0300)]
build-linux.m4: Fail compilation test on some warnings

Compilation warnings are filtered by config/warning_filter.sh
These warnings should be treated as errors in order to avoid false positive
definition of macros from rdma.m4

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: Added netdev and vxlan macros definitions
Vladimir Sokolovsky [Mon, 26 Sep 2016 05:40:41 +0000 (08:40 +0300)]
rdma.m4: Added netdev and vxlan macros definitions

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoAdded include/linux/compat-4.5.h
Vladimir Sokolovsky [Mon, 26 Sep 2016 05:38:16 +0000 (08:38 +0300)]
Added include/linux/compat-4.5.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoAdded include/linux/dcbnl.h
Vladimir Sokolovsky [Mon, 26 Sep 2016 05:34:44 +0000 (08:34 +0300)]
Added include/linux/dcbnl.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agocompat: Added support for ib_core from kernel 4.8 on RHEL7.2
Vladimir Sokolovsky [Mon, 19 Sep 2016 13:28:18 +0000 (16:28 +0300)]
compat: Added support for ib_core from kernel 4.8 on RHEL7.2

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agoRemoved include/linux/bitops.h
Vladimir Sokolovsky [Sun, 28 Aug 2016 14:16:18 +0000 (17:16 +0300)]
Removed include/linux/bitops.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: remove dulpications
Vladimir Sokolovsky [Sun, 28 Aug 2016 07:41:52 +0000 (10:41 +0300)]
rdma.m4: remove dulpications

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: Added test for en_ethtool_ops.get_rxfh_indir vofed-3.18-2
Vladimir Sokolovsky [Sun, 13 Mar 2016 08:55:00 +0000 (10:55 +0200)]
rdma.m4: Added test for en_ethtool_ops.get_rxfh_indir

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: fix up bonding.h include path
Potnuri Bharat Teja [Thu, 3 Mar 2016 22:22:28 +0000 (14:22 -0800)]
rdma.m4: fix up bonding.h include path

Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
4 years agordma.m4: Added check for get/set_rxfh_indir in ethtool_ops_ext
Vladimir Sokolovsky [Tue, 1 Mar 2016 07:56:25 +0000 (09:56 +0200)]
rdma.m4: Added check for get/set_rxfh_indir in ethtool_ops_ext

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
4 years agordma.m4: be2net backport for RHEL 7.2
Naga Irrinki [Mon, 15 Feb 2016 05:52:27 +0000 (11:22 +0530)]
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 <naga.irrinki@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
4 years agocompat: Added macros and headers to support for RHEL7.2
Vladimir Sokolovsky [Sun, 3 Jan 2016 10:52:11 +0000 (12:52 +0200)]
compat: Added macros and headers to support for RHEL7.2

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoUpdated config.guess and config.sub vofed-3.18-1 vofed-3.18-1-rc1
Vladimir Sokolovsky [Tue, 1 Sep 2015 07:15:03 +0000 (10:15 +0300)]
Updated config.guess and config.sub

This is to support ppc64le architecture

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agordma.m4: Fixed typo vofed-3.18
Vladimir Sokolovsky [Tue, 9 Jun 2015 05:41:00 +0000 (08:41 +0300)]
rdma.m4: Fixed typo

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat: handle function netif_set_real_num_rx_queues correctly
Erez Shitrit [Mon, 8 Jun 2015 08:17:08 +0000 (11:17 +0300)]
compat: handle function netif_set_real_num_rx_queues correctly

In few distros (RH6.6 for example) there is already the implementation
for netif_set_real_num_rx_queues function, so check if exists otherwise
use the backport and return 0 for doing nothing.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat: PTR_RET is backported in RHEL6.7
Vladimir Sokolovsky [Mon, 25 May 2015 09:53:15 +0000 (12:53 +0300)]
compat: PTR_RET is backported in RHEL6.7

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat: Mask seq_user_ns as RHEL6.7 backports it
Vladimir Sokolovsky [Mon, 25 May 2015 09:48:32 +0000 (12:48 +0300)]
compat: Mask seq_user_ns as RHEL6.7 backports it

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agordma.m4: Update pci_bus_speed/width test
Vladimir Sokolovsky [Mon, 25 May 2015 08:56:48 +0000 (11:56 +0300)]
rdma.m4: Update pci_bus_speed/width test

In RHEL6.7 its definition moved into linux/pci_hotplug.h

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoMask proto_ports_offset if defined in kernel
Vladimir Sokolovsky [Mon, 25 May 2015 07:36:03 +0000 (10:36 +0300)]
Mask proto_ports_offset if defined in kernel

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat/3.9: switch to check pick_tx and set_xps_queue with compat-config
Vladimir Sokolovsky [Thu, 21 May 2015 13:03:03 +0000 (16:03 +0300)]
compat/3.9: switch to check pick_tx and set_xps_queue with compat-config

instead of using the Linux kernel version of 3.9.
Redhat6.5 for example, would call to those function, but it has them
inside the kernel.

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat/compat-3.5.c: Fixed double lock in dev_mc_add_excl
Vladimir Sokolovsky [Thu, 21 May 2015 13:01:05 +0000 (16:01 +0300)]
compat/compat-3.5.c: Fixed double lock in dev_mc_add_excl

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat-3.7.h: Cleanup
Vladimir Sokolovsky [Thu, 21 May 2015 12:57:40 +0000 (15:57 +0300)]
compat-3.7.h: Cleanup

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat-3.6.h: Cleanup
Vladimir Sokolovsky [Thu, 21 May 2015 12:53:25 +0000 (15:53 +0300)]
compat-3.6.h: Cleanup

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat-3.2.h: Avoid module_platform_driver redefinition
Vladimir Sokolovsky [Thu, 21 May 2015 12:52:04 +0000 (15:52 +0300)]
compat-3.2.h: Avoid module_platform_driver redefinition

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agocompat-3.1.h: Avoid ip_is_fragment redefinition
Vladimir Sokolovsky [Thu, 21 May 2015 12:51:36 +0000 (15:51 +0300)]
compat-3.1.h: Avoid ip_is_fragment redefinition

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
5 years agoOFED/compat: modify rdma.m4 to fix ofed-bz2539
Devesh Sharma [Mon, 18 May 2015 17:08:06 +0000 (22:38 +0530)]
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 <devesh.sharma@avagotech.com>
5 years agocompat: export symbol elfcorehdr_addr if it is not exported by the kernel
Vladimir Sokolovsky [Tue, 28 Apr 2015 11:21:06 +0000 (14:21 +0300)]
compat: export symbol elfcorehdr_addr if it is not exported by the kernel

issue: http://bugs.openfabrics.org/bugzilla/show_bug.cgi?id=2536

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>