[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3b75e002109483819858dd303ca91981b33ee0d9.1648981571.git.asml.silence@gmail.com>
Date: Sun, 3 Apr 2022 14:06:18 +0100
From: Pavel Begunkov <asml.silence@...il.com>
To: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: Eric Dumazet <edumazet@...gle.com>, Wei Liu <wei.liu@...nel.org>,
Paul Durrant <paul@....org>,
Pavel Begunkov <asml.silence@...il.com>
Subject: [PATCH net-next 06/27] net: xen: set zc flags only when there is ubuf
In preparation to changing zc ubuf invariants, set SKBFL_ZEROCOPY_ENABLE
IFF there is a ubuf set.
Signed-off-by: Pavel Begunkov <asml.silence@...il.com>
---
drivers/net/xen-netback/interface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index fe8e21ad8ed9..0a0c36a38fd4 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -55,7 +55,8 @@
void xenvif_skb_zerocopy_prepare(struct xenvif_queue *queue,
struct sk_buff *skb)
{
- skb_shinfo(skb)->flags |= SKBFL_ZEROCOPY_ENABLE;
+ if (skb_uarg(skb))
+ skb_shinfo(skb)->flags |= SKBFL_ZEROCOPY_ENABLE;
atomic_inc(&queue->inflight_packets);
}
--
2.35.1
Powered by blists - more mailing lists