On Wed, Dec 4, 2019 at 9:10 PM Ben Pfaff <[email protected]> wrote:
>
> On Wed, Dec 04, 2019 at 06:37:38PM -0800, William Tu wrote:
> > On Wed, Dec 4, 2019 at 3:49 PM Ben Pfaff <[email protected]> wrote:
> > >
> > > On Mon, Dec 02, 2019 at 02:19:29PM -0800, William Tu wrote:
> > > > GTP, GPRS Tunneling Protocol, is a group of IP-based communications
> > > > protocols used to carry general packet radio service (GPRS) within
> > > > GSM, UMTS and LTE networks.  GTP protocol has two parts: Signalling
> > > > (GTP-Control, GTP-C) and User data (GTP-User, GTP-U). GTP-C is used
> > > > for setting up GTP-U protocol, which is an IP-in-UDP tunneling
> > > > protocol. Usually GTP is used in connecting between base station for
> > > > radio, Serving Gateway (S-GW), and PDN Gateway (P-GW).
> > > >
> > > > This patch implements GTP-U protocol for userspace datapath,
> > > > supporting only required header fields and G-PDU message type.
> > > > See spec in:
> > > > https://tools.ietf.org/html/draft-hmm-dmm-5g-uplane-analysis-00
> > > >
> > > > Signed-off-by: Yi Yang <[email protected]>
> > > > Co-authored-by: Yi Yang <[email protected]>
> > > > Signed-off-by: William Tu <[email protected]>
> > >
> > > Seems reasonable.
> > >
> > > Is there a larger goal here or are you just interested in the protocol?
> > >
> > Hi Ben,
> >
> > People compare vSwitch features and I always see OVS doesn't
> > support GTP-U. Other vSwitches such as VPP/tungsten vrouter all
> > support it. Since we have GTP-U v2 patch a year ago, so I'm
> > thinking about finishing it.
>
> OK!  That makes sense.  Thanks for doing the work!

Hi Ben,
One question I have in this patch is whether to increase FLOW_WC_SEQ.
And what's the purpose of this number?

 /* This sequence number should be incremented whenever anything involving flows
   * or the wildcarding of flows changes.  This will cause build assertion
   * failures in places which likely need to be updated. */
 #define FLOW_WC_SEQ 41

In this patch, the struct flow_tnl is modified but size does not increase,
so build assertion is passed.
--- a/include/openvswitch/packets.h
+++ b/include/openvswitch/packets.h
@@ -43,7 +43,9 @@ struct flow_tnl {
     uint32_t erspan_idx;
     uint8_t erspan_dir;
     uint8_t erspan_hwid;
-    uint8_t pad1[6];     /* Pad to 64 bits. */
+    uint8_t gtpu_flags;
+    uint8_t gtpu_msgtype;
+    uint8_t pad1[4];     /* Pad to 64 bits. */
     struct tun_metadata metadata;
 };

Thanks

William
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to