summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-07-01 10:16:08 -0400
committerJens Axboe <axboe@kernel.dk>2019-07-01 10:16:08 -0400
commit5be1f9d82fa73c199ebeee2866dbac83e419c897 (patch)
treeaed1aec34f40b5e0f36dceea8b58d9cfdb41d233 /net/ipv4/tcp.c
parentff91064ea37c8323eba31cc3d2e22464f107b50d (diff)
parent4b972a01a7da614b4796475f933094751a295a2f (diff)
Merge tag 'v5.2-rc6' into for-5.3/block
Merge 5.2-rc6 into for-5.3/block, so we get the same page merge leak fix. Otherwise we end up having conflicts with future patches between for-5.3/block and master that touch this area. In particular, it makes the bio_full() fix hard to backport to stable. * tag 'v5.2-rc6': (482 commits) Linux 5.2-rc6 Revert "iommu/vt-d: Fix lock inversion between iommu->lock and device_domain_lock" Bluetooth: Fix regression with minimum encryption key size alignment tcp: refine memory limit test in tcp_fragment() x86/vdso: Prevent segfaults due to hoisted vclock reads SUNRPC: Fix a credential refcount leak Revert "SUNRPC: Declare RPC timers as TIMER_DEFERRABLE" net :sunrpc :clnt :Fix xps refcount imbalance on the error path NFS4: Only set creation opendata if O_CREAT ARM: 8867/1: vdso: pass --be8 to linker if necessary KVM: nVMX: reorganize initial steps of vmx_set_nested_state KVM: PPC: Book3S HV: Invalidate ERAT when flushing guest TLB entries habanalabs: use u64_to_user_ptr() for reading user pointers nfsd: replace Jeff by Chuck as nfsd co-maintainer inet: clear num_timeout reqsk_alloc() PCI/P2PDMA: Ignore root complex whitelist when an IOMMU is present net: mvpp2: debugfs: Add pmap to fs dump ipv6: Default fib6_type to RTN_UNICAST when not set net: hns3: Fix inconsistent indenting net/af_iucv: always register net_device notifier ...
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index f12d500ec85c..7dc9ab84bb69 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -317,6 +317,11 @@ struct tcp_splice_state {
317unsigned long tcp_memory_pressure __read_mostly; 317unsigned long tcp_memory_pressure __read_mostly;
318EXPORT_SYMBOL_GPL(tcp_memory_pressure); 318EXPORT_SYMBOL_GPL(tcp_memory_pressure);
319 319
320DEFINE_STATIC_KEY_FALSE(tcp_rx_skb_cache_key);
321EXPORT_SYMBOL(tcp_rx_skb_cache_key);
322
323DEFINE_STATIC_KEY_FALSE(tcp_tx_skb_cache_key);
324
320void tcp_enter_memory_pressure(struct sock *sk) 325void tcp_enter_memory_pressure(struct sock *sk)
321{ 326{
322 unsigned long val; 327 unsigned long val;
@@ -3868,6 +3873,7 @@ void __init tcp_init(void)
3868 unsigned long limit; 3873 unsigned long limit;
3869 unsigned int i; 3874 unsigned int i;
3870 3875
3876 BUILD_BUG_ON(TCP_MIN_SND_MSS <= MAX_TCP_OPTION_SPACE);
3871 BUILD_BUG_ON(sizeof(struct tcp_skb_cb) > 3877 BUILD_BUG_ON(sizeof(struct tcp_skb_cb) >
3872 FIELD_SIZEOF(struct sk_buff, cb)); 3878 FIELD_SIZEOF(struct sk_buff, cb));
3873 3879