tunnels: Mark tnl_ops as static.
authorJesse Gross <jesse@nicira.com>
Wed, 24 Nov 2010 17:31:49 +0000 (09:31 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:16 +0000 (17:10 -0800)
Both GRE and CAPWAP have tnl_ops that are only accessed inside of
their respective files.  Therefore mark these structures as static.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-capwap.c
datapath/vport-gre.c

index f732657..1c2d41b 100644 (file)
@@ -212,7 +212,7 @@ out:
        return 0;
 }
 
-const struct tnl_ops capwap_tnl_ops = {
+static const struct tnl_ops capwap_tnl_ops = {
        .tunnel_type    = TNL_T_PROTO_CAPWAP,
        .ipproto        = IPPROTO_UDP,
        .hdr_len        = capwap_hdr_len,
index fcf1ede..10ee63f 100644 (file)
@@ -332,7 +332,7 @@ error:
        return 0;
 }
 
-const struct tnl_ops gre_tnl_ops = {
+static const struct tnl_ops gre_tnl_ops = {
        .tunnel_type    = TNL_T_PROTO_GRE,
        .ipproto        = IPPROTO_GRE,
        .hdr_len        = gre_hdr_len,