<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I have not tested the GRE tunnel,  I used geneve Tunnel, I think
      they are similar.<br>
    </p>
    I mean that the tunnel encap ip uses the ovs bridge.<br>
    <br>
    What is your tunnel source ip?  Your source IP should be configured
    on an ovs bridge, the physical out of this bridge uses dpdk<br>
    <br>
    <div class="moz-cite-prefix">You can refer to<br>
<a class="moz-txt-link-freetext" href="http://docs.openvswitch.org/en/latest/howto/userspace-tunneling/?highlight=tunnel">http://docs.openvswitch.org/en/latest/howto/userspace-tunneling/?highlight=tunnel</a><br>
      <ol class="arabic" style="color: rgb(0, 0, 0); font-family: Arial,
        Helvetica, sans-serif; font-size: 14px; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: normal; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; text-decoration-style: initial;
        text-decoration-color: initial;" start="4">
        <li>
          <p class="first" style="vertical-align: baseline;">On<span> </span><cite>host1</cite>,
            add a port for the VXLAN<span> </span><span
              class="highlighted">tunnel</span>:</p>
          <div class="highlight-default" style="vertical-align: top;">
            <div class="highlight" style="vertical-align: top; border:
              1px solid rgb(234, 234, 234); border-radius: 4px; margin:
              25px 0px; overflow: auto; padding: 10px 20px; background:
              rgb(240, 240, 240);">
              <pre style="overflow: auto; margin: 0px;"><span></span>$ ovs-vsctl add-port br-int vxlan0 \
  -- set interface vxlan0 type=vxlan options:remote_ip=172.168.1.2
</pre>
            </div>
          </div>
          <div class="admonition note" style="vertical-align: top;
            font-size: 0.9em; margin: 1em 0px; border: 3px solid
            rgb(240, 207, 160); background-color: rgb(243, 243, 243);
            padding: 0px;">
            <p class="first admonition-title" style="vertical-align:
              baseline; margin: 0px; padding: 0.1em 0px 0.1em 0.5em;
              color: white; border-bottom: 3px solid rgb(240, 207, 160);
              font-weight: bold; background-color: rgb(248, 184, 98);">Note</p>
            <p class="last" style="vertical-align: baseline; margin:
              0.5em 1em; padding: 0px;"><code class="docutils literal"
                style="font-weight: 700;"><span class="pre">172.168.1.2</span></code><span> </span>is
              the remote<span> </span><span class="highlighted">tunnel</span><span> </span>end
              point address. On the remote host this will be<span> </span><code
                class="docutils literal" style="font-weight: 700;"><span
                  class="pre">172.168.1.1</span></code></p>
          </div>
        </li>
        <li>
          <p class="first" style="vertical-align: baseline;">Create a<span> </span><code
              class="docutils literal" style="font-weight: 700;"><span
                class="pre">br-phy</span></code><span> </span>bridge:</p>
          <div class="highlight-default" style="vertical-align: top;">
            <div class="highlight" style="vertical-align: top; border:
              1px solid rgb(234, 234, 234); border-radius: 4px; margin:
              25px 0px; overflow: auto; padding: 10px 20px; background:
              rgb(240, 240, 240);">
              <pre style="overflow: auto; margin: 0px;"><span></span>$ ovs-vsctl --may-exist add-br br-phy \
    -- set Bridge br-phy datapath_type=netdev \
    -- br-set-external-id br-phy bridge-id br-phy \
    -- set bridge br-phy fail-mode=standalone \
         other_config:hwaddr=&lt;mac address of eth1 interface&gt;</pre>
            </div>
          </div>
        </li>
      </ol>
      <br>
       I am not sure whether the source ip using physical network with
      kernel will be a problem.<br>
      <br>
      <br>
    </div>
    <blockquote type="cite"
cite="mid:CAFXGftKqEOgt-r0-bZ359Z+Pdhad0L3=fR9a_FtG4R4JTMnA1w@mail.gmail.com">
      <pre wrap="">sorry to overlook.

from your configuration, you have two bridges, one is with dpdk, and
the other is not which is on management subnet, right?

can you share the GRE tunnel command for reference?

On Mon, Sep 25, 2017 at 3:22 PM, Sun Paul <a class="moz-txt-link-rfc2396E" href="mailto:paulrbk@gmail.com">&lt;paulrbk@gmail.com&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">do you mean I need to bridge the management interface to bridge as well?

On Mon, Sep 25, 2017 at 2:14 PM, Guoshuai Li <a class="moz-txt-link-rfc2396E" href="mailto:ligs@dtdream.com">&lt;ligs@dtdream.com&gt;</a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">You can catch packets on your management interface.


I guess your package sent to the userspace from vm by dpdk , and then
through the tunnel to return to the kernel.

I do not know if this will be a problem.


I suggest you can try your management interface using OVS bridge with dpdk,
such as "g1".


This is my configuration:

7: br-agg: &lt;BROADCAST,PROMISC,UP,LOWER_UP&gt; mtu 1600 qdisc pfifo_fast state
UP qlen 1000
    link/ether 6c:92:bf:04:f9:18 brd ff:ff:ff:ff:ff:ff
    inet 10.157.145.213/24 brd 10.157.145.255 scope global br-agg
       valid_lft forever preferred_lft forever
    inet6 fe80::6e92:bfff:fe04:f918/64 scope link
       valid_lft forever preferred_lft forever

[root@gateway1 ~]# ovs-vsctl show
b99b043b-951b-4bc7-9fd7-329d60d443a5
    Bridge br-agg
        Port bond-agg
            Interface "agg-dpdk-2"
                type: dpdk
                options: {dpdk-devargs="0000:02:00.1"}
            Interface "agg-dpdk-1"
                type: dpdk
                options: {dpdk-devargs="0000:02:00.0"}
    Bridge br-int
        Port "ovn-d172cc-0"
            Interface "ovn-d172cc-0"
                type: geneve
                options: {csum="true", key=flow, remote_ip="10.157.145.212"}
        Port br-int
            Interface br-int
                type: internal
        Port "ovn-d131e4-0"
            Interface "ovn-d131e4-0"
                type: geneve
                options: {csum="true", key=flow, remote_ip="10.157.145.214"}
        Port "ovn-844fcd-0"
            Interface "ovn-844fcd-0"
                type: geneve
                options: {csum="true", key=flow, remote_ip="10.157.145.211"}





</pre>
          <blockquote type="cite">
            <pre wrap="">Hi

thank for your reply.

the 192.1.2.159 is actually on the same subnet of the management
interface, it is not part of the OVS bridge.



On Mon, Sep 25, 2017 at 1:37 PM, Guoshuai Li <a class="moz-txt-link-rfc2396E" href="mailto:ligs@dtdream.com">&lt;ligs@dtdream.com&gt;</a> wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">
I think you may have caught the tunnel inner package.

Is the tunnel outbound from interface dpdk0? how about caught dpdk0 with
mirror?

Or use dpdk-pdump?

</pre>
              <blockquote type="cite">
                <pre wrap="">Hi

How do I configure mirroring of all traffic to a GRE tunnel on OVS+DPDK?

I have a OVS+DPDK setip as below.

# ovs-vsctl show
9fe3ef4d-7f29-4a21-80ea-62a705f5d934
      Bridge "g1"
          Port "g1"
              Interface "g1"
                  type: internal
          Port "dpdk0"
              Interface "dpdk0"
                  type: dpdk
                  options: {dpdk-devargs="0000:00:09.0"}

I tried to create gre tunnel for packet mirroring

#ovs-vsctl add-port g1 gre0 -- set interface gre0 type=gre
options:remote_ip=192.1.2.159 -- --id=@p get port gre0 -- --id=@m
create mirror name=m0 select-all=true output-port=@p -- set bridge g1
mirrors=@m

I cannot find any packet arrive on 192.1.2.159, any idea?

I have tried to use the same command in an OVS setup without DPDK
enabled, it works.

please help

- RBK


On Mon, Sep 25, 2017 at 1:26 PM, Sun Paul <a class="moz-txt-link-rfc2396E" href="mailto:paulrbk@gmail.com">&lt;paulrbk@gmail.com&gt;</a> wrote:
</pre>
                <blockquote type="cite">
                  <pre wrap="">
Hi

How do I configure mirroring of all traffic to a GRE tunnel on
OVS+DPDK?


I have a OVS+DPDK setip as below.

# ovs-vsctl show
9fe3ef4d-7f29-4a21-80ea-62a705f5d934
      Bridge "g1"
          Port "g1"
              Interface "g1"
                  type: internal
          Port "dpdk0"
              Interface "dpdk0"
                  type: dpdk
                  options: {dpdk-devargs="0000:00:09.0"}

I tried to create gre tunnel for packet mirroring
</pre>
                </blockquote>
                <pre wrap="">
_______________________________________________
discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:discuss@openvswitch.org">discuss@openvswitch.org</a>
<a class="moz-txt-link-freetext" href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss">https://mail.openvswitch.org/mailman/listinfo/ovs-discuss</a>
</pre>
              </blockquote>
              <pre wrap="">

</pre>
            </blockquote>
          </blockquote>
          <pre wrap="">
</pre>
        </blockquote>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>