From: Jakub Kicinski <kuba@kernel.org>
To: Sven Auhagen <sven.auhagen@voleatech.de>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"lorenzo.bianconi@redhat.com" <lorenzo.bianconi@redhat.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"thomas.petazzoni@bootlin.com" <thomas.petazzoni@bootlin.com>,
"brouer@redhat.com" <brouer@redhat.com>,
"ilias.apalodimas@linaro.org" <ilias.apalodimas@linaro.org>,
"matteo.croce@redhat.com" <matteo.croce@redhat.com>,
"mw@semihalf.com" <mw@semihalf.com>,
"jakub.kicinski@netronome.com" <jakub.kicinski@netronome.com>
Subject: Re: [PATCH v2] mvneta driver disallow XDP program on hardware buffer management
Date: Thu, 23 Jan 2020 09:05:17 -0800 [thread overview]
Message-ID: <20200123090506.1b053a92@cakuba> (raw)
In-Reply-To: <D1D78C6F-B2B2-4E55-8350-74DCBDB1EE01@voleatech.de>
On Thu, 23 Jan 2020 08:16:55 +0000, Sven Auhagen wrote:
> Recently XDP Support was added to the mvneta driver
> for software buffer management only.
> It is still possible to attach an XDP program if
> hardware buffer management is used.
> It is not doing anything at that point.
>
> The patch disallows attaching XDP programs to mvneta
> if hardware buffer management is used.
>
> Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de>
Your patches keep getting corrupted by your email client or server.
> diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
> index 71a872d46bc4..96593b9fbd9b 100644
> --- a/drivers/net/ethernet/marvell/mvneta.c
> +++ b/drivers/net/ethernet/marvell/mvneta.c
> @@ -4225,6 +4225,12 @@ static int mvneta_xdp_setup(struct net_device *dev, struct bpf_prog *prog,
> return -EOPNOTSUPP;
> }
>
> +if (pp->bm_priv) {
> +NL_SET_ERR_MSG_MOD(extack,
> + "Hardware Buffer Management not supported on XDP");
> +return -EOPNOTSUPP;
> +}
This is white space corrupted
> need_update = !!pp->xdp_prog != !!prog;
> if (running && need_update)
> mvneta_stop(dev);
>
>
> +++ Voleatech auf der E-World, 11. bis 13. Februar 2020, Halle 5, Stand 521 +++
>
> Beste Grüße/Best regards
>
> Sven Auhagen
> Dipl. Math. oec., M.Sc.
> Voleatech GmbH
> HRB: B 754643
> USTID: DE303643180
> Grathwohlstr. 5
> 72762 Reutlingen
> Tel: +49 7121539550
> Fax: +49 7121539551
> E-Mail: sven.auhagen@voleatech.de
> www.voleatech.de<https://www.voleatech.de>
> Diese Information ist ausschließlich für den Adressaten bestimmt und kann vertraulich oder gesetzlich geschützte Informationen enthalten. Wenn Sie nicht der bestimmungsgemäße Adressat sind, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Anderen als dem bestimmungsgemäßen Adressaten ist es untersagt, diese E-Mail zu lesen, zu speichern, weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden. Für den Adressaten sind die Informationen in dieser Mail nur zum persönlichen Gebrauch. Eine Weiterleitung darf nur nach Rücksprache mit dem Absender erfolgen. Wir verwenden aktuelle Virenschutzprogramme. Für Schäden, die dem Empfänger gleichwohl durch von uns zugesandte mit Viren befallene E-Mails entstehen, schließen wir jede Haftung aus.
Something inserts this footer.
Please try git-send-email for sending patches. If it's the server you
need to find a different one.
prev parent reply other threads:[~2020-01-23 17:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 8:16 [PATCH v2] mvneta driver disallow XDP program on hardware buffer management Sven Auhagen
2020-01-23 17:05 ` Jakub Kicinski [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=20200123090506.1b053a92@cakuba \
--to=kuba@kernel.org \
--cc=brouer@redhat.com \
--cc=davem@davemloft.net \
--cc=ilias.apalodimas@linaro.org \
--cc=jakub.kicinski@netronome.com \
--cc=lorenzo.bianconi@redhat.com \
--cc=matteo.croce@redhat.com \
--cc=mw@semihalf.com \
--cc=netdev@vger.kernel.org \
--cc=sven.auhagen@voleatech.de \
--cc=thomas.petazzoni@bootlin.com \
/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