Skip to content

Commit

Permalink
netdev: Document use for get_etheraddr member of struct netdev_class.
Browse files Browse the repository at this point in the history
This has confused developers adding hardware support, e.g.:
http://openvswitch.org/pipermail/dev/2012-April/016350.html

Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
blp committed May 1, 2012
1 parent 1ea9e60 commit 33f1ff8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/netdev-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ struct netdev_class {
/* Sets 'netdev''s Ethernet address to 'mac' */
int (*set_etheraddr)(struct netdev *netdev, const uint8_t mac[6]);

/* Retrieves 'netdev''s Ethernet address into 'mac'. */
/* Retrieves 'netdev''s Ethernet address into 'mac'.
*
* This address will be advertised as 'netdev''s MAC address through the
* OpenFlow protocol, among other uses. */
int (*get_etheraddr)(const struct netdev *netdev, uint8_t mac[6]);

/* Retrieves 'netdev''s MTU into '*mtup'.
Expand Down

0 comments on commit 33f1ff8

Please sign in to comment.