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 <dcoo...@nicira.com> Signed-off-by: Jesse Gross <je...@nicira.com> --- datapath/datapath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath/datapath.c b/datapath/datapath.c index c83ce16..a6915fb 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); -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev