summaryrefslogtreecommitdiff
path: root/zebra/main.c
diff options
context:
space:
mode:
authorAnuradha Karuppiah <anuradhak@nvidia.com>2021-12-30 14:41:42 -0800
committerDonald Sharp <sharpd@nvidia.com>2022-06-27 07:56:55 -0400
commitfd03f1d4b7c9d03846b300258dc3d2d3ab70432c (patch)
tree1a7decd46ccdbfca5b7dd9602b83c3ddf3b913ea /zebra/main.c
parent36c3b29675300b5683a97f1e3796a1f6d1778d88 (diff)
configure, zebra: include DPDK headers and shared libs in the dp-dpdk build
Signed-off-by: Donald Sharp <sharpd@nvidia.com> -> Moved new capabilities needed to under HAVE_DPDK Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
Diffstat (limited to 'zebra/main.c')
-rw-r--r--zebra/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/zebra/main.c b/zebra/main.c
index 2d492f8649..e516688a19 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -105,9 +105,13 @@ const struct option longopts[] = {
#endif /* HAVE_NETLINK */
{0}};
-zebra_capabilities_t _caps_p[] = {ZCAP_NET_ADMIN, ZCAP_SYS_ADMIN,
- ZCAP_NET_RAW, ZCAP_IPC_LOCK,
- ZCAP_READ_SEARCH, ZCAP_SYS_RAWIO};
+zebra_capabilities_t _caps_p[] = {ZCAP_NET_ADMIN, ZCAP_SYS_ADMIN,
+ ZCAP_NET_RAW,
+#ifdef HAVE_DPDK
+ ZCAP_IPC_LOCK, ZCAP_READ_SEARCH,
+ ZCAP_SYS_RAWIO
+#endif
+};
/* zebra privileges to run with */
struct zebra_privs_t zserv_privs = {