datapath: Add version info for out-of-tree modules.
authorJesse Gross <jesse@nicira.com>
Tue, 18 Sep 2012 01:32:57 +0000 (18:32 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 18 Sep 2012 16:01:56 +0000 (09:01 -0700)
The upstream version of the module always has the version of the running kernel
but for out-of-tree modules it can be difficult to tell the current version.
This adds the information to the module where it can be read using modinfo for
the on-disk version or from /sys/module/openvswitch/version for the currently
loaded module.

Suggested-by: Duffie Cooley <dcooley@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
datapath/datapath.c

index c83ce16..a6915fb 100644 (file)
@@ -2257,3 +2257,4 @@ module_exit(dp_cleanup);
 
 MODULE_DESCRIPTION("Open vSwitch switching datapath");
 MODULE_LICENSE("GPL");
+MODULE_VERSION(VERSION);