Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IB/hfi1: Add accelerated IP capability bit

The accelerated IP capability bit is added to allow users to control
which feature is enabled and disabled.

Link: https://lore.kernel.org/r/20200511160541.173205.96870.stgit@awfm-01.aw.intel.com
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

authored by

Kaike Wan and committed by
Jason Gunthorpe
fe810b50 e1ca01a9

+5 -3
+3 -2
drivers/infiniband/hw/hfi1/common.h
··· 1 1 /* 2 - * Copyright(c) 2015 - 2018 Intel Corporation. 2 + * Copyright(c) 2015 - 2020 Intel Corporation. 3 3 * 4 4 * This file is provided under a dual BSD/GPLv2 license. When using or 5 5 * redistributing this file, you may do so under either license. ··· 149 149 HFI1_CAP_NO_INTEGRITY | \ 150 150 HFI1_CAP_PKEY_CHECK | \ 151 151 HFI1_CAP_TID_RDMA | \ 152 - HFI1_CAP_OPFN) << \ 152 + HFI1_CAP_OPFN | \ 153 + HFI1_CAP_AIP) << \ 153 154 HFI1_CAP_USER_SHIFT) 154 155 /* 155 156 * Set of capabilities that need to be enabled for kernel context in
+2 -1
include/uapi/rdma/hfi/hfi1_user.h
··· 6 6 * 7 7 * GPL LICENSE SUMMARY 8 8 * 9 - * Copyright(c) 2015 - 2018 Intel Corporation. 9 + * Copyright(c) 2015 - 2020 Intel Corporation. 10 10 * 11 11 * This program is free software; you can redistribute it and/or modify 12 12 * it under the terms of version 2 of the GNU General Public License as ··· 109 109 #define HFI1_CAP_OPFN (1UL << 16) /* Enable the OPFN protocol */ 110 110 #define HFI1_CAP_SDMA_HEAD_CHECK (1UL << 17) /* SDMA head checking */ 111 111 #define HFI1_CAP_EARLY_CREDIT_RETURN (1UL << 18) /* early credit return */ 112 + #define HFI1_CAP_AIP (1UL << 19) /* Enable accelerated IP */ 112 113 113 114 #define HFI1_RCVHDR_ENTSIZE_2 (1UL << 0) 114 115 #define HFI1_RCVHDR_ENTSIZE_16 (1UL << 1)