From e330262f34fc179ce920c16bb28ba8a1c4a73aff Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Thu, 12 Jan 2023 13:38:37 -0500 Subject: Mechanically convert netmap(4) to IfAPI Reviewed by: vmaffione, zlei Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37814 --- sys/dev/netmap/netmap_kloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/netmap/netmap_kloop.c') diff --git a/sys/dev/netmap/netmap_kloop.c b/sys/dev/netmap/netmap_kloop.c index d9cf13a89f8d..cde96bb025f4 100644 --- a/sys/dev/netmap/netmap_kloop.c +++ b/sys/dev/netmap/netmap_kloop.c @@ -1158,7 +1158,7 @@ netmap_pt_guest_attach(struct netmap_adapter *arg, unsigned int nifp_offset, unsigned int memid) { struct netmap_pt_guest_adapter *ptna; - struct ifnet *ifp = arg ? arg->ifp : NULL; + if_t ifp = arg ? arg->ifp : NULL; int error; /* get allocator */ -- cgit v1.3