From: Justin Pettit Date: Tue, 23 Jun 2009 02:01:34 +0000 (-0700) Subject: Add some comments to description to netdev functions. X-Git-Tag: v0.90.2~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=887fd0ba6422374c1529718cbd6810114e95e898;p=sliver-openvswitch.git Add some comments to description to netdev functions. A few of the netdev functions lacked descriptions, so this adds them. --- diff --git a/lib/netdev.c b/lib/netdev.c index 8c14dd30c..3d93e37e2 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -729,6 +729,7 @@ netdev_get_features(struct netdev *netdev, peer ? peer : &dummy[3]); } +/* Set the features advertised by 'netdev' to 'advertise'. */ int netdev_set_advertisements(struct netdev *netdev, uint32_t advertise) { @@ -1113,6 +1114,8 @@ get_stats_via_proc(const char *netdev_name, struct netdev_stats *stats) return ENODEV; } +/* Sets 'carrier' to true if carrier is active (link light is on) on + * 'netdev'. */ int netdev_get_carrier(const struct netdev *netdev, bool *carrier) { @@ -1169,6 +1172,7 @@ exit: return error; } +/* Retrieves current device stats for 'netdev'. */ int netdev_get_stats(const struct netdev *netdev, struct netdev_stats *stats) {