mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00: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 <krkumar2@in.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f04c827624
commit
ea94ff3b55
5 changed files with 21 additions and 7 deletions
|
@ -1955,7 +1955,7 @@ static int dn_sendmsg(struct kiocb *iocb, struct socket *sock,
|
|||
}
|
||||
|
||||
if ((flags & MSG_TRYHARD) && sk->sk_dst_cache)
|
||||
dst_negative_advice(&sk->sk_dst_cache);
|
||||
dst_negative_advice(&sk->sk_dst_cache, sk);
|
||||
|
||||
mss = scp->segsize_rem;
|
||||
fctype = scp->services_rem & NSP_FC_MASK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue