[PATCH] RDMA/cxgb4: Add missing peer2peer check in MPAv2 code
Don't worry about p2p_type if peer2peer itself is not requested in the first place. Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/infiniband/hw/cxgb4/cm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 0668bb3..006a353 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -1114,7 +1114,7 @@ static void process_mpa_reply(struct c4iw_ep *ep, struct sk_buff *skb) * generated when moving QP to RTS state. * A TERM message will be sent after QP has moved to RTS state */ - if ((ep-mpa_attr.version == 2) + if ((ep-mpa_attr.version == 2) peer2peer (ep-mpa_attr.p2p_type != p2p_type)) { ep-mpa_attr.p2p_type = FW_RI_INIT_P2PTYPE_DISABLED; rtr_mismatch = 1; -- 1.7.6.5 -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
user space FMR support
To make a long story short FMR = fast memory registration ... I had been using a set of FMR patches that exported the existing kernel FMR support to user space (with mlx4 driver) for about a year. A mistake in re-installing the development cluster this morning wiped out the private OFED package that contained the changes. I could probably be able to repatch everything in a couple of days but it is a very annoying process. I can't be the only person who needs the FMR in user space (?). Does anyone have a handy set of patches that can make public (or better, push upstream with newer set of kernels) ? Thanks, Wendy -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] opensm: Fix opensm handover/relinquish corner case
When in master state and performing light sweeps, openSM ignores other subnet managers in master state and fails to perform handovers or relinquish control. Handovers and relinquishing master is only performed after a heavy sweep. This can result in two subnet managers being in master state, seeing each other SM in master state, but both choose to do nothing about it. This patch initiates a heavy sweep when another master subnet manager is found during a light sweep. This is sufficient to start a handover or relinquish scenario. Signed-off-by: Albert Chu ch...@llnl.gov --- opensm/osm_sminfo_rcv.c | 18 -- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/opensm/osm_sminfo_rcv.c b/opensm/osm_sminfo_rcv.c index 66eb886..d4ae7c9 100644 --- a/opensm/osm_sminfo_rcv.c +++ b/opensm/osm_sminfo_rcv.c @@ -385,8 +385,22 @@ static void smi_rcv_process_get_sm(IN osm_sm_t * sm, osm_sm_state_mgr_signal_master_is_alive(sm); else { /* This is a response we got while sweeping the subnet. - We will handle a case of handover needed later on, when the sweep - is done and all SMs are recongnized. */ +* +* If this is during a heavy sweep, we will handle a case of +* handover needed later on, when the sweep is done and all +* SMs are recognized. +* +* If this is during a light sweep, initiate a heavy sweep +* to initiate handover scenarios. +* +* Note that it does not matter if the remote SM is lower +* or higher priority. If it is lower priority, we must +* wait for it HANDOVER. If it is higher priority, we need +* to HANDOVER to it. Both cases are handled after doing +* a heavy sweep. +*/ + if (light_sweep) + sm-p_subn-force_heavy_sweep = TRUE; } break; case IB_SMINFO_STATE_STANDBY: -- 1.7.1 -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html