[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ8uoz0jXyVt8OPOq+B8L7gEm8bbd8cE5vdf3-KAhaVK871k8w@mail.gmail.com>
Date: Thu, 13 Jun 2019 21:07:26 +0200
From: Magnus Karlsson <magnus.karlsson@...il.com>
To: Jakub Kicinski <jakub.kicinski@...ronome.com>
Cc: Magnus Karlsson <magnus.karlsson@...el.com>,
Björn Töpel <bjorn.topel@...el.com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Network Development <netdev@...r.kernel.org>,
Jesper Dangaard Brouer <brouer@...hat.com>,
bpf@...r.kernel.org, bruce.richardson@...el.com,
ciara.loftus@...el.com, Ye Xiaolong <xiaolong.ye@...el.com>,
"Zhang, Qi Z" <qi.z.zhang@...el.com>,
Maxim Mikityanskiy <maximmi@...lanox.com>,
"Samudrala, Sridhar" <sridhar.samudrala@...el.com>,
kevin.laatz@...el.com, ilias.apalodimas@...aro.org,
Kiran <kiran.patil@...el.com>, axboe@...nel.dk,
"Fijalkowski, Maciej" <maciej.fijalkowski@...el.com>,
Maciej Fijalkowski <maciejromanfijalkowski@...il.com>,
intel-wired-lan <intel-wired-lan@...ts.osuosl.org>
Subject: Re: [PATCH bpf-next 2/6] xsk: add support for need_wakeup flag in
AF_XDP rings
On Thu, Jun 13, 2019 at 9:05 PM Jakub Kicinski
<jakub.kicinski@...ronome.com> wrote:
>
> On Thu, 13 Jun 2019 09:37:26 +0200, Magnus Karlsson wrote:
> >
> > - if (!dev->netdev_ops->ndo_bpf ||
> > - !dev->netdev_ops->ndo_xsk_async_xmit) {
> > + if (!dev->netdev_ops->ndo_bpf || !dev->netdev_ops->ndo_xsk_wakeup) {
> > err = -EOPNOTSUPP;
> > goto err_unreg_umem;
> > }
>
> > @@ -198,7 +258,8 @@ static int xsk_zc_xmit(struct sock *sk)
> > struct xdp_sock *xs = xdp_sk(sk);
> > struct net_device *dev = xs->dev;
> >
> > - return dev->netdev_ops->ndo_xsk_async_xmit(dev, xs->queue_id);
> > + return dev->netdev_ops->ndo_xsk_wakeup(dev, xs->queue_id,
> > + XDP_WAKEUP_TX);
> > }
> >
> > static void xsk_destruct_skb(struct sk_buff *skb)
>
> Those two look like they should be in the previous patch? Won't it
> break build?
You are correct. That should have been in patch 1. Will fix that in the v2.
Thanks: Magnus
Powered by blists - more mailing lists