[ovs-discuss] ovs offload
hi, santhosh I'm glad to see that, I have had this problem recently. How do you deal with this? ovs full offload or ovs dataplane offload? Anybody have any experience with ovs offload? Message: 3 Date: Thu, 1 Jun 2017 08:19:43 + From: Santhosh Alladi To: Joe Stringer Cc: "ovs-discuss@openvswitch.org" Subject: Re: [ovs-discuss] vxlan offload via dpif Message-ID: Content-Type: text/plain; charset="utf-8" Hi Joe, Thank you for your reply. In our solution, we are not using the linux vxlan driver, rather we are having our own vxlan driver in our accelerator. So, for an accelerator which is connected via dpif, how can we get the tunnel information for decapsulating the packets? Also, can you brief me how will the vxlan device get the tunnel information to decap the packet if the COLLECT_METADATA mode is enabled? Regards, Santhosh -Original Message- From: Joe Stringer [mailto:j...@ovn.org] Sent: Thursday, June 01, 2017 2:06 AM To: Santhosh Alladi Cc: ovs-discuss@openvswitch.org Subject: Re: [ovs-discuss] vxlan offload via dpif On 31 May 2017 at 06:27, Santhosh Alladi wrote: > Hi all, > > > > We are trying to configure our hardware accelerator using ovs via > dpif. We could achieve L2 forwarding using this setup. > > Now, we are trying to offload complete functionality of vxlan. In this > sense, how does vxlan processing take place in ovs-kernel. How can we > get the tunnel information to our hardware via dpif? The Linux kernel provides flow-based tunneling by attaching "metadata_dst" to the packet. For instance, when OVS kernel module wants to send a packet out a vxlan device, it attaches the metadata_dst to the skbuff and transmits on the vxlan device. The Linux stack then takes over in terms of encapsulating the packet with the provided metadata and performing a route lookup to determine the next (underlay) hop for the packet. On receive side, the vxlan device must be set up in COLLECT_METADATA mode and this sets up a receiver on the UDP socket which can receive the packet, decap, and attach the tunnel metadata as a metadata_dst before calling the device receive path. Then the packet is received in a similar way to any OVS-attached device, but OVS will check whether metadata_dst is set prior to performing flow table lookup. If there is metadata_dst, this needs to be received into the flow key. ======== y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Ovsdb how to customize the table
Thank you very much for your reply! y...@panath.cn From: Venugopal Reddy K Date: 2017-05-18 21:33 To: y...@panath.cn; ovs-discuss Subject: RE: [ovs-discuss] Ovsdb how to customize the table Hi, I believe, you might want to use your own schema/database. Please refer below link. It might give you insight on creating your own schema and generate db from it. https://www.relaxdiego.com/2014/09/ovsdb.html regards, Venu From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss-boun...@openvswitch.org] On Behalf Of y...@panath.cn Sent: 18 May 2017 13:00 To: ovs-discuss Subject: [ovs-discuss] Ovsdb how to customize the table hi everyone, Ovsdb whether to allow user-defined table, used to hold its own configuration data to the ovsdb inside? Anyone have any experience in this field? Best wishes! y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Ovsdb how to customize the table
hi everyone, Ovsdb whether to allow user-defined table, used to hold its own configuration data to the ovsdb inside? Anyone have any experience in this field? Best wishes! y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Have doubts about ovsdb
Thank you for Andy y...@panath.cn From: Andy Zhou Date: 2017-05-18 11:20 To: y...@panath.cn CC: ovs-discuss Subject: Re: Re: [ovs-discuss] Have doubts about ovsdb On Wed, May 17, 2017 at 7:52 PM, y...@panath.cn wrote: > > > ____ > y...@panath.cn > > > From: Andy Zhou > Date: 2017-05-18 10:33 > To: y...@panath.cn > CC: ovs-discuss > Subject: Re: [ovs-discuss] Have doubts about ovsdb > On Wed, May 17, 2017 at 7:29 PM, y...@panath.cn wrote: >> Hi everyone, >> whether the ovs flows(ovs-ofctl dump-flows br0) will save to ovsbd >> inside, if not, they will do save, save in where? > Not in OVSDB, they are stored in ovs-vswitchd. > ===>The data can be saved and Restore? yes, you can save the output of ovs-ofctl dump-flows to a file, and use ovs-ofctl add-flows to add them back. "man ovs-ofctl' for more detail. > Or ovs doesn't care about this, why does he not exist ovsdb, ovsdb main > purpose is to save the existence of what information. > Openflow are usually installed by a controller, ovsdb usually stores configuration information that tends to be more static compare to openflow flows. If you don't want to use a controller, and only has a fixed set of flows, you can load them from a file, as discussed above. >> Also, where I can find a create ovsdb table specification document >> information. > > man ovs-vswitchd.conf.db > ===>Many thanks >> >> root@ubuntu:/home/ych# sudo ovs-ofctl dump-flows br0 >> NXST_FLOW reply (xid=0x4): >> cookie=0x0, duration=28712.532s, table=0, n_packets=4038, n_bytes=563549, >> idle_age=173, in_port=1 actions=IN_PORT >> cookie=0x0, duration=28714.677s, table=0, n_packets=185, n_bytes=31964, >> idle_age=277, priority=0 actions=NORMAL >> root@ubuntu:/home/ych# >> root@ubuntu:/home/ych# >> >> >> Best wishes! >> >> y...@panath.cn >> >> ___ >> discuss mailing list >> disc...@openvswitch.org >> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss >> ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Have doubts about ovsdb
y...@panath.cn From: Andy Zhou Date: 2017-05-18 10:33 To: y...@panath.cn CC: ovs-discuss Subject: Re: [ovs-discuss] Have doubts about ovsdb On Wed, May 17, 2017 at 7:29 PM, y...@panath.cn wrote: > Hi everyone, > whether the ovs flows(ovs-ofctl dump-flows br0) will save to ovsbd > inside, if not, they will do save, save in where? Not in OVSDB, they are stored in ovs-vswitchd. ===>The data can be saved and Restore? Or ovs doesn't care about this, why does he not exist ovsdb, ovsdb main purpose is to save the existence of what information. > Also, where I can find a create ovsdb table specification document > information. man ovs-vswitchd.conf.db ===>Many thanks > > root@ubuntu:/home/ych# sudo ovs-ofctl dump-flows br0 > NXST_FLOW reply (xid=0x4): > cookie=0x0, duration=28712.532s, table=0, n_packets=4038, n_bytes=563549, > idle_age=173, in_port=1 actions=IN_PORT > cookie=0x0, duration=28714.677s, table=0, n_packets=185, n_bytes=31964, > idle_age=277, priority=0 actions=NORMAL > root@ubuntu:/home/ych# > root@ubuntu:/home/ych# > > > Best wishes! > > y...@panath.cn > > ___ > discuss mailing list > disc...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Have doubts about ovsdb
Hi everyone, whether the ovs flows(ovs-ofctl dump-flows br0) will save to ovsbd inside, if not, they will do save, save in where? Also, where I can find a create ovsdb table specification document information. root@ubuntu:/home/ych# sudo ovs-ofctl dump-flows br0 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=28712.532s, table=0, n_packets=4038, n_bytes=563549, idle_age=173, in_port=1 actions=IN_PORT cookie=0x0, duration=28714.677s, table=0, n_packets=185, n_bytes=31964, idle_age=277, priority=0 actions=NORMAL root@ubuntu:/home/ych# root@ubuntu:/home/ych# Best wishes! y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] How to make the actions of vxlan in port?
Hi everyone, I have a doubt about tunnel protocol to add and subtract action implementation If you want to enter the port of packets increase or stripping vxlan action, how to implement, this port is just a ordinary port? Whether can be like increase or stripping vlan implementation, such as: push vlan: ovs-ofctl add-flow br0 priority=1,in_port=1,dl_vlan=0x,actions=mod_vlan_vid:3,output:2 pop vlan: ovs-ofctl add-flow br0 in_port=1,actions=strip_vlan,output:2 Best wishes! y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] SSL error
Very grateful to you, your reply to solve my confusion! y...@panath.cn From: Lance Richardson Date: 2017-05-10 20:45 To: ych CC: ovs-discuss Subject: Re: [ovs-discuss] SSL error > From: y...@panath.cn > To: "ovs-discuss" > Sent: Wednesday, 10 May, 2017 5:05:36 AM > Subject: [ovs-discuss] SSL error > > Hi everyone, > After install openvswitch-2.6.1, prompt SSL error, Does anyone know what > reason is this? > > root@ubuntu:/home/ych/openvswitch-2.6.1# ./boot.sh > root@ubuntu:/home/ych/openvswitch-2.6.1# ./configure > --with-linux=/lib/modules/$(uname -r)/build > root@ubuntu:/home/ych/openvswitch-2.6.1# make > root@ubuntu:/home/ych/openvswitch-2.6.1# make install > root@ubuntu:/home/ych/openvswitch-2.6.1# make modules_install > = > root@ubuntu:/home/ych/openvswitch-2.6.1# sudo make modules_install > cd datapath/linux && make modules_install > make[1]: Entering directory '/home/ych/openvswitch-2.6.1/datapath/linux' > make -C /lib/modules/4.4.0-75-generic/build > M=/home/ych/openvswitch-2.6.1/datapath/linux modules_install > make[2]: Entering directory '/usr/src/linux-headers-4.4.0-75-generic' > INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/openvswitch.ko > At main.c:222: > - SSL error:02001002:system library:fopen:No such file or directory: > bss_file.c:175 > - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 > sign-file: certs/signing_key.pem: No such file or directory > INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-geneve.ko > At main.c:222: > - SSL error:02001002:system library:fopen:No such file or directory: > bss_file.c:175 > - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 > sign-file: certs/signing_key.pem: No such file or directory > INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-gre.ko > At main.c:222: > - SSL error:02001002:system library:fopen:No such file or directory: > bss_file.c:175 > - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 > sign-file: certs/signing_key.pem: No such file or directory > INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-lisp.ko > At main.c:222: > - SSL error:02001002:system library:fopen:No such file or directory: > bss_file.c:175 > - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 > sign-file: certs/signing_key.pem: No such file or directory > INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-stt.ko > At main.c:222: > - SSL error:02001002:system library:fopen:No such file or directory: > bss_file.c:175 > - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 > sign-file: certs/signing_key.pem: No such file or directory > INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-vxlan.ko > At main.c:222: > - SSL error:02001002:system library:fopen:No such file or directory: > bss_file.c:175 > - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 > sign-file: certs/signing_key.pem: No such file or directory > DEPMOD 4.4.0-75-generic > make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-75-generic' > depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' > /lib/modules/4.4.0-75-generic/build/include/generated/utsrelease.h` > make[1]: Leaving directory '/home/ych/openvswitch-2.6.1/datapath/linux' > > > > Best wishes! > > > y...@panath.cn > It seems your kernel is configured with CONFIG_MODULE_SIG=y, so "make modules_install" is attempting to add a signature to each kernel module, but this is failing because the signing key certificate is not present. The signing key certificate is most often created as part of the base kernel build, and not included in distribution packages (for obvious reasons!), so I suspect this is a common situation. Based on looking at the kernel makefiles, this won't be treated as a fatal error and in fact from your "make modules_install" output it looks like it completed successfully. I think these errors can safely be ignored. Regards, Lance Richardson ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] SSL error
Hi everyone, After install openvswitch-2.6.1, prompt SSL error, Does anyone know what reason is this? root@ubuntu:/home/ych/openvswitch-2.6.1#./boot.sh root@ubuntu:/home/ych/openvswitch-2.6.1#./configure --with-linux=/lib/modules/$(uname -r)/build root@ubuntu:/home/ych/openvswitch-2.6.1#make root@ubuntu:/home/ych/openvswitch-2.6.1#make install root@ubuntu:/home/ych/openvswitch-2.6.1#make modules_install = root@ubuntu:/home/ych/openvswitch-2.6.1# sudo make modules_install cd datapath/linux && make modules_install make[1]: Entering directory '/home/ych/openvswitch-2.6.1/datapath/linux' make -C /lib/modules/4.4.0-75-generic/build M=/home/ych/openvswitch-2.6.1/datapath/linux modules_install make[2]: Entering directory '/usr/src/linux-headers-4.4.0-75-generic' INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/openvswitch.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-geneve.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-gre.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-lisp.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-stt.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory INSTALL /home/ych/openvswitch-2.6.1/datapath/linux/vport-vxlan.ko At main.c:222: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: certs/signing_key.pem: No such file or directory DEPMOD 4.4.0-75-generic make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-75-generic' depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' /lib/modules/4.4.0-75-generic/build/include/generated/utsrelease.h` make[1]: Leaving directory '/home/ych/openvswitch-2.6.1/datapath/linux' Best wishes! y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] 回复: RE: how to configure the flow table about forwarding
Thank you very much! y...@panath.cn 发件人: Venugopal Reddy K 发送时间: 2017-04-10 16:52 收件人: y...@panath.cn; ovs-discuss 主题: RE: [ovs-discuss] how to configure the flow table about forwarding Hi, If the in_port and out_port are same switch drops it. You should be using IN_PORT instead. Like this : sudo ovs-ofctl add-flow br0 in_port=1,actions=IN_PORT Regards, Venu From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss-boun...@openvswitch.org] On Behalf Of y...@panath.cn Sent: 10 April 2017 14:19 To: ovs-discuss Subject: [ovs-discuss] how to configure the flow table about forwarding Hi everyone, There is a problem about ovs + kernel, I should how to configure the flow table to realize the ovs port 1 in the flow of data from the port 1 forwarded? Whether can use the following command: sudo ovs-ofctl add-flow br0 in_port=1,actions=output:1 Application scenario: I want to by modifying the packet destination IP, and then from the source port forwarding to go out, but I found that the above instructions issued after the Linux kernel didn't receive the actions. Best wishes! y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] how to configure the flow table about forwarding
Hi everyone, There is a problem about ovs + kernel, I should how to configure the flow table to realize the ovs port 1 in the flow of data from the port 1 forwarded? Whether can use the following command: sudo ovs-ofctl add-flow br0 in_port=1,actions=output:1 Application scenario: I want to by modifying the packet destination IP, and then from the source port forwarding to go out, but I found that the above instructions issued after the Linux kernel didn't receive the actions. Best wishes! y...@panath.cn ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss