0001-vhost-optimize-vhost-user-get-protocol-features

Message ID PH7PR03MB70478C1ABD48CCBFBB51EA75A481A@PH7PR03MB7047.namprd03.prod.outlook.com (mailing list archive)
State Awaiting Upstream
Delegated to: Maxime Coquelin
Headers
Series 0001-vhost-optimize-vhost-user-get-protocol-features |

Checks

Context Check Description
ci/Intel-compilation warning apply issues
ci/github-robot: build success github build: passed
ci/loongarch-compilation warning apply patch failure
ci/iol-testing warning apply patch failure

Commit Message

yuanzhiyuan0928@outlook.com Dec. 1, 2023, 11:45 a.m. UTC
  From 4cf72842a07b2270876939fd2bb2367efaad95f4 Mon Sep 17 00:00:00 2001
From: Yuan Zhiyuan <yuanzhiyuan0928@outlook.com>
Date: Fri, 1 Dec 2023 11:27:51 +0000
Subject: [PATCH] vhost: optimize vhost user get protocol features

variable features is unused in vhost_user_get_protocol_features.

Signed-off-by: Yuan Zhiyuan <yuanzhiyuan0928@outlook.com>
---
 lib/vhost/vhost_user.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.34.1




yuanzhiyuan0928@outlook.com
  

Patch

diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c
index e36312181a..3e737eaf12 100644
--- a/lib/vhost/vhost_user.c
+++ b/lib/vhost/vhost_user.c
@@ -2243,9 +2243,8 @@  vhost_user_get_protocol_features(struct virtio_net **pdev,
  int main_fd __rte_unused)
 {
  struct virtio_net *dev = *pdev;
- uint64_t features, protocol_features;
+ uint64_t protocol_features;
 
- rte_vhost_driver_get_features(dev->ifname, &features);
  rte_vhost_driver_get_protocol_features(dev->ifname, &protocol_features);
 
  ctx->msg.payload.u64 = protocol_features;