aboutsummaryrefslogtreecommitdiff
path: root/datapath/vport-gre.c
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2010-12-18 01:04:37 -0800
committerJustin Pettit <jpettit@nicira.com>2010-12-28 14:30:35 -0800
commitdd851cbbcc5a1b3c8ad5c10a47ddca1c510c1879 (patch)
tree111da9a2f827298d6ea68cdaea65df16a11d1521 /datapath/vport-gre.c
parent5397a37788602c329b98de45a1dfdf899c7ea3b9 (diff)
datapath: Return vport configuration when queried.
Additional configuration is passed down to the kernel in the "config" array of an odp_port when a vport is created. This information is not returned when a vport is queried, though. This information is useful for debugging, since it may be used to distinguish ports based on additional data, such as the peer in tunnels. In a forthcoming patch, it will be essential to distinguish between plain GRE and GRE over IPsec. Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'datapath/vport-gre.c')
-rw-r--r--datapath/vport-gre.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c
index 191fd063..bf8179b2 100644
--- a/datapath/vport-gre.c
+++ b/datapath/vport-gre.c
@@ -398,6 +398,7 @@ const struct vport_ops gre_vport_ops = {
.set_addr = tnl_set_addr,
.get_name = tnl_get_name,
.get_addr = tnl_get_addr,
+ .get_config = tnl_get_config,
.get_dev_flags = vport_gen_get_dev_flags,
.is_running = vport_gen_is_running,
.get_operstate = vport_gen_get_operstate,