<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openvswitch.git/include/sparse/sys, branch master</title>
<subtitle>github.com: openvswitch/ovs.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/'/>
<entry>
<title>socket-util: Introduce emulation and wrapper for recvmmsg().</title>
<updated>2020-01-09T17:48:49+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2019-12-17T20:38:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=b90189841f1a6f953e25ad784b824c6e29b48660'/>
<id>b90189841f1a6f953e25ad784b824c6e29b48660</id>
<content type='text'>
Not every system will have recvmmsg(), so introduce compatibility code
that will allow it to be used blindly from the rest of the tree.

This assumes that recvmmsg() and sendmmsg() are either both present or
both absent in system libraries and headers.

CC: Yi Yang &lt;yangyi01@inspur.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not every system will have recvmmsg(), so introduce compatibility code
that will allow it to be used blindly from the rest of the tree.

This assumes that recvmmsg() and sendmmsg() are either both present or
both absent in system libraries and headers.

CC: Yi Yang &lt;yangyi01@inspur.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sparse: Support newer GCC/glibc versions.</title>
<updated>2018-05-14T23:13:14+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2018-05-14T17:06:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=07aec2ac19930b05370d813ff5a44e20c2908498'/>
<id>07aec2ac19930b05370d813ff5a44e20c2908498</id>
<content type='text'>
This fixes some "sparse" errors I encountered after upgrading.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes some "sparse" errors I encountered after upgrading.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sparse: Add guards to prevent FreeBSD-incompatible #include order.</title>
<updated>2017-12-22T20:58:02+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2017-11-06T22:42:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=b2befd5bb2db811ac0273bc52be158d3476a5ff7'/>
<id>b2befd5bb2db811ac0273bc52be158d3476a5ff7</id>
<content type='text'>
FreeBSD insists that &lt;sys/types.h&gt; be included before &lt;netinet/in.h&gt; and
that &lt;netinet/in.h&gt; be included before &lt;arpa/inet.h&gt;.  This adds guards to
the "sparse" headers to yield a warning if this order is violated.  This
commit also adjusts the order of many #includes to suit this requirement.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
FreeBSD insists that &lt;sys/types.h&gt; be included before &lt;netinet/in.h&gt; and
that &lt;netinet/in.h&gt; be included before &lt;arpa/inet.h&gt;.  This adds guards to
the "sparse" headers to yield a warning if this order is violated.  This
commit also adjusts the order of many #includes to suit this requirement.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Justin Pettit &lt;jpettit@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sparse: Add missing protoype for sendmmsg.</title>
<updated>2017-07-14T22:50:12+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2017-07-14T21:20:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=bb1f4da092e0b44ab0f41a31b5e811c08afa7d83'/>
<id>bb1f4da092e0b44ab0f41a31b5e811c08afa7d83</id>
<content type='text'>
Reported-by: Joe Stringer &lt;joe@ovn.org&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Fixes: 00f5565c7eed ("socket-util: Fix recursion issue in sendmmsg")
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Joe Stringer &lt;joe@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: Joe Stringer &lt;joe@ovn.org&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Fixes: 00f5565c7eed ("socket-util: Fix recursion issue in sendmmsg")
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Joe Stringer &lt;joe@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>socket-util: Support sendmmsg() regardless of platform.</title>
<updated>2017-07-13T00:38:33+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2017-07-13T00:38:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=8a8c1b93b1723e022665950ec0b623dc6b57fbb0'/>
<id>8a8c1b93b1723e022665950ec0b623dc6b57fbb0</id>
<content type='text'>
This will have its first user in an upcoming commit.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will have its first user in an upcoming commit.

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netdev-linux: Read packet auxdata to obtain vlan_tid</title>
<updated>2014-01-16T23:09:14+00:00</updated>
<author>
<name>Simon Horman</name>
<email>horms@verge.net.au</email>
</author>
<published>2014-01-15T08:17:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=b73c85181df9cc38231a42d6f8095dcb604d230a'/>
<id>b73c85181df9cc38231a42d6f8095dcb604d230a</id>
<content type='text'>
If VLAN acceleration is used when the kernel receives a packet
then the outer-most VLAN tag will not be present in the packet
when it is received by netdev-linux. Rather, it will be present
in auxdata.

This patch uses recvmsg() instead of recv() to read auxdata for
each packet and if the vlan_tid is set then it is added to the packet.

Adding the vlan_tid makes use of headroom available
in the buffer parameter of rx_recv.

Signed-off-by: Simon Horman &lt;horms@verge.net.au&gt;
Co-authored-by: Ben Pfaff &lt;blp@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If VLAN acceleration is used when the kernel receives a packet
then the outer-most VLAN tag will not be present in the packet
when it is received by netdev-linux. Rather, it will be present
in auxdata.

This patch uses recvmsg() instead of recv() to read auxdata for
each packet and if the vlan_tid is set then it is added to the packet.

Adding the vlan_tid makes use of headroom available
in the buffer parameter of rx_recv.

Signed-off-by: Simon Horman &lt;horms@verge.net.au&gt;
Co-authored-by: Ben Pfaff &lt;blp@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sparse: Include stddef.h to ensure NULL is defined.</title>
<updated>2013-11-25T20:56:03+00:00</updated>
<author>
<name>Simon Horman</name>
<email>horms@verge.net.au</email>
</author>
<published>2013-11-25T03:41:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=4d3daf048134e8c375fdadcec7e51d1dc28fe0b6'/>
<id>4d3daf048134e8c375fdadcec7e51d1dc28fe0b6</id>
<content type='text'>
Include stddef.h in include/sparse/sys/socket.h to ensure
that NULL is defined and thus avoid the following sparse warning.

./include/sparse/sys/socket.h:74:15: error: undefined identifier 'NULL'

Signed-off-by: Simon Horman &lt;horms@verge.net.au&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Include stddef.h in include/sparse/sys/socket.h to ensure
that NULL is defined and thus avoid the following sparse warning.

./include/sparse/sys/socket.h:74:15: error: undefined identifier 'NULL'

Signed-off-by: Simon Horman &lt;horms@verge.net.au&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/netdev-linux.c: Prevent receiving of sent packets</title>
<updated>2013-06-13T21:43:29+00:00</updated>
<author>
<name>Murphy McCauley</name>
<email>murphy.mccauley@gmail.com</email>
</author>
<published>2013-06-13T21:41:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=32383c3bd064fb87ec2b366569ba1185698c2e6d'/>
<id>32383c3bd064fb87ec2b366569ba1185698c2e6d</id>
<content type='text'>
Commit 796223f5 (netdev: Add new "struct netdev_rx" for capturing packets
from a netdev) refactored send and receive into separate netdevs.  As a
result, send and receive now use different socket descriptors (except for tap
interfaces which are treated specially).  An unintended side effect was that
all sent packets are looped back and received, which had previously been
avoided as the kernel specifically prevents this from happening on a single
socket descriptor.

To resolve the situation, a socket filter is added to the receive socket
so that it only accepts inbound packets.

Simon Horman co-discovered and initially reported this issue.

Signed-off-by: Murphy McCauley &lt;murphy.mccauley@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Tested-by: Simon Horman &lt;horms@verge.net.au&gt;
Reviewed-by: Simon Horman &lt;horms@verge.net.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 796223f5 (netdev: Add new "struct netdev_rx" for capturing packets
from a netdev) refactored send and receive into separate netdevs.  As a
result, send and receive now use different socket descriptors (except for tap
interfaces which are treated specially).  An unintended side effect was that
all sent packets are looped back and received, which had previously been
avoided as the kernel specifically prevents this from happening on a single
socket descriptor.

To resolve the situation, a socket filter is added to the receive socket
so that it only accepts inbound packets.

Simon Horman co-discovered and initially reported this issue.

Signed-off-by: Murphy McCauley &lt;murphy.mccauley@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Tested-by: Simon Horman &lt;horms@verge.net.au&gt;
Reviewed-by: Simon Horman &lt;horms@verge.net.au&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>socket-util: Add functions for sending fds over Unix domain sockets.</title>
<updated>2012-07-18T17:29:21+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2012-06-14T16:46:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=fd94a42c43ff4a0e57a44bdc9ded1b7e1e63faaa'/>
<id>fd94a42c43ff4a0e57a44bdc9ded1b7e1e63faaa</id>
<content type='text'>
These will be used in upcoming commits.

This commit also adds corresponding definitions to the "sparse" header,
so that sparse still works.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These will be used in upcoming commits.

This commit also adds corresponding definitions to the "sparse" header,
so that sparse still works.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Global replace of Nicira Networks.</title>
<updated>2012-05-03T00:08:02+00:00</updated>
<author>
<name>Raju Subramanian</name>
<email>rsubramanian@nicira.com</email>
</author>
<published>2012-05-02T22:21:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openvswitch.git/commit/?id=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e'/>
<id>e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e</id>
<content type='text'>
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc.

Feature #10593
Signed-off-by: Raju Subramanian &lt;rsubramanian@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc.

Feature #10593
Signed-off-by: Raju Subramanian &lt;rsubramanian@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
