* [Qemu-devel] [PATCH] Virtio-net: Replace the hardcode 6 with defined ETN_ALEN
@ 2010-05-23 2:49 akong
2010-05-24 20:29 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: akong @ 2010-05-23 2:49 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori, Amos Kong, alex.williamson
From: Amos Kong <akong@redhat.com>
hw/virtio-net.h:
#define ETH_ALEN 6
ETH_ALEN was defined by commit 7967406801aa897fae83caad3278ac85a342adaa
Signed-off-by: Amos Kong <akong@redhat.com>
---
hw/virtio-net.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/virtio-net.h b/hw/virtio-net.h
index e55119b..235f1a9 100644
--- a/hw/virtio-net.h
+++ b/hw/virtio-net.h
@@ -54,8 +54,8 @@
struct virtio_net_config
{
- /* The config defining mac address (6 bytes) */
- uint8_t mac[6];
+ /* The config defining mac address ($ETH_ALEN bytes) */
+ uint8_t mac[ETH_ALEN];
/* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
uint16_t status;
} __attribute__((packed));
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Virtio-net: Replace the hardcode 6 with defined ETN_ALEN
2010-05-23 2:49 [Qemu-devel] [PATCH] Virtio-net: Replace the hardcode 6 with defined ETN_ALEN akong
@ 2010-05-24 20:29 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2010-05-24 20:29 UTC (permalink / raw)
To: akong; +Cc: aliguori, qemu-devel, alex.williamson
On 05/22/2010 09:49 PM, akong@redhat.com wrote:
> From: Amos Kong<akong@redhat.com>
>
> hw/virtio-net.h:
> #define ETH_ALEN 6
> ETH_ALEN was defined by commit 7967406801aa897fae83caad3278ac85a342adaa
>
> Signed-off-by: Amos Kong<akong@redhat.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> hw/virtio-net.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/virtio-net.h b/hw/virtio-net.h
> index e55119b..235f1a9 100644
> --- a/hw/virtio-net.h
> +++ b/hw/virtio-net.h
> @@ -54,8 +54,8 @@
>
> struct virtio_net_config
> {
> - /* The config defining mac address (6 bytes) */
> - uint8_t mac[6];
> + /* The config defining mac address ($ETH_ALEN bytes) */
> + uint8_t mac[ETH_ALEN];
> /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
> uint16_t status;
> } __attribute__((packed));
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-24 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-23 2:49 [Qemu-devel] [PATCH] Virtio-net: Replace the hardcode 6 with defined ETN_ALEN akong
2010-05-24 20:29 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).