> -----Original Message-----
> From: Jesse Gross [mailto:je...@kernel.org]
> Sent: Wednesday, August 31, 2016 12:55 AM
> To: Manish Chopra <manish.cho...@qlogic.com>
> Cc: pshe...@nicira.com; b...@openvswitch.org
> Subject: Re: OVS - how to use geneve with variable length options ?
> 
> On Tue, Aug 30, 2016 at 11:24 AM, Manish Chopra
> <manish.cho...@qlogic.com> wrote:
> > Hi Jesse,
> >
> >
> >
> > I am trying GENEVE tunneling via OVS bridge port using ovs-vsctl tool on my
> > two servers which are connected back to back
> >
> > and running latest net-next kernel.
> >
> >
> >
> > eth1- 192.168.44.44
> >
> > eth2- 192.168.44.45
> >
> > br2  [Setup 1] – 192.168.55.44
> >
> > br2  [Setup 2] -  192.168.55.45
> >
> >
> >
> >
> >
> >                Setup  1
> > Setup 2
> >
> > ##########################
> > #########################
> >
> > OVS br2 -------------- eth1 - ###  ---------------------------------------
> > ### - eth2 ---------------OVS br2
> >
> > ##########################
> > #########################
> >
> >
> >
> > I have configured OVS using below commands  -
> >
> >
> >
> > Setup 1
> >
> > ovs-vsctl add-br br2
> >
> > ovs-vsctl add-port br2 gnv0 -- set interface gnv0 type=geneve
> > options:remote_ip=192.168.44.45 options:key=01 options:dst_port=4789
> >
> >
> >
> > Setup 2
> >
> > ovs-vsctl add-br br2
> >
> > ovs-vsctl add-port br2 gnv0 -- set interface gnv0 type=geneve
> > options:remote_ip=192.168.44.44 options:key=01 options:dst_port=4789
> >
> >
> >
> > When I run traffic between both OVS bridge – I see that it uses geneve
> > header of size 8 bytes.
> >
> > I was wondering if I could use GENEVE with options using OVS ? which would
> > have geneve header size more than 8 bytes ?
> >
> >
> >
> > I couldn’t find anything about what arguments I should be using with
> > ovs-vsctl on both setups to use GENEVE with options ?
> >
> > Could you please supply necessary configuration/commands which I can try to
> > use GENEVE with options while running traffic ??
> 
> In order to use options with Geneve tunnels, you'll need to map TLVs
> onto a set of tun_metadataXXX fields, which can then be used with any
> OVS flow mechanism, such as matches and actions. There is some
> information on how to do this in the ovs-ofctl man page:
> https://github.com/openvswitch/ovs/blob/v2.5.0/utilities/ovs-ofctl.8.in#L427
> 
> You'll need to be using OVS 2.5 or newer to do this.
> 
Hi Jesse, I have tried below configuration using ovs-ofctl on top of earlier 
configuration using ovs-vsctl on both setups 
, as referenced in man page.

ovs-ofctl add-tlv-map br2 "{class=0xffff,type=0x80,len=4}->tun_metadata0"
ovs-ofctl add-flow br2 tun_metadata0=1234,actions=controller

But I still see geneve header is used of size 8 Bytes when I run TCP stream 
between OVS bridges.
Not sure if I am missing something in the configuration using ovs-ofctl ?

Yes, I am using latest OVS package 

# ovs-vsctl -V
ovs-vsctl (Open vSwitch) 2.5.0
Compiled Aug 30 2016 06:10:25
DB Schema 7.12.1

# ovs-ofctl -V
ovs-ofctl (Open vSwitch) 2.5.0
Compiled Aug 30 2016 06:10:23
OpenFlow versions 0x1:0x4

Thanks,
Manish
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to