]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
xenif: use m_set_rcvif() when >= 7.99.31
authorAntti Kantee <pooka@iki.fi>
Thu, 28 Jul 2016 22:17:19 +0000 (22:17 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 28 Jul 2016 22:17:19 +0000 (22:17 +0000)
XXX: this driver should use the kernel portion directly
from upsteam sources.

platform/xen/librumpnet_xenif/if_virt.c

index d10318acb34807b45b5d73efff42385e00532aaa..47f5fcea9fb2125737f17dcb58eadeb17a9cef98 100644 (file)
@@ -242,7 +242,12 @@ rump_virtif_pktdeliver(struct virtif_sc *sc, struct iovec *iov, size_t iovlen)
                }
        }
 
+#if __NetBSD_Prereq__(7,99,31)
+       m_set_rcvif(m, ifp);
+#else
        m->m_pkthdr.rcvif = ifp;
+#endif
+
        KERNEL_LOCK(1, NULL);
        bpf_mtap(ifp, m);
        ether_input(ifp, m);