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

dev at openvswitch.org dev at openvswitch.org
Tue Apr 12 16:41:32 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, branch-1.1 has been updated
       via  7f1aca9025d638d53ca1dd7cea03f5aeb02d4702 (commit)
       via  8996f83642d6bd73a72d5864a1c6a66448b49214 (commit)
       via  002d4a3c44a7a42fdfe5f40185fe3af0ed697454 (commit)
      from  58bd2941187c9df4717ab4f3c6fc3c78f3f25165 (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 7f1aca9025d638d53ca1dd7cea03f5aeb02d4702
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=7f1aca9025d638d53ca1dd7cea03f5aeb02d4702
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 8996f83642d6bd73a72d5864a1c6a66448b49214
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=8996f83642d6bd73a72d5864a1c6a66448b49214
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 002d4a3c44a7a42fdfe5f40185fe3af0ed697454
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=002d4a3c44a7a42fdfe5f40185fe3af0ed697454
Author: Ben Pfaff <blp at nicira.com>
		
vswitch: Improve schema documentation.
		


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

Summary of changes:
 lib/dpif-linux.c     |   11 ++++++++++-
 vswitchd/vswitch.xml |   17 +++++++++++++----
 2 files changed, 23 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list