mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 23:26:44 +07:00
[TCP]: One NET_INC_STATS() could be NET_INC_STATS_BH in tcp_v4_err()
I believe this NET_INC_STATS() call can be replaced by NET_INC_STATS_BH(), a little bit cheaper. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
82fac0542e
commit
06ca719fad
@ -373,7 +373,7 @@ void tcp_v4_err(struct sk_buff *skb, u32 info)
|
|||||||
seq = ntohl(th->seq);
|
seq = ntohl(th->seq);
|
||||||
if (sk->sk_state != TCP_LISTEN &&
|
if (sk->sk_state != TCP_LISTEN &&
|
||||||
!between(seq, tp->snd_una, tp->snd_nxt)) {
|
!between(seq, tp->snd_una, tp->snd_nxt)) {
|
||||||
NET_INC_STATS(LINUX_MIB_OUTOFWINDOWICMPS);
|
NET_INC_STATS_BH(LINUX_MIB_OUTOFWINDOWICMPS);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user