<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.FoxDiv20231205185756328703 { }body { font-size: 14px; font-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">From 4cf72842a07b2270876939fd2bb2367efaad95f4 Mon Sep 17 00:00:00 2001<br>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<br><br></span></div><blockquote style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em; margin-Right: inherit"><div><div class="FoxDiv20231205185756328703">
</div></div></blockquote>
</body></html>