projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7518061
)
Make OpenFlow kernel module print protocol version.
author
Ben Pfaff
<blp@nicira.com>
Thu, 24 Jul 2008 00:38:42 +0000
(17:38 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 28 Aug 2008 16:54:50 +0000
(09:54 -0700)
datapath/datapath.c
patch
|
blob
|
history
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index 10fac5451579a3ee55919747fc63370c09e20334..d68151d03df03ac1b5486b13d59b49cb3cdbc8cf 100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-1714,19
+1714,12
@@
static void dp_uninit_netlink(void)
genl_unregister_family(&dp_genl_family);
}
genl_unregister_family(&dp_genl_family);
}
-#define DRV_NAME "openflow"
-#define DRV_VERSION VERSION
-#define DRV_DESCRIPTION "OpenFlow switching datapath implementation"
-#define DRV_COPYRIGHT "Copyright (c) 2007, 2008 The Board of Trustees of The Leland Stanford Junior University"
-
-
static int __init dp_init(void)
{
int err;
static int __init dp_init(void)
{
int err;
- printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION "\n");
- printk(KERN_INFO DRV_NAME ": " VERSION" built on "__DATE__" "__TIME__"\n");
- printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n");
+ printk("OpenFlow "VERSION", built "__DATE__" "__TIME__", "
+ "protocol 0x%02x\n", OFP_VERSION);
err = flow_init();
if (err)
err = flow_init();
if (err)
@@
-1762,6
+1755,6
@@
static void dp_cleanup(void)
module_init(dp_init);
module_exit(dp_cleanup);
module_init(dp_init);
module_exit(dp_cleanup);
-MODULE_DESCRIPTION(
DRV_DESCRIPTION
);
-MODULE_AUTHOR(
DRV_COPYRIGHT
);
+MODULE_DESCRIPTION(
"OpenFlow switching datapath"
);
+MODULE_AUTHOR(
"Copyright (c) 2007, 2008 The Board of Trustees of The Leland Stanford Junior University"
);
MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");