<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openvswitch.git, branch elephant</title>
<subtitle>github.com: openvswitch/ovs.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/'/>
<entry>
<title>Initial check-in of kernel-based elephant flow detection.</title>
<updated>2014-07-25T19:05:20+00:00</updated>
<author>
<name>Justin Pettit</name>
<email>jpettit@nicira.com</email>
</author>
<published>2014-04-28T21:25:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=816f3bca9f5d23a0cf3b2ec922382f72b7b1b0d6'/>
<id>816f3bca9f5d23a0cf3b2ec922382f72b7b1b0d6</id>
<content type='text'>
Areas to work on:

    - Doesn't populate "elephant-flows" field.
    - Doesn't properly handle tunnels.
    - Doesn't have clean way to query elephant table.
    - Double-check locking.
    - Should use names instead of number for mechanism.
    - When changing detection mechanism, should clear old table.
    - Breaks unit tests
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Areas to work on:

    - Doesn't populate "elephant-flows" field.
    - Doesn't properly handle tunnels.
    - Doesn't have clean way to query elephant table.
    - Double-check locking.
    - Should use names instead of number for mechanism.
    - When changing detection mechanism, should clear old table.
    - Breaks unit tests
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Reduce "long delay" message from WARN to INFO, to match BFD behavior.</title>
<updated>2014-07-25T16:19:25+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2014-07-25T16:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=df0e5f55763289e37f90d1f2464423f07478f372'/>
<id>df0e5f55763289e37f90d1f2464423f07478f372</id>
<content type='text'>
These messages can cause the testsuite to fail on a busy build machine
since the testsuite treats WARN or ERR log messages as failures.  BFD
uses an INFO message instead of WARN, so this just changes CFM to match.

Alternatively, the testsuite could ignore "long delay" messages (it ignores
some other categories of messages).  In that case I'd expect that we'd
want to change BFD to match CFM since I don't know of a reason why they
should log differently.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Justin Pettit &lt;jpettit@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These messages can cause the testsuite to fail on a busy build machine
since the testsuite treats WARN or ERR log messages as failures.  BFD
uses an INFO message instead of WARN, so this just changes CFM to match.

Alternatively, the testsuite could ignore "long delay" messages (it ignores
some other categories of messages).  In that case I'd expect that we'd
want to change BFD to match CFM since I don't know of a reason why they
should log differently.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Justin Pettit &lt;jpettit@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>datapath: reorder action netlink attribute definition for upstreaming</title>
<updated>2014-07-24T20:41:42+00:00</updated>
<author>
<name>Andy Zhou</name>
<email>azhou@nicira.com</email>
</author>
<published>2014-07-24T09:17:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=965662a9e3fd921767912863fff866b75a959e0e'/>
<id>965662a9e3fd921767912863fff866b75a959e0e</id>
<content type='text'>
Keeping the order of netlink attribute definition in the order of
upstreaming is the best way to keep all released user space program
forward compatible with upstreamed kernel modules.

Adjust action netlink attribute order to match with the current
upstreaming plan.

Recirc and hash actions are introduced in branch 2.3, which will be
fixed by the patch. The MPLS actions have been released since
branch-2.1 but there is no kernel implementation of them prior to
branch 2.3. Thus the ordering change should not affect them.

Signed-off-by: Andy Zhou &lt;azhou@nicira.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Keeping the order of netlink attribute definition in the order of
upstreaming is the best way to keep all released user space program
forward compatible with upstreamed kernel modules.

Adjust action netlink attribute order to match with the current
upstreaming plan.

Recirc and hash actions are introduced in branch 2.3, which will be
fixed by the patch. The MPLS actions have been released since
branch-2.1 but there is no kernel implementation of them prior to
branch 2.3. Thus the ordering change should not affect them.

Signed-off-by: Andy Zhou &lt;azhou@nicira.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netdev-provider: Clarify comment where 'get_next_hop' function looks.</title>
<updated>2014-07-24T19:51:28+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2014-07-23T19:48:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=c27fd2f912b67647ede98c5703421e2415d8c2aa'/>
<id>c27fd2f912b67647ede98c5703421e2415d8c2aa</id>
<content type='text'>
Some readers thought it was looking in an ofproto- or netdev-specific
table.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Flavio Leitner &lt;fbl@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some readers thought it was looking in an ofproto- or netdev-specific
table.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Flavio Leitner &lt;fbl@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>datapath/flow_netlink: Avoid wildcarding tunnel key with disabled megaflows</title>
<updated>2014-07-23T20:26:01+00:00</updated>
<author>
<name>Daniele Di Proietto</name>
<email>ddiproietto@vmware.com</email>
</author>
<published>2014-07-17T06:36:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=0b496cdade43b028959f8e6bfdd56cfaf25f9abc'/>
<id>0b496cdade43b028959f8e6bfdd56cfaf25f9abc</id>
<content type='text'>
If the userspace wants to match on a flow with some tunnel attributesset to 0,
it simply omits them in the netlink attributes stream.
Since our wildcarding logic (when megaflows are disabled) is based on the
attributes in the netlink stream, we set our mask incorrectly.

This commit adds a check to detect if the userspace wants to match on a tunnel,
in which case we simply unwildcard the whole tun_key

Reported-by: Andy Zhou &lt;azhou@nicira.com&gt;
Signed-off-by: Daniele Di Proietto &lt;ddiproietto@vmware.com&gt;
Signed-off-by: Andy Zhou &lt;azhou@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the userspace wants to match on a flow with some tunnel attributesset to 0,
it simply omits them in the netlink attributes stream.
Since our wildcarding logic (when megaflows are disabled) is based on the
attributes in the netlink stream, we set our mask incorrectly.

This commit adds a check to detect if the userspace wants to match on a tunnel,
in which case we simply unwildcard the whole tun_key

Reported-by: Andy Zhou &lt;azhou@nicira.com&gt;
Signed-off-by: Daniele Di Proietto &lt;ddiproietto@vmware.com&gt;
Signed-off-by: Andy Zhou &lt;azhou@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>datapath: flow_netlink: Fix a bug.</title>
<updated>2014-07-23T17:05:40+00:00</updated>
<author>
<name>Alex Wang</name>
<email>alexw@nicira.com</email>
</author>
<published>2014-07-23T06:14:50+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=3854ab2153f943e2b2bb84520a0301424f01d4cb'/>
<id>3854ab2153f943e2b2bb84520a0301424f01d4cb</id>
<content type='text'>
Commit 62974663fe (datapath/flow_netlink: Create right mask with
disabled megaflows) introduced the bug which caused
ovs_nla_get_match() returns immediately after parsing the flow
mask for OVS_KEY_ATTR_ENCAP.  Consequently, when vlan encapsulated
packets are present, the corresponding datapath flows will have
incorrect mask like below.  And the incorrect flows could affect
other non-vlan packets.

~/ovs# ovs-dpctl dump-flows
in_port(3/0xffff0000),eth_type(0x8100),encap(), packets:0,
bytes:0, used:never, actions:2

This commit fixes the bug by checking and handling the return
value of the parsing function correctly.

Signed-off-by: Alex Wang &lt;alexw@nicira.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 62974663fe (datapath/flow_netlink: Create right mask with
disabled megaflows) introduced the bug which caused
ovs_nla_get_match() returns immediately after parsing the flow
mask for OVS_KEY_ATTR_ENCAP.  Consequently, when vlan encapsulated
packets are present, the corresponding datapath flows will have
incorrect mask like below.  And the incorrect flows could affect
other non-vlan packets.

~/ovs# ovs-dpctl dump-flows
in_port(3/0xffff0000),eth_type(0x8100),encap(), packets:0,
bytes:0, used:never, actions:2

This commit fixes the bug by checking and handling the return
value of the parsing function correctly.

Signed-off-by: Alex Wang &lt;alexw@nicira.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dpif-netdev: Initialize upcall-&gt;packet when queuing to userspace.</title>
<updated>2014-07-23T05:30:03+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2014-07-23T04:06:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=b6f4590fa036e213fcceafdcb5aa64bcf5c3e5c0'/>
<id>b6f4590fa036e213fcceafdcb5aa64bcf5c3e5c0</id>
<content type='text'>
Commit db73f7166a6 (netdev-dpdk: Fix race condition with DPDK mempools in
non pmd threads) switched to a new way of setting up 'upcall-&gt;packet', but
only initialized two of the fields in the packet.  This could cause
core dumps and other strange behavior.  In particular it caused failures in
several unit tests on XenServer.

This commit fixes the problem by initializing the entire ofpbuf.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Justin Pettit &lt;jpettit@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit db73f7166a6 (netdev-dpdk: Fix race condition with DPDK mempools in
non pmd threads) switched to a new way of setting up 'upcall-&gt;packet', but
only initialized two of the fields in the packet.  This could cause
core dumps and other strange behavior.  In particular it caused failures in
several unit tests on XenServer.

This commit fixes the problem by initializing the entire ofpbuf.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Justin Pettit &lt;jpettit@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dpif-netdev: Reduce netdev_flow_key size</title>
<updated>2014-07-23T03:06:06+00:00</updated>
<author>
<name>Daniele Di Proietto</name>
<email>ddiproietto@vmware.com</email>
</author>
<published>2014-07-23T00:06:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=e9fe2381ec863f85eb766ed5d309e22146d2fb04'/>
<id>e9fe2381ec863f85eb766ed5d309e22146d2fb04</id>
<content type='text'>
struct 'miniflow' already contains MINI_N_INLINE values, therefore
we can save few bytes in netdev_flow_key.

Signed-off-by: Daniele Di Proietto &lt;ddiproietto@vmware.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
struct 'miniflow' already contains MINI_N_INLINE values, therefore
we can save few bytes in netdev_flow_key.

Signed-off-by: Daniele Di Proietto &lt;ddiproietto@vmware.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netdev-dpdk: Increase tx queue size and rx batch size</title>
<updated>2014-07-23T03:06:02+00:00</updated>
<author>
<name>Daniele Di Proietto</name>
<email>ddiproietto@vmware.com</email>
</author>
<published>2014-07-23T00:09:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=3a10026527a9ed8bee6a5f0b218b406c10650290'/>
<id>3a10026527a9ed8bee6a5f0b218b406c10650290</id>
<content type='text'>
These values has been found to give the best throughput
in simple cases (1 flow 64 bytes UDP packets).

Signed-off-by: Daniele Di Proietto &lt;ddiproietto@vmware.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These values has been found to give the best throughput
in simple cases (1 flow 64 bytes UDP packets).

Signed-off-by: Daniele Di Proietto &lt;ddiproietto@vmware.com&gt;
Acked-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>stp: Add more logging points for debug.</title>
<updated>2014-07-22T23:54:38+00:00</updated>
<author>
<name>Alex Wang</name>
<email>alexw@nicira.com</email>
</author>
<published>2014-07-19T04:49:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=113062740cb7c2c0ba5613832ae5bc3e1f18caab'/>
<id>113062740cb7c2c0ba5613832ae5bc3e1f18caab</id>
<content type='text'>
This commit adds more logging points in stp module for debugging.
Also, it makes the log print out the port name.

Signed-off-by: Alex Wang &lt;alexw@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds more logging points in stp module for debugging.
Also, it makes the log print out the port name.

Signed-off-by: Alex Wang &lt;alexw@nicira.com&gt;
Acked-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
