diff options
Diffstat (limited to 'include/net/tcp.h')
| -rw-r--r-- | include/net/tcp.h | 15 | 
1 files changed, 10 insertions, 5 deletions
| diff --git a/include/net/tcp.h b/include/net/tcp.h index b510f284427a..e6d0002a1b0b 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -345,7 +345,7 @@ void tcp_v4_err(struct sk_buff *skb, u32);  void tcp_shutdown(struct sock *sk, int how); -void tcp_v4_early_demux(struct sk_buff *skb); +int tcp_v4_early_demux(struct sk_buff *skb);  int tcp_v4_rcv(struct sk_buff *skb);  int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw); @@ -544,7 +544,6 @@ u32 tcp_tso_autosize(const struct sock *sk, unsigned int mss_now,  		     int min_tso_segs);  void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,  			       int nonagle); -bool tcp_may_send_now(struct sock *sk);  int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);  int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs);  void tcp_retransmit_timer(struct sock *sk); @@ -841,6 +840,12 @@ struct tcp_skb_cb {  			struct inet6_skb_parm	h6;  #endif  		} header;	/* For incoming skbs */ +		struct { +			__u32 key; +			__u32 flags; +			struct bpf_map *map; +			void *data_end; +		} bpf;  	};  }; @@ -1766,12 +1771,12 @@ static inline void tcp_highest_sack_reset(struct sock *sk)  	tcp_sk(sk)->highest_sack = tcp_write_queue_head(sk);  } -/* Called when old skb is about to be deleted (to be combined with new skb) */ -static inline void tcp_highest_sack_combine(struct sock *sk, +/* Called when old skb is about to be deleted and replaced by new skb */ +static inline void tcp_highest_sack_replace(struct sock *sk,  					    struct sk_buff *old,  					    struct sk_buff *new)  { -	if (tcp_sk(sk)->sacked_out && (old == tcp_sk(sk)->highest_sack)) +	if (old == tcp_highest_sack(sk))  		tcp_sk(sk)->highest_sack = new;  } |