[ovs-dev] [PATCH 2/2] dpif-netlink: Only warn when OVS module unloaded when using DPDK netdev

Ciara Loftus ciara.loftus at intel.com
Tue May 17 13:28:39 UTC 2016


Change the log level from error to warning when reporting that the
openvswitch module is not loaded but the DPDK netdev is initialised.
OVS using DPDK can still function correctly without the module loaded.

Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
---
 lib/dpif-netlink.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/dpif-netlink.c b/lib/dpif-netlink.c
index 015ba20..a03e8cd 100644
--- a/lib/dpif-netlink.c
+++ b/lib/dpif-netlink.c
@@ -2400,9 +2400,15 @@ dpif_netlink_init(void)
         error = nl_lookup_genl_family(OVS_DATAPATH_FAMILY,
                                       &ovs_datapath_family);
         if (error) {
+#ifndef DPDK_NETDEV
             VLOG_ERR("Generic Netlink family '%s' does not exist. "
                      "The Open vSwitch kernel module is probably not loaded.",
                      OVS_DATAPATH_FAMILY);
+#else
+            VLOG_WARN("Generic Netlink family '%s' does not exist. "
+                      "The Open vSwitch kernel module is probably not loaded.",
+                      OVS_DATAPATH_FAMILY);
+#endif
         }
         if (!error) {
             error = nl_lookup_genl_family(OVS_VPORT_FAMILY, &ovs_vport_family);
-- 
2.4.3




More information about the dev mailing list