From: Jesse Gross Date: Tue, 18 Sep 2012 01:32:57 +0000 (-0700) Subject: datapath: Add version info for out-of-tree modules. X-Git-Tag: sliver-openvswitch-1.8.90-0~1^2~13 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=3d0666d29619eda0c46cdcbe37e2ccb825c0562c datapath: Add version info for out-of-tree modules. 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 Signed-off-by: Jesse Gross Acked-by: Kyle Mestery --- diff --git a/datapath/datapath.c b/datapath/datapath.c index c83ce1672..a6915fb2b 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -2257,3 +2257,4 @@ module_exit(dp_cleanup); MODULE_DESCRIPTION("Open vSwitch switching datapath"); MODULE_LICENSE("GPL"); +MODULE_VERSION(VERSION);