From: Jesper Dangaard Brouer <brouer@redhat.com>
To: Denis Kirjanov <kda@linux-powerpc.org>
Cc: brouer@redhat.com, netdev@vger.kernel.org, jgross@suse.com,
ilias.apalodimas@linaro.org
Subject: Re: [PATCH net-next v2] xen-netfront: add basic XDP support
Date: Thu, 5 Mar 2020 15:04:00 +0100 [thread overview]
Message-ID: <20200305150347.740b209f@carbon> (raw)
In-Reply-To: <1583158874-2751-1-git-send-email-kda@linux-powerpc.org>
On Mon, 2 Mar 2020 17:21:14 +0300
Denis Kirjanov <kda@linux-powerpc.org> wrote:
> diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c
> index 286054b..81a6023 100644
> --- a/drivers/net/xen-netback/xenbus.c
> +++ b/drivers/net/xen-netback/xenbus.c
> @@ -393,6 +393,20 @@ static void set_backend_state(struct backend_info *be,
> }
> }
>
> +static void read_xenbus_fronetend_xdp(struct backend_info *be,
> + struct xenbus_device *dev)
Strange spelling of this function name: 'fronetend'
> +{
> + struct xenvif *vif = be->vif;
> + unsigned int val;
> + int err;
> +
> + err = xenbus_scanf(XBT_NIL, dev->otherend,
> + "feature-xdp", "%u", &val);
> + if (err < 0)
> + return;
> + vif->xdp_enabled = val;
> +}
> +
> /**
> * Callback received when the frontend's state changes.
> */
> @@ -417,6 +431,11 @@ static void frontend_changed(struct xenbus_device *dev,
> set_backend_state(be, XenbusStateConnected);
> break;
>
> + case XenbusStateReconfiguring:
> + read_xenbus_fronetend_xdp(be, dev);
^^^^^^^^
> + xenbus_switch_state(dev, XenbusStateReconfigured);
> + break;
> +
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
next prev parent reply other threads:[~2020-03-05 14:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-02 14:21 [PATCH net-next v2] xen-netfront: add basic XDP support Denis Kirjanov
2020-03-02 15:29 ` Jürgen Groß
2020-03-02 19:31 ` David Miller
2020-03-04 13:10 ` Denis Kirjanov
2020-03-04 13:36 ` Jürgen Groß
2020-03-05 9:47 ` Denis Kirjanov
2020-03-05 10:33 ` Jürgen Groß
2020-03-06 18:22 ` Wei Liu
2020-03-05 13:04 ` Ilias Apalodimas
2020-03-05 13:23 ` Denis Kirjanov
2020-03-05 13:31 ` Ilias Apalodimas
2020-03-05 14:39 ` Jesper Dangaard Brouer
2020-03-05 14:04 ` Jesper Dangaard Brouer [this message]
2020-03-05 14:35 ` Jesper Dangaard Brouer
2020-03-06 9:48 ` Denis Kirjanov
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=20200305150347.740b209f@carbon \
--to=brouer@redhat.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jgross@suse.com \
--cc=kda@linux-powerpc.org \
--cc=netdev@vger.kernel.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 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).