[ovs-dev] [docs 1/4] netdev: Document use for get_etheraddr member of struct netdev_class.

Ethan Jackson ethan at nicira.com
Mon Apr 30 21:54:47 UTC 2012


Looks good thanks.

Ethan

On Mon, Apr 30, 2012 at 11:41, Ben Pfaff <blp at nicira.com> wrote:
> This has confused developers adding hardware support, e.g.:
> http://openvswitch.org/pipermail/dev/2012-April/016350.html
>
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
>  lib/netdev-provider.h |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h
> index daf46ad..6daae5e 100644
> --- a/lib/netdev-provider.h
> +++ b/lib/netdev-provider.h
> @@ -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'.
> --
> 1.7.2.5
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list