openvswitch: use alias for genetlink family names
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Fri, 9 Sep 2016 20:42:30 +0000 (17:42 -0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Sep 2016 04:42:46 +0000 (21:42 -0700)
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 <cascardo@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c

index 524c0fd3078e7d4a7358118d9cfe93be5f64b052..0536ab3504d5e416c481359880852ced520ef4bc 100644 (file)
@@ -2437,3 +2437,7 @@ module_exit(dp_cleanup);
 
 MODULE_DESCRIPTION("Open vSwitch switching datapath");
 MODULE_LICENSE("GPL");
+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);