diff options
author | Ben Pfaff <blp@nicira.com> | 2011-01-23 20:01:30 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-01-27 21:08:37 -0800 |
commit | c283069c71adc49c182a1ac569a05e2dca949eda (patch) | |
tree | 5ce28e813049fdb4eedeaefd1dbee931115b7fa9 /datapath/vport-gre.c | |
parent | 4c738a8da5c73229ce0d4ab6f88d081886291f03 (diff) |
datapath: Change vport type from string to integer enumeration.
I plan to make the vport type part of the standard header stuck on each
Netlink message related to a vport. As such, it is more convenient to use
an integer than a string. In addition, by being fundamentally different
from strings, using an integer may reduce the confusion we've had in the
past over the differences in userspace and kernel names for network device
and vport types.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'datapath/vport-gre.c')
-rw-r--r-- | datapath/vport-gre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c index bf8179b2..426b6cec 100644 --- a/datapath/vport-gre.c +++ b/datapath/vport-gre.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Nicira Networks. + * Copyright (c) 2010, 2011 Nicira Networks. * Distributed under the terms of the GNU GPL version 2. * * Significant portions of this file may be copied from parts of the Linux @@ -387,7 +387,7 @@ static void gre_exit(void) } const struct vport_ops gre_vport_ops = { - .type = "gre", + .type = ODP_VPORT_TYPE_GRE, .flags = VPORT_F_GEN_STATS | VPORT_F_TUN_ID, .init = gre_init, .exit = gre_exit, |