<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 14px; font-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span style="background-color: rgba(0, 0, 0, 0); color: rgb(0, 0, 0);">From 4cf72842a07b2270876939fd2bb2367efaad95f4 Mon Sep 17 00:00:00 2001</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">From: Yuan Zhiyuan <yuanzhiyuan0928@outlook.com><br>Date: Fri, 1 Dec 2023 11:27:51 +0000<br>Subject: [PATCH] vhost: optimize vhost user get protocol features<br><br>variable features is unused in vhost_user_get_protocol_features.<br><br>Signed-off-by: Yuan Zhiyuan <yuanzhiyuan0928@outlook.com><br>---<br> lib/vhost/vhost_user.c | 3 +--<br> 1 file changed, 1 insertion(+), 2 deletions(-)<br><br>diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c<br>index e36312181a..3e737eaf12 100644<br>--- a/lib/vhost/vhost_user.c<br>+++ b/lib/vhost/vhost_user.c<br>@@ -2243,9 +2243,8 @@ vhost_user_get_protocol_features(struct virtio_net **pdev,<br> <span style="white-space: pre;"> </span><span style="white-space: pre;"> </span><span style="white-space: pre;"> </span>int main_fd __rte_unused)<br> {<br> <span style="white-space: pre;"> </span>struct virtio_net *dev = *pdev;<br>-<span style="white-space: pre;"> </span>uint64_t features, protocol_features;<br>+<span style="white-space: pre;"> </span>uint64_t protocol_features;<br> <br>-<span style="white-space: pre;"> </span>rte_vhost_driver_get_features(dev->ifname, &features);<br> <span style="white-space: pre;"> </span>rte_vhost_driver_get_protocol_features(dev->ifname, &protocol_features);<br> <br> <span style="white-space: pre;"> </span>ctx->msg.payload.u64 = protocol_features;<br>-- <br>2.34.1</span></div><div><br></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>yuanzhiyuan0928@outlook.com</div></div></span></div>
</body></html>