[ovs-git] Open vSwitch: netdev-linux: Cache flags using netlink. (master)

dev at openvswitch.org dev at openvswitch.org
Tue Feb 14 16:41:18 PST 2012


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  c37d4da4f0fd0190ea8fef97399df6d27ebf6ee2 (commit)
       via  755be9ea9d7250edd37e1056362e08a7436f6983 (commit)
      from  d308be1dff713f762e6ae18c1764115b866db5a8 (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 c37d4da4f0fd0190ea8fef97399df6d27ebf6ee2
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=c37d4da4f0fd0190ea8fef97399df6d27ebf6ee2
Author: Ethan Jackson <ethan at nicira.com>
		
netdev-linux: Cache flags using netlink.
		
Before this patch, every request for a 'netdev_dev''s flags
required an ioctl call.  This occurred every time
netdev_get_carrier() was called, which theoretically was very often
if there were a large number of devices.  We were already using
netlink to keep track of the IFF_RUNNING flag. This patch
generalizes the code to keep track of all flags using the same
netlink code.

Signed-off-by: Ethan Jackson <ethan at nicira.com>


commit 755be9ea9d7250edd37e1056362e08a7436f6983
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=755be9ea9d7250edd37e1056362e08a7436f6983
Author: Ethan Jackson <ethan at nicira.com>
		
netdev-linux: Get carrier from ioctl instead of sysfs.
		
When a netdev Linux device is created or its netlink cache is
invalidate, it needs an alternative method to update the its
carrier status.  Previous patches retrieved this information from a
sysfs file.  This patch switches to ioctl which is significantly
simpler, and likely quite a bit faster as well.

Signed-off-by: Ethan Jackson <ethan at nicira.com>


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

Summary of changes:
 lib/netdev-linux.c   |   99 +++++++++++++-------------------------------------
 lib/rtnetlink-link.c |    2 +-
 lib/rtnetlink-link.h |    2 +-
 3 files changed, 27 insertions(+), 76 deletions(-)


hooks/post-receive
-- 
Open vSwitch


More information about the git mailing list