History

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma

Pull rdma updates from Jason Gunthorpe: "Another small cycle. Mostly cleanups and bug fixes, quite a bit assisted from bots. There are a few new syzkaller splats that haven't been solved yet but they should get into the rcs in a few weeks, I think. Summary: - Update drivers to use common helpers for GUIDs, pkeys, bitmaps, memset_startat, and others - General code cleanups from bots - Simplify some of the rxe pool code in preparation for a larger rework - Clean out old stuff from hns, including all support for hip06 devices - Fix a bug where GID table entries could be missed if the table had holes in it - Rename paths and sessions in rtrs for better understandability - Consolidate the roce source port selection code - NDR speed support in mlx5" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: (83 commits) RDMA/irdma: Remove the redundant return RDMA/rxe: Use the standard method to produce udp source port RDMA/irdma: Make the source udp port vary RDMA/hns: Replace get_udp_sport with rdma_get_udp_sport RDMA/core: Calculate UDP source port based on flow label or lqpn/rqpn IB/qib: Fix typos RDMA/rtrs-clt: Rename rtrs_clt to rtrs_clt_sess RDMA/rtrs-srv: Rename rtrs_srv to rtrs_srv_sess RDMA/rtrs-clt: Rename rtrs_clt_sess to rtrs_clt_path RDMA/rtrs-srv: Rename rtrs_srv_sess to rtrs_srv_path RDMA/rtrs: Rename rtrs_sess to rtrs_path RDMA/hns: Modify the hop num of HIP09 EQ to 1 IB/iser: Align coding style across driver IB/iser: Remove un-needed casting to/from void pointer IB/iser: Don't suppress send completions IB/iser: Rename ib_ret local variable IB/iser: Fix RNR errors IB/iser: Remove deprecated pi_guard module param IB/mlx5: Expose NDR speed through MAD RDMA/cxgb4: Set queue pair state when being queried ...

Linus Torvalds committed 4 years ago

Commit 747c19e2 parents feb7a43 c0fe82b105 files · +2232 −8797Browse files

Showing the changes to include (4 of 105 files). Show all

Unified · Split

4 files
  1. include/rdma/ib_mad.h +1 −0
  2. include/rdma/ib_smi.h +11 −1
  3. include/rdma/ib_verbs.h +17 −0
  4. include/uapi/rdma/hns-abi.h +2 −0
include/rdma/ib_mad.h+1−0
@@ -276,6 +276,7 @@ enum ib_port_capability_mask2_bits { · 275 unmodified lines
276276 IB_PORT_SWITCH_PORT_STATE_TABLE_SUP = 1 << 3,
277277 IB_PORT_LINK_WIDTH_2X_SUP = 1 << 4,
278278 IB_PORT_LINK_SPEED_HDR_SUP = 1 << 5,
279+ IB_PORT_LINK_SPEED_NDR_SUP = 1 << 10,
279280 };
280281
281282 #define OPA_CLASS_PORT_INFO_PR_SUPPORT BIT(26)
include/rdma/ib_smi.h+11−1
@@ -144,5 +144,15 @@ ib_get_smp_direction(struct ib_smp *smp) · 143 unmodified lines
144144 #define IB_NOTICE_TRAP_DR_NOTICE 0x80
145145 #define IB_NOTICE_TRAP_DR_TRUNC 0x40
146146
147−
147+/**
148+ * ib_init_query_mad - Initialize query MAD.
149+ * @mad: MAD to initialize.
150+ */
151+static inline void ib_init_query_mad(struct ib_smp *mad)
152+{
153+ mad->base_version = IB_MGMT_BASE_VERSION;
154+ mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
155+ mad->class_version = 1;
156+ mad->method = IB_MGMT_METHOD_GET;
157+}
148158 #endif /* IB_SMI_H */
include/rdma/ib_verbs.h+17−0
@@ -4749,6 +4749,23 @@ static inline u32 rdma_calc_flow_label(u32 lqpn, u32 rqpn) · 4748 unmodified lines
47494749 return (u32)(v & IB_GRH_FLOWLABEL_MASK);
47504750 }
47514751
4752+/**
4753+ * rdma_get_udp_sport - Calculate and set UDP source port based on the flow
4754+ * label. If flow label is not defined in GRH then
4755+ * calculate it based on lqpn/rqpn.
4756+ *
4757+ * @fl: flow label from GRH
4758+ * @lqpn: local qp number
4759+ * @rqpn: remote qp number
4760+ */
4761+static inline u16 rdma_get_udp_sport(u32 fl, u32 lqpn, u32 rqpn)
4762+{
4763+ if (!fl)
4764+ fl = rdma_calc_flow_label(lqpn, rqpn);
4765+
4766+ return rdma_flow_label_to_udp_sport(fl);
4767+}
4768+
47524769 const struct ib_port_immutable*
47534770 ib_port_immutable_read(struct ib_device *dev, unsigned int port);
47544771 #endif /* IB_VERBS_H */
include/uapi/rdma/hns-abi.h+2−0
@@ -77,10 +77,12 @@ enum hns_roce_qp_cap_flags { · 76 unmodified lines
7777 HNS_ROCE_QP_CAP_RQ_RECORD_DB = 1 << 0,
7878 HNS_ROCE_QP_CAP_SQ_RECORD_DB = 1 << 1,
7979 HNS_ROCE_QP_CAP_OWNER_DB = 1 << 2,
80+ HNS_ROCE_QP_CAP_DIRECT_WQE = 1 << 5,
8081 };
8182
8283 struct hns_roce_ib_create_qp_resp {
8384 __aligned_u64 cap_flags;
85+ __aligned_u64 dwqe_mmap_key;
8486 };
8587
8688 struct hns_roce_ib_alloc_ucontext_resp {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t