[ovs-git] Open vSwitch: dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device(). (master)

dev at openvswitch.org dev at openvswitch.org
Mon Apr 11 17:49:03 UTC 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  141d9ce465b9722fb9321c3d102238dd33507d79 (commit)
       via  42bb6c72b58ba99e59e740f8cca4e201d7efaa02 (commit)
       via  f23347eaf53961214a384084018e9f7e37cecd49 (commit)
       via  b981622b84c7832adbaa3dffbe3d3d115f225926 (commit)
      from  1de0e8ae5c4a793edc4f033deefb185d933238e4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 141d9ce465b9722fb9321c3d102238dd33507d79
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=141d9ce465b9722fb9321c3d102238dd33507d79
Author: Ben Pfaff <blp at nicira.com>
		
dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device().
		
ENOENT can be returned if the kernel module isn't loaded.  If that's the
case then we've already logged that and there's no point in logging it
again.


commit 42bb6c72b58ba99e59e740f8cca4e201d7efaa02
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=42bb6c72b58ba99e59e740f8cca4e201d7efaa02
Author: Ben Pfaff <blp at nicira.com>
		
dpif-linux: Avoid segfault on netdev_get_stats() without kernel module.
		
netdev_linux_get_stats() calls into netdev_vport_get_stats(), which in
turn attempts a transaction on genl_sock.  If the kernel module isn't
loaded, then genl_sock won't be there, and in any case there's nothing that
guarantees that it's been initialized yet.

This fixes the problem by ensuring that dpif_linux was initialized properly
before attempting a transaction on genl_sock.

Reported-by: Aaron Rosen <arosen at clemson.edu>


commit f23347eaf53961214a384084018e9f7e37cecd49
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f23347eaf53961214a384084018e9f7e37cecd49
Author: Ben Pfaff <blp at nicira.com>
		
netdev-linux: Fix netdev_send() to tap device.
		
Commit 76c308b50d3 "netdev-linux: Support 'send' for netdevs opened with
NETDEV_ETH_TYPE_NONE" broke sending packets to tap devices.  Sending a
packet to a tap device with an AF_PACKET socket causes that packet to be
looped back to be received on the tap device again, which obviously isn't
useful.


commit b981622b84c7832adbaa3dffbe3d3d115f225926
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b981622b84c7832adbaa3dffbe3d3d115f225926
Author: Ben Pfaff <blp at nicira.com>
		
netdev-linux: Fix blocking while sending packets.
		
The AF_PACKET socket needs to be in nonblocking mode or trying to send
a packet can take a long time.


-----------------------------------------------------------------------

Summary of changes:
 lib/dpif-linux.c   |   11 ++++++++-
 lib/netdev-linux.c |   64 +++++++++++++++++++++++++++++++--------------------
 2 files changed, 49 insertions(+), 26 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list