diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 4e09398009c1..6da880d2f022 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -844,12 +844,11 @@ static inline int tcp_v6_sdif(const struct sk_buff *skb) | |||
844 | } | 844 | } |
845 | #endif | 845 | #endif |
846 | 846 | ||
847 | /* TCP_SKB_CB reference means this can not be used from early demux */ | ||
848 | static inline bool inet_exact_dif_match(struct net *net, struct sk_buff *skb) | 847 | static inline bool inet_exact_dif_match(struct net *net, struct sk_buff *skb) |
849 | { | 848 | { |
850 | #if IS_ENABLED(CONFIG_NET_L3_MASTER_DEV) | 849 | #if IS_ENABLED(CONFIG_NET_L3_MASTER_DEV) |
851 | if (!net->ipv4.sysctl_tcp_l3mdev_accept && | 850 | if (!net->ipv4.sysctl_tcp_l3mdev_accept && |
852 | skb && ipv4_l3mdev_skb(TCP_SKB_CB(skb)->header.h4.flags)) | 851 | skb && ipv4_l3mdev_skb(IPCB(skb)->flags)) |
853 | return true; | 852 | return true; |
854 | #endif | 853 | #endif |
855 | return false; | 854 | return false; |
@@ -1056,7 +1055,7 @@ void tcp_rate_skb_sent(struct sock *sk, struct sk_buff *skb); | |||
1056 | void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb, | 1055 | void tcp_rate_skb_delivered(struct sock *sk, struct sk_buff *skb, |
1057 | struct rate_sample *rs); | 1056 | struct rate_sample *rs); |
1058 | void tcp_rate_gen(struct sock *sk, u32 delivered, u32 lost, | 1057 | void tcp_rate_gen(struct sock *sk, u32 delivered, u32 lost, |
1059 | struct rate_sample *rs); | 1058 | bool is_sack_reneg, struct rate_sample *rs); |
1060 | void tcp_rate_check_app_limited(struct sock *sk); | 1059 | void tcp_rate_check_app_limited(struct sock *sk); |
1061 | 1060 | ||
1062 | /* These functions determine how the current flow behaves in respect of SACK | 1061 | /* These functions determine how the current flow behaves in respect of SACK |