summaryrefslogtreecommitdiff
path: root/lib/rtnetlink-link.c
Commit message (Collapse)AuthorAgeFilesLines
* netdev-linux: Cache error code from ether-addr ioctl.Pravin B Shelar2012-03-091-0/+7
| | | | Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
* netdev-linux: Cache error code from mtu ioctl.Pravin B Shelar2012-03-091-0/+5
| | | | | | | | | 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@nicira.com>
* netdev-linux: Cache flags using netlink.Ethan Jackson2012-02-141-1/+1
| | | | | | | | | | | | 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@nicira.com>
* rtnetlink-link: Expose carrier changes.Ethan Jackson2011-10-171-0/+1
| | | | This will be used in a future commit.
* notifiers: Create and destroy nln_notifiers.Ethan Jackson2011-09-161-9/+8
| | | | | | | | This patch changes the interface of netlink-notifier and rtnetlink-link. Now nln_notifiers are allocated and destroyed by the module instead of passed in by callers. This allows the definition of nln_notifier to be hidden, and generally cleans up the code.
* notifiers: Rename run and wait functions.Ethan Jackson2011-09-161-4/+4
| | | | | | | | It makes more sense to call nln_notifier_run() and nln_notifier_wait() simply nln_run() and nln_wait() since they don't operate on notifiers but the entire nln object. This patch changes the nln and the rtnetlink-link modules to the new convention.
* netlink-notifier: Rename rtnetlink code.Ethan Jackson2011-09-011-14/+12
| | | | | | This patch renames the rtnetlink module's code to "nln" for "netlink notifier". Callers are now required to pass in the netlink protocol to he newly renamed nln_create() function.
* lib: Rename rtnetlink.[ch] files.Ethan Jackson2011-09-011-1/+1
| | | | | | | | | | The only rtnetlink specific functionality contained in the rtnetlink module is the use of the NETLINK_ROUTE protocol. This can easily be passed in by callers. In preparation for generalization, this patch renames rtnetlink.[ch] to netlink-notifier.[ch]. Future patches will complete the transition.
* rtnetlink-link: Avoid cast in rtnetlink_link_notifier_register().Ben Pfaff2011-06-071-2/+8
| | | | | | | It's easy enough to avoid this cast by going through a thunk function. (The other cast in this function is harder to avoid.) This is just a cleanup that doesn't fix any actual bug.
* netdev: New Function netdev_change_seq().Ethan Jackson2011-05-311-2/+2
| | | | | This new function will provide a much simpler replacement for netdev_monitor in the future.
* lib: Show tunnel egress interface in ovsdbEthan Jackson2011-01-041-1/+4
| | | | | | | | This commit parses rtnetlink address notifications from the kernel in order to display the egress interface of tunnels in the database. Bug #4103.
* rtnetlink: Remove LINK specific messages from rtnetlinkEthan Jackson2011-01-041-0/+120
Abstracted rtnetlink so that it may be used for messages other than RTM LINK messages. Created a new rtnetlink-link module which specifically deals with these kinds of messages and follows the old rtnetlink API.