From: Yuval Shaia <yuval.shaia@oracle.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hw/rdma: Add support for GID state changes for non-qmp frameworks
Date: Mon, 6 May 2019 19:34:55 +0300 [thread overview]
Message-ID: <20190506163455.GA11809@lap1> (raw)
In-Reply-To: <05ff71d8-eb9d-08be-6081-dc66631b2034@redhat.com>
On Mon, May 06, 2019 at 10:09:29AM -0500, Eric Blake wrote:
> On 5/5/19 5:55 AM, Yuval Shaia wrote:
> > Any GID change in guest must be propogate to host. This is already done
>
> s/propogate to/propagated to the/
>
> > by firing QMP event to managment system such as libvirt which in turn
>
> s/managment/management/
>
> > will update the host with the relevant change.
> >
> > When qemu is executed on non-qmp framework (ex from command-line) we
> > need to update the host instead.
> > Fix it by adding support to update the RoCE device's Ethernet function
> > IP list from qemu via netlink.
> >
> > Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
> > ---
> > configure | 6 ++++
> > hw/rdma/rdma_backend.c | 74 +++++++++++++++++++++++++++++++++++++++++-
> > 2 files changed, 79 insertions(+), 1 deletion(-)
> >
>
> > @@ -1123,7 +1183,13 @@ int rdma_backend_add_gid(RdmaBackendDev *backend_dev, const char *ifname,
> > gid->global.subnet_prefix,
> > gid->global.interface_id);
> >
> > - return ret;
> > + /*
> > + * We ignore return value since operation might completed sucessfully
>
> s/completed sucessfully/have completed successfully/
>
> > + * by the QMP consumer
> > + */
> > + netlink_route_update(ifname, gid, RTM_NEWADDR);
> > +
> > + return 0;
> > }
> >
> > int rdma_backend_del_gid(RdmaBackendDev *backend_dev, const char *ifname,
> > @@ -1149,6 +1215,12 @@ int rdma_backend_del_gid(RdmaBackendDev *backend_dev, const char *ifname,
> > gid->global.subnet_prefix,
> > gid->global.interface_id);
> >
> > + /*
> > + * We ignore return value since operation might completed sucessfully
>
> and again
Thanks for the spelling mistake corrections.
Will fix and respin.
>
> > + * by the QMP consumer
> > + */
> > + netlink_route_update(ifname, gid, RTM_DELADDR);
> > +
> > return 0;
> > }
> >
> >
>
> --
> Eric Blake, Principal Software Engineer
> Red Hat, Inc. +1-919-301-3226
> Virtualization: qemu.org | libvirt.org
>
next prev parent reply other threads:[~2019-05-06 16:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-05 10:55 [Qemu-devel] [PATCH] hw/rdma: Add support for GID state changes for non-qmp frameworks Yuval Shaia
2019-05-06 15:09 ` Eric Blake
2019-05-06 16:34 ` Yuval Shaia [this message]
2019-05-24 5:24 ` Marcel Apfelbaum
2019-05-26 6:41 ` Yuval Shaia
2019-05-26 10:09 ` Marcel Apfelbaum
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=20190506163455.GA11809@lap1 \
--to=yuval.shaia@oracle.com \
--cc=eblake@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.