From: Lorenzo Bianconi <lorenzo@kernel.org>
To: bpf@vger.kernel.org, netdev@vger.kernel.org
Cc: lorenzo.bianconi@redhat.com, davem@davemloft.net,
kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net,
shayagr@amazon.com, john.fastabend@gmail.com, dsahern@kernel.org,
brouer@redhat.com, echaudro@redhat.com, jasowang@redhat.com,
alexander.duyck@gmail.com, saeed@kernel.org,
maciej.fijalkowski@intel.com, sameehj@amazon.com
Subject: [PATCH v6 bpf-next 6/8] net: mvneta: enable jumbo frames for XDP
Date: Tue, 19 Jan 2021 21:20:12 +0100 [thread overview]
Message-ID: <6e8d1cc2fb0af6e1b54e97980501ebf6a3e50833.1611086134.git.lorenzo@kernel.org> (raw)
In-Reply-To: <cover.1611086134.git.lorenzo@kernel.org>
Enable the capability to receive jumbo frames even if the interface is
running in XDP mode
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
drivers/net/ethernet/marvell/mvneta.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index c273e674e3de..45a3a8cb12fa 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -3763,11 +3763,6 @@ static int mvneta_change_mtu(struct net_device *dev, int mtu)
mtu = ALIGN(MVNETA_RX_PKT_SIZE(mtu), 8);
}
- if (pp->xdp_prog && mtu > MVNETA_MAX_RX_BUF_SIZE) {
- netdev_info(dev, "Illegal MTU value %d for XDP mode\n", mtu);
- return -EINVAL;
- }
-
dev->mtu = mtu;
if (!netif_running(dev)) {
@@ -4465,11 +4460,6 @@ static int mvneta_xdp_setup(struct net_device *dev, struct bpf_prog *prog,
struct mvneta_port *pp = netdev_priv(dev);
struct bpf_prog *old_prog;
- if (prog && dev->mtu > MVNETA_MAX_RX_BUF_SIZE) {
- NL_SET_ERR_MSG_MOD(extack, "MTU too large for XDP");
- return -EOPNOTSUPP;
- }
-
if (pp->bm_priv) {
NL_SET_ERR_MSG_MOD(extack,
"Hardware Buffer Management not supported on XDP");
--
2.29.2
next prev parent reply other threads:[~2021-01-19 20:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-19 20:20 [PATCH v6 bpf-next 0/8] mvneta: introduce XDP multi-buffer support Lorenzo Bianconi
2021-01-19 20:20 ` [PATCH v6 bpf-next 1/8] xdp: introduce mb in xdp_buff/xdp_frame Lorenzo Bianconi
2021-01-19 20:20 ` [PATCH v6 bpf-next 2/8] xdp: add xdp_shared_info data structure Lorenzo Bianconi
2021-01-19 20:20 ` [PATCH v6 bpf-next 3/8] net: mvneta: update mb bit before passing the xdp buffer to eBPF layer Lorenzo Bianconi
2021-01-19 20:20 ` [PATCH v6 bpf-next 4/8] xdp: add multi-buff support to xdp_return_{buff/frame} Lorenzo Bianconi
2021-01-19 20:20 ` [PATCH v6 bpf-next 5/8] net: mvneta: add multi buffer support to XDP_TX Lorenzo Bianconi
2021-01-19 20:20 ` Lorenzo Bianconi [this message]
2021-01-19 20:20 ` [PATCH v6 bpf-next 7/8] net: xdp: add multi-buff support to xdp_build_skb_from_fram Lorenzo Bianconi
2021-01-19 20:20 ` [PATCH v6 bpf-next 8/8] bpf: add multi-buff support to the bpf_xdp_adjust_tail() API Lorenzo Bianconi
2021-01-23 1:03 ` [PATCH v6 bpf-next 0/8] mvneta: introduce XDP multi-buffer support Daniel Borkmann
2021-01-31 17:23 ` Lorenzo Bianconi
2021-02-03 13:24 ` Jubran, Samih
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=6e8d1cc2fb0af6e1b54e97980501ebf6a3e50833.1611086134.git.lorenzo@kernel.org \
--to=lorenzo@kernel.org \
--cc=alexander.duyck@gmail.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=brouer@redhat.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=echaudro@redhat.com \
--cc=jasowang@redhat.com \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=maciej.fijalkowski@intel.com \
--cc=netdev@vger.kernel.org \
--cc=saeed@kernel.org \
--cc=sameehj@amazon.com \
--cc=shayagr@amazon.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;
as well as URLs for NNTP newsgroup(s).