sflow: Update build rules 78/42278/1
authorPim van Pelt <[email protected]>
Thu, 23 Jan 2025 10:04:19 +0000 (11:04 +0100)
committerDave Wallace <[email protected]>
Tue, 28 Jan 2025 17:28:43 +0000 (17:28 +0000)
commit9df756c324a8136c89f045df53f23449fb0ee412
tree7742c385745271497475f88e68fb399b1ff99e06
parent3ea20bf46ac2c37d7dd37825ee1e55745db0245f
sflow: Update build rules

1) we rely on Netlink PSAMPLE and USERSOCK make sure we have headers
2) sflow plugin is not available on FreeBSD, due to Netlink features
3) preprocessor flag SFLOW_USE_VAPI controls whether the sflow plugin
will attempt to contact the linux-cp plugin using the binary VAPI. It
has to be a preprocessor flag so it can suppress the "#include"
statements that define that linux-cp api, because those include files
will be missing if linux-cp is excluded from the build.

The "excluded_plugins" list can be used with:
make VPP_EXCLUDED_PLUGINS=linux-cp build build-release

Type: fix
Fixes: e40f8a90bb0c39986c198fca8ad9b0b3c1658401
Change-Id: If44929d285d27db7862910ecb4ec11ddd4591fd2
Signed-off-by: [email protected]
(cherry picked from commit d9b9a721fd1aa0198b5d0be54fe46ad0a3d773b7)
src/plugins/sflow/CMakeLists.txt
src/plugins/sflow/sflow.c
src/plugins/sflow/sflow.h
src/plugins/sflow/sflow_common.h
src/plugins/sflow/sflow_vapi.c
src/plugins/sflow/sflow_vapi.h