Thet netmap plugin was moved to depreciated in commit 998b8fe. On FreeBSD netmap offers a natively supported kernel interface for userspace networking and enables VPP without the use of DPDK. Reinstate the netmap plugin and adapt it to the newer plugin interface. Type: improvement Change-Id: I113daa33a490f04cbb29909f9789fa66284ac80e Signed-off-by: Tom Jones <thj@freebsd.org>
33 lines
575 B
CMake
33 lines
575 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (c) 2024 Tom Jones <thj@freebsd.org>
|
|
#
|
|
# This software was developed by Tom Jones <thj@freebsd.org> under sponsorship
|
|
# from the FreeBSD Foundation.
|
|
#
|
|
|
|
if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
|
|
message(WARNING "Netmap is only currently support on FreeBSD - netmap plugin disabled")
|
|
return()
|
|
endif()
|
|
|
|
add_vpp_plugin(netmap
|
|
SOURCES
|
|
plugin.c
|
|
netmap.c
|
|
node.c
|
|
device.c
|
|
cli.c
|
|
netmap_api.c
|
|
|
|
MULTIARCH_SOURCES
|
|
node.c
|
|
device.c
|
|
|
|
INSTALL_HEADERS
|
|
netmap.h
|
|
net_netmap.h
|
|
|
|
API_FILES
|
|
netmap.api
|
|
)
|