Skip to content

Commit fe810b5

Browse files
kwan-intcjgunthorpe
authored andcommitted
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>
1 parent e1ca01a commit fe810b5

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/infiniband/hw/hfi1/common.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright(c) 2015 - 2018 Intel Corporation.
2+
* Copyright(c) 2015 - 2020 Intel Corporation.
33
*
44
* This file is provided under a dual BSD/GPLv2 license. When using or
55
* redistributing this file, you may do so under either license.
@@ -149,7 +149,8 @@
149149
HFI1_CAP_NO_INTEGRITY | \
150150
HFI1_CAP_PKEY_CHECK | \
151151
HFI1_CAP_TID_RDMA | \
152-
HFI1_CAP_OPFN) << \
152+
HFI1_CAP_OPFN | \
153+
HFI1_CAP_AIP) << \
153154
HFI1_CAP_USER_SHIFT)
154155
/*
155156
* Set of capabilities that need to be enabled for kernel context in

‎include/uapi/rdma/hfi/hfi1_user.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* GPL LICENSE SUMMARY
88
*
9-
* Copyright(c) 2015 - 2018 Intel Corporation.
9+
* Copyright(c) 2015 - 2020 Intel Corporation.
1010
*
1111
* This program is free software; you can redistribute it and/or modify
1212
* it under the terms of version 2 of the GNU General Public License as
@@ -109,6 +109,7 @@
109109
#define HFI1_CAP_OPFN (1UL << 16) /* Enable the OPFN protocol */
110110
#define HFI1_CAP_SDMA_HEAD_CHECK (1UL << 17) /* SDMA head checking */
111111
#define HFI1_CAP_EARLY_CREDIT_RETURN (1UL << 18) /* early credit return */
112+
#define HFI1_CAP_AIP (1UL << 19) /* Enable accelerated IP */
112113

113114
#define HFI1_RCVHDR_ENTSIZE_2 (1UL << 0)
114115
#define HFI1_RCVHDR_ENTSIZE_16 (1UL << 1)

0 commit comments

Comments
 (0)