tcp: add accessors to read/set tp->snd_cwnd
[platform/kernel/linux-rpi.git] / net / core / filter.c
index 707e2e4..0816468 100644 (file)
@@ -4885,7 +4885,7 @@ static int _bpf_setsockopt(struct sock *sk, int level, int optname,
                                if (val <= 0 || tp->data_segs_out > tp->syn_data)
                                        ret = -EINVAL;
                                else
-                                       tp->snd_cwnd = val;
+                                       tcp_snd_cwnd_set(tp, val);
                                break;
                        case TCP_BPF_SNDCWND_CLAMP:
                                if (val <= 0) {