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)
commit3d0666d29619eda0c46cdcbe37e2ccb825c0562c
tree63d458259d15e5bfa62944b1c90fdc5823fc436a
parentc146b2f86a917ef7a9eb3bb1475e0527dc7e91c3
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>
datapath/datapath.c