[ovs-dev] [PATCH v3 2/6] netdev-linux: Cache error code from mtu ioctl.

Ben Pfaff blp at nicira.com
Fri Mar 9 20:27:49 UTC 2012


On Fri, Mar 09, 2012 at 12:02:23PM -0800, Pravin B Shelar wrote:
> Fixed according to comments from Ben.
> v2-v3:
>      - Only cache ENODEV from set-mtu ioctl.
> 
> v1-v2:
>      - Fixed check for MTU in notifier so that mtu is not set to zero.
>      - Changed check for VALID_MTU.
> 
> --8<--------------------------cut here-------------------------->8--
> 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>

Looks good to me, thank you.



More information about the dev mailing list