git: 8aa8484cbf06 - main - iflib: fix build failure in case DEV_NETMAP is not defined

Vincenzo Maffione vmaffione at FreeBSD.org
Sun Jan 10 14:45:14 UTC 2021


The branch main has been updated by vmaffione:

URL: https://cgit.FreeBSD.org/src/commit/?id=8aa8484cbf06bb26ad87177fe4aebcaf1519f138

commit 8aa8484cbf06bb26ad87177fe4aebcaf1519f138
Author:     Vincenzo Maffione <vmaffione at FreeBSD.org>
AuthorDate: 2021-01-10 14:42:49 +0000
Commit:     Vincenzo Maffione <vmaffione at FreeBSD.org>
CommitDate: 2021-01-10 14:43:58 +0000

    iflib: fix build failure in case DEV_NETMAP is not defined
    
    This addresses the build failure introduced by
    3d65fd97e85ab807f3baa62.
    
    MFC with: 3d65fd97e85ab807f3baa62
---
 sys/net/iflib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index e53c5031d3a7..0a40a0825a95 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -1293,6 +1293,8 @@ iflib_netmap_timer(void *arg)
 #define iflib_netmap_txq_init(ctx, txq) (0)
 #define iflib_netmap_rxq_init(ctx, rxq) (0)
 #define iflib_netmap_detach(ifp)
+#define netmap_enable_all_rings(ifp)
+#define netmap_disable_all_rings(ifp)
 
 #define iflib_netmap_attach(ctx) (0)
 #define netmap_rx_irq(ifp, qid, budget) (0)


More information about the dev-commits-src-all mailing list