mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net: Fix for dst_negative_advice
dst_negative_advice() should check for changed dst and reset sk_tx_queue_mapping accordingly. Pass sock to the callers of dst_negative_advice. (sk_reset_txq is defined just for use by dst_negative_advice. The only way I could find to get around this is to move dst_negative_() from dst.h to dst.c, include sock.h in dst.c, etc) Signed-off-by: Krishna Kumar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
f04c827624
commit
ea94ff3b55
5 changed files with 21 additions and 7 deletions
|
|
@ -38,7 +38,7 @@ static int dccp_write_timeout(struct sock *sk)
|
|||
|
||||
if (sk->sk_state == DCCP_REQUESTING || sk->sk_state == DCCP_PARTOPEN) {
|
||||
if (icsk->icsk_retransmits != 0)
|
||||
dst_negative_advice(&sk->sk_dst_cache);
|
||||
dst_negative_advice(&sk->sk_dst_cache, sk);
|
||||
retry_until = icsk->icsk_syn_retries ?
|
||||
: sysctl_dccp_request_retries;
|
||||
} else {
|
||||
|
|
@ -63,7 +63,7 @@ static int dccp_write_timeout(struct sock *sk)
|
|||
Golden words :-).
|
||||
*/
|
||||
|
||||
dst_negative_advice(&sk->sk_dst_cache);
|
||||
dst_negative_advice(&sk->sk_dst_cache, sk);
|
||||
}
|
||||
|
||||
retry_until = sysctl_dccp_retries2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue