mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
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 <dcooley@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Kyle Mestery <kmestery@cisco.com>
This commit is contained in:
@@ -2257,3 +2257,4 @@ module_exit(dp_cleanup);
|
||||
|
||||
MODULE_DESCRIPTION("Open vSwitch switching datapath");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(VERSION);
|
||||
|
||||
Reference in New Issue
Block a user