Blame SOURCES/0537-Support-rdma-as-a-ListenNetlink-argument-6626.patch

17b0f1
From db66a909c0e4ca5d05a0dfa84734c1760ae41e3b Mon Sep 17 00:00:00 2001
17b0f1
From: Jan Synacek <jsynacek@redhat.com>
17b0f1
Date: Mon, 25 Sep 2017 10:44:19 +0200
17b0f1
Subject: [PATCH] Support 'rdma' as a ListenNetlink= argument (#6626)
17b0f1
17b0f1
NETLINK_RDMA has been in the kernel since v3.0.
17b0f1
17b0f1
(cherry-picked from commit 5570d7f9561294271591881cf9a249d574069c30)
17b0f1
17b0f1
Resolves: #1494610
17b0f1
---
17b0f1
 src/shared/socket-util.c | 3 ++-
17b0f1
 1 file changed, 2 insertions(+), 1 deletion(-)
17b0f1
17b0f1
diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c
17b0f1
index 79d1582d49..baab6353e1 100644
17b0f1
--- a/src/shared/socket-util.c
17b0f1
+++ b/src/shared/socket-util.c
17b0f1
@@ -725,7 +725,8 @@ static const char* const netlink_family_table[] = {
17b0f1
         [NETLINK_KOBJECT_UEVENT] = "kobject-uevent",
17b0f1
         [NETLINK_GENERIC] = "generic",
17b0f1
         [NETLINK_SCSITRANSPORT] = "scsitransport",
17b0f1
-        [NETLINK_ECRYPTFS] = "ecryptfs"
17b0f1
+        [NETLINK_ECRYPTFS] = "ecryptfs",
17b0f1
+        [NETLINK_RDMA] = "rdma",
17b0f1
 };
17b0f1
 
17b0f1
 DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(netlink_family, int, INT_MAX);