From: huhai <huhai@kylinos.cn>
To: mst@redhat.com, jasowang@redhat.com
Cc: kvm@vger.kernel.org, huhai <huhai@kylinos.cn>
Subject: [PATCH] vhost_net: remove wrong 'unlikely' check
Date: Mon, 17 Jun 2019 16:50:29 +0800 [thread overview]
Message-ID: <20190617085029.21730-1-huhai@kylinos.cn> (raw)
Since commit f9611c43ab0d ("vhost-net: enable zerocopy tx by default")
experimental_zcopytx is set to true by default, so remove the unlikely check.
Signed-off-by: huhai <huhai@kylinos.cn>
---
drivers/vhost/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 2d9df786a9d3..8c1dfd02372b 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -342,7 +342,7 @@ static bool vhost_net_tx_select_zcopy(struct vhost_net *net)
static bool vhost_sock_zcopy(struct socket *sock)
{
- return unlikely(experimental_zcopytx) &&
+ return experimental_zcopytx &&
sock_flag(sock->sk, SOCK_ZEROCOPY);
}
--
2.20.1
next reply other threads:[~2019-06-17 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-17 8:50 huhai [this message]
2019-06-17 8:56 ` [PATCH] vhost_net: remove wrong 'unlikely' check Jason Wang
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=20190617085029.21730-1-huhai@kylinos.cn \
--to=huhai@kylinos.cn \
--cc=jasowang@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.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).