mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev: Rename netdev->get_status() to netdev->get_drv_info().
get_status actually returns driver information, so get_drv_info() is better name. Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
@@ -765,12 +765,12 @@ netdev_get_next_hop(const struct netdev *netdev,
|
||||
* may be used to populate the status column of the Interface table as defined
|
||||
* in ovs-vswitchd.conf.db(5). */
|
||||
int
|
||||
netdev_get_status(const struct netdev *netdev, struct shash *sh)
|
||||
netdev_get_drv_info(const struct netdev *netdev, struct shash *sh)
|
||||
{
|
||||
struct netdev_dev *dev = netdev_get_dev(netdev);
|
||||
|
||||
return (dev->netdev_class->get_status
|
||||
? dev->netdev_class->get_status(netdev, sh)
|
||||
return (dev->netdev_class->get_drv_info
|
||||
? dev->netdev_class->get_drv_info(netdev, sh)
|
||||
: EOPNOTSUPP);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user