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 <[email protected]>
---
 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

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to