Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[sfrench/cifs-2.6.git] / net / ipv4 / tcp_ipv4.c
index 62b6fd385a4729cff4148df82b0cce2bfc6794dd..daad4f99db32839b9a6e0680c5472c5641228fd9 100644 (file)
@@ -1649,6 +1649,8 @@ u16 tcp_v4_get_syncookie(struct sock *sk, struct iphdr *iph,
        return mss;
 }
 
+INDIRECT_CALLABLE_DECLARE(struct dst_entry *ipv4_dst_check(struct dst_entry *,
+                                                          u32));
 /* The socket must have it's spinlock held when we get
  * here, unless it is a TCP_LISTEN socket.
  *
@@ -1668,7 +1670,8 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
                sk_mark_napi_id(sk, skb);
                if (dst) {
                        if (inet_sk(sk)->rx_dst_ifindex != skb->skb_iif ||
-                           !dst->ops->check(dst, 0)) {
+                           !INDIRECT_CALL_1(dst->ops->check, ipv4_dst_check,
+                                            dst, 0)) {
                                dst_release(dst);
                                sk->sk_rx_dst = NULL;
                        }