diff options
author | David S. Miller <davem@davemloft.net> | 2013-12-18 16:42:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 16:42:06 -0500 |
commit | 143c9054949436cb05e468439dc5e46231f33d09 (patch) | |
tree | c2e972d8188fb1b36368e9acb5b6b59466c9d903 /net/sctp/sm_statefuns.c | |
parent | 0b6807034791160d5e584138943d2daea765436d (diff) | |
parent | 35eecf052250f663f07a4cded7d3503fd1b50729 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/macvtap.c
Both minor merge hassles, simple overlapping changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r-- | net/sctp/sm_statefuns.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index dd0eba919a8b..ee02771d8b9c 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -819,7 +819,7 @@ sctp_disposition_t sctp_sf_do_5_1D_ce(struct net *net, | |||
819 | SCTP_INC_STATS(net, SCTP_MIB_PASSIVEESTABS); | 819 | SCTP_INC_STATS(net, SCTP_MIB_PASSIVEESTABS); |
820 | sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, SCTP_NULL()); | 820 | sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, SCTP_NULL()); |
821 | 821 | ||
822 | if (new_asoc->autoclose) | 822 | if (new_asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) |
823 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, | 823 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, |
824 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); | 824 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); |
825 | 825 | ||
@@ -907,7 +907,7 @@ sctp_disposition_t sctp_sf_do_5_1E_ca(struct net *net, | |||
907 | SCTP_INC_STATS(net, SCTP_MIB_CURRESTAB); | 907 | SCTP_INC_STATS(net, SCTP_MIB_CURRESTAB); |
908 | SCTP_INC_STATS(net, SCTP_MIB_ACTIVEESTABS); | 908 | SCTP_INC_STATS(net, SCTP_MIB_ACTIVEESTABS); |
909 | sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, SCTP_NULL()); | 909 | sctp_add_cmd_sf(commands, SCTP_CMD_HB_TIMERS_START, SCTP_NULL()); |
910 | if (asoc->autoclose) | 910 | if (asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) |
911 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, | 911 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_START, |
912 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); | 912 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); |
913 | 913 | ||
@@ -2969,7 +2969,7 @@ sctp_disposition_t sctp_sf_eat_data_6_2(struct net *net, | |||
2969 | if (chunk->chunk_hdr->flags & SCTP_DATA_SACK_IMM) | 2969 | if (chunk->chunk_hdr->flags & SCTP_DATA_SACK_IMM) |
2970 | force = SCTP_FORCE(); | 2970 | force = SCTP_FORCE(); |
2971 | 2971 | ||
2972 | if (asoc->autoclose) { | 2972 | if (asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) { |
2973 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, | 2973 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, |
2974 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); | 2974 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); |
2975 | } | 2975 | } |
@@ -3877,7 +3877,7 @@ sctp_disposition_t sctp_sf_eat_fwd_tsn(struct net *net, | |||
3877 | SCTP_CHUNK(chunk)); | 3877 | SCTP_CHUNK(chunk)); |
3878 | 3878 | ||
3879 | /* Count this as receiving DATA. */ | 3879 | /* Count this as receiving DATA. */ |
3880 | if (asoc->autoclose) { | 3880 | if (asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) { |
3881 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, | 3881 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, |
3882 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); | 3882 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); |
3883 | } | 3883 | } |
@@ -5266,7 +5266,7 @@ sctp_disposition_t sctp_sf_do_9_2_start_shutdown( | |||
5266 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, | 5266 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, |
5267 | SCTP_TO(SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD)); | 5267 | SCTP_TO(SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD)); |
5268 | 5268 | ||
5269 | if (asoc->autoclose) | 5269 | if (asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) |
5270 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, | 5270 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, |
5271 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); | 5271 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); |
5272 | 5272 | ||
@@ -5345,7 +5345,7 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown_ack( | |||
5345 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, | 5345 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART, |
5346 | SCTP_TO(SCTP_EVENT_TIMEOUT_T2_SHUTDOWN)); | 5346 | SCTP_TO(SCTP_EVENT_TIMEOUT_T2_SHUTDOWN)); |
5347 | 5347 | ||
5348 | if (asoc->autoclose) | 5348 | if (asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) |
5349 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, | 5349 | sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP, |
5350 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); | 5350 | SCTP_TO(SCTP_EVENT_TIMEOUT_AUTOCLOSE)); |
5351 | 5351 | ||