Deleted Added
full compact
mcg.c (296382) mcg.c (299179)
1/*
2 * Copyright (c) 2012 Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 675 unchanged lines hidden (view full) ---

684 u8 resp_join_state;
685 u8 cur_join_state;
686
687 resp_join_state = ((struct ib_sa_mcmember_data *)
688 group->response_sa_mad.data)->scope_join_state & 7;
689 cur_join_state = group->rec.scope_join_state & 7;
690
691 if (method == IB_MGMT_METHOD_GET_RESP) {
1/*
2 * Copyright (c) 2012 Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 675 unchanged lines hidden (view full) ---

684 u8 resp_join_state;
685 u8 cur_join_state;
686
687 resp_join_state = ((struct ib_sa_mcmember_data *)
688 group->response_sa_mad.data)->scope_join_state & 7;
689 cur_join_state = group->rec.scope_join_state & 7;
690
691 if (method == IB_MGMT_METHOD_GET_RESP) {
692 /* successfull join */
692 /* successful join */
693 if (!cur_join_state && resp_join_state)
694 --rc;
695 } else if (!resp_join_state)
696 ++rc;
697 memcpy(&group->rec, group->response_sa_mad.data, sizeof group->rec);
698 }
699 group->state = MCAST_IDLE;
700 }

--- 560 unchanged lines hidden ---
693 if (!cur_join_state && resp_join_state)
694 --rc;
695 } else if (!resp_join_state)
696 ++rc;
697 memcpy(&group->rec, group->response_sa_mad.data, sizeof group->rec);
698 }
699 group->state = MCAST_IDLE;
700 }

--- 560 unchanged lines hidden ---