From: Vlad Yasevich <vyasevic@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] virtio-net: Correctly store multicast filter entries
Date: Fri, 08 Nov 2013 12:39:02 -0500 [thread overview]
Message-ID: <527D21B6.7060202@redhat.com> (raw)
In-Reply-To: <1383926869-5518-1-git-send-email-vyasevic@redhat.com>
On 11/08/2013 11:07 AM, Vlad Yasevich wrote:
> Commit 921ac5d0f3a0df869db5ce4edf752f51d8b1596a
> virtio-net: remove layout assumptions for ctrl vq
> introduced a regression where the multicast address filter
> entries are written to the beginning of the mac table array,
> thus overwriting any unicast addresses that may have been
> programmed in the filter.
> The multicast addresses should be written after all the
> unicast addresses.
>
> Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Please ignore. Just saw pull pull request with similar patch.
-vlad
> ---
> hw/net/virtio-net.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
> index 22dbd05..94e8b68 100644
> --- a/hw/net/virtio-net.c
> +++ b/hw/net/virtio-net.c
> @@ -657,7 +657,8 @@ static int virtio_net_handle_mac(VirtIONet *n, uint8_t cmd,
> }
>
> if (n->mac_table.in_use + mac_data.entries <= MAC_TABLE_ENTRIES) {
> - s = iov_to_buf(iov, iov_cnt, 0, n->mac_table.macs,
> + s = iov_to_buf(iov, iov_cnt, 0,
> + n->mac_table.macs + (n->mac_table.in_use * ETH_ALEN),
> mac_data.entries * ETH_ALEN);
> if (s != mac_data.entries * ETH_ALEN) {
> goto error;
>
prev parent reply other threads:[~2013-11-08 17:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 16:07 [Qemu-devel] [PATCH] virtio-net: Correctly store multicast filter entries Vlad Yasevich
2013-11-08 17:39 ` Vlad Yasevich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527D21B6.7060202@redhat.com \
--to=vyasevic@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.