Upstream commit:
    openvswitch: use alias for genetlink family names

    When userspace tries to create datapaths and the module is not loaded,
    it will simply fail. With this patch, the module will be automatically
    loaded.

    Signed-off-by: Thadeu Lima de Souza Cascardo <casca...@redhat.com>
    Acked-by: Pravin B Shelar <pshe...@ovn.org>
    Signed-off-by: David S. Miller <da...@davemloft.net>

Signed-off-by: Thadeu Lima de Souza Cascardo <casca...@redhat.com>
---
 datapath/datapath.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/datapath/datapath.c b/datapath/datapath.c
index db8a18a..3822129 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -2458,3 +2458,7 @@ module_exit(dp_cleanup);
 MODULE_DESCRIPTION("Open vSwitch switching datapath");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(VERSION);
+MODULE_ALIAS_GENL_FAMILY(OVS_DATAPATH_FAMILY);
+MODULE_ALIAS_GENL_FAMILY(OVS_VPORT_FAMILY);
+MODULE_ALIAS_GENL_FAMILY(OVS_FLOW_FAMILY);
+MODULE_ALIAS_GENL_FAMILY(OVS_PACKET_FAMILY);
-- 
2.7.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to