X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fvport-gre.c;h=f6996ed4004e4e2b32eb4669989a7ab9a018cb35;hb=cdee00f;hp=fcf1edea76c388193e7b73d381c883d824fe83ce;hpb=b279fccf5bd8c5addfb8e73b04103405b6a8237e;p=openvswitch diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c index fcf1edea..f6996ed4 100644 --- a/datapath/vport-gre.c +++ b/datapath/vport-gre.c @@ -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, @@ -340,9 +340,9 @@ const struct tnl_ops gre_tnl_ops = { .update_header = gre_update_header, }; -static struct vport *gre_create(const char *name, const void __user *config) +static struct vport *gre_create(const struct vport_parms *parms) { - return tnl_create(name, config, &gre_vport_ops, &gre_tnl_ops); + return tnl_create(parms, &gre_vport_ops, &gre_tnl_ops); } static const struct net_protocol gre_protocol_handlers = {