diff options
| author | Eric Dumazet <[email protected]> | 2016-09-20 03:39:12 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-09-21 04:23:00 +0000 |
| commit | b2d3ea4a730f812b9c0f67a67b6762ce66ddb17c (patch) | |
| tree | 3d854b9e251be86efe1d816201163f8f33c0c4b5 /net/ipv4/tcp_output.c | |
| parent | net_sched: sch_fq: add low_rate_threshold parameter (diff) | |
| download | kernel-b2d3ea4a730f812b9c0f67a67b6762ce66ddb17c.tar.gz kernel-b2d3ea4a730f812b9c0f67a67b6762ce66ddb17c.zip | |
tcp: switch back to proper tcp_skb_cb size check in tcp_init()
Revert to the tcp_skb_cb size check that tcp_init() had before commit
b4772ef879a8 ("net: use common macro for assering skb->cb[] available
size in protocol families"). As related commit 744d5a3e9fe2 ("net:
move skb->dropcount to skb->cb[]") explains, the
sock_skb_cb_check_size() mechanism was added to ensure that there is
space for dropcount, "for protocol families using it". But TCP is not
a protocol using dropcount, so tcp_init() doesn't need to provision
space for dropcount in the skb->cb[], and thus we can revert to the
older form of the tcp_skb_cb size check. Doing so allows TCP to use 4
more bytes of the skb->cb[] space.
Fixes: b4772ef879a8 ("net: use common macro for assering skb->cb[] available size in protocol families")
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Soheil Hassas Yeganeh <[email protected]>
Signed-off-by: Neal Cardwell <[email protected]>
Signed-off-by: Yuchung Cheng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
