Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/rt2x00/Kconfig drivers/net/wireless/rt2x00/rt2x00usb.c net/sctp/protocol.c
This commit is contained in:
@@ -476,6 +476,15 @@ static void sctp_association_destroy(struct sctp_association *asoc)
|
||||
void sctp_assoc_set_primary(struct sctp_association *asoc,
|
||||
struct sctp_transport *transport)
|
||||
{
|
||||
int changeover = 0;
|
||||
|
||||
/* it's a changeover only if we already have a primary path
|
||||
* that we are changing
|
||||
*/
|
||||
if (asoc->peer.primary_path != NULL &&
|
||||
asoc->peer.primary_path != transport)
|
||||
changeover = 1 ;
|
||||
|
||||
asoc->peer.primary_path = transport;
|
||||
|
||||
/* Set a default msg_name for events. */
|
||||
@@ -501,12 +510,12 @@ void sctp_assoc_set_primary(struct sctp_association *asoc,
|
||||
* double switch to the same destination address.
|
||||
*/
|
||||
if (transport->cacc.changeover_active)
|
||||
transport->cacc.cycling_changeover = 1;
|
||||
transport->cacc.cycling_changeover = changeover;
|
||||
|
||||
/* 2) The sender MUST set CHANGEOVER_ACTIVE to indicate that
|
||||
* a changeover has occurred.
|
||||
*/
|
||||
transport->cacc.changeover_active = 1;
|
||||
transport->cacc.changeover_active = changeover;
|
||||
|
||||
/* 3) The sender MUST store the next TSN to be sent in
|
||||
* next_tsn_at_change.
|
||||
|
Reference in New Issue
Block a user