[ovs-git] Open vSwitch: netdev-linux: Cache error code from do_get_ifindex(). (master)

dev at openvswitch.org dev at openvswitch.org
Fri Mar 9 21:27:04 UTC 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  c7b1b0a53559a2383b329e72c84fb77a51df4d75 (commit)
       via  51f87458652f552b79919bbda6ec19ada0ad8c18 (commit)
       via  c9f716683d1d4302f026764effc17554c93a8c9f (commit)
       via  44445cac40bec2b2f12e8baf7bbb7fcf32fcbb42 (commit)
       via  90a6637d5e7f5f83e3370e05b3716a24fc093fc7 (commit)
       via  4f925bd39b21c9d189af2cbfce8cc6287419d538 (commit)
      from  9b80f761bed9a32c1b0eb22ee3361966057ea973 (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 c7b1b0a53559a2383b329e72c84fb77a51df4d75
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=c7b1b0a53559a2383b329e72c84fb77a51df4d75
Author: Pravin B Shelar <pshelar at nicira.com>
		
netdev-linux: Cache error code from do_get_ifindex().
		
Signed-off-by: Pravin B Shelar <pshelar at nicira.com>


commit 51f87458652f552b79919bbda6ec19ada0ad8c18
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=51f87458652f552b79919bbda6ec19ada0ad8c18
Author: Pravin B Shelar <pshelar at nicira.com>
		
netdev-linux: Cache error code from get-features.
		
Following patch adds support for caching error code from ETHTOOL_GSET
call. Since internal device is virtual device device feature does not
make much sense, so netdev_get_features op is removed for internal
devices.

Signed-off-by: Pravin B Shelar <pshelar at nicira.com>


commit c9f716683d1d4302f026764effc17554c93a8c9f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=c9f716683d1d4302f026764effc17554c93a8c9f
Author: Pravin B Shelar <pshelar at nicira.com>
		
netdev-linux: Cache error code from set-policing.
		
Signed-off-by: Pravin B Shelar <pshelar at nicira.com>


commit 44445cac40bec2b2f12e8baf7bbb7fcf32fcbb42
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=44445cac40bec2b2f12e8baf7bbb7fcf32fcbb42
Author: Pravin B Shelar <pshelar at nicira.com>
		
netdev-linux: Cache error code from ether-addr ioctl.
		
Signed-off-by: Pravin B Shelar <pshelar at nicira.com>


commit 90a6637d5e7f5f83e3370e05b3716a24fc093fc7
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=90a6637d5e7f5f83e3370e05b3716a24fc093fc7
Author: Pravin B Shelar <pshelar at nicira.com>
		
netdev-linux: Cache error code from mtu ioctl.
		
netdev linux devices uses mtu ioctl to get and set MTU for a device.
By caching error code from ioctl we can reduce number of ioctl calls
for device which is unregistered from system.
netdev notification is used to update mtu which saves get-mtu-ioctl.

Signed-off-by: Pravin B Shelar <pshelar at nicira.com>


commit 4f925bd39b21c9d189af2cbfce8cc6287419d538
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4f925bd39b21c9d189af2cbfce8cc6287419d538
Author: Pravin B Shelar <pshelar at nicira.com>
		
netdev-linux: Cache drv-info for net device.
		
Netdev-linux calls ETHTOOL_GDRVINFO on every netdev_linux_get_status()
which is not optimal as drv-info does not change for given device.
So following patch changes netdev_linux_get_status() to read drv-info at
device initialization and cache it.

Signed-off-by: Pravin B Shelar <pshelar at nicira.com>


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

Summary of changes:
 lib/netdev-linux.c   |  367 ++++++++++++++++++++++++++++++++++----------------
 lib/netdev.c         |    4 +-
 lib/rtnetlink-link.c |   12 ++
 lib/rtnetlink-link.h |    4 +
 4 files changed, 267 insertions(+), 120 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list