From 3d0666d29619eda0c46cdcbe37e2ccb825c0562c Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Mon, 17 Sep 2012 18:32:57 -0700 Subject: [PATCH] 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 --- datapath/datapath.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.43.0