patches for DPDK stable branches
 help / color / mirror / Atom feed
From: luca.boccassi@gmail.com
To: Maxime Coquelin <maxime.coquelin@redhat.com>
Cc: Chenbo Xia <chenbo.xia@intel.com>,
	Kevin Traynor <ktraynor@redhat.com>,
	dpdk stable <stable@dpdk.org>
Subject: patch 'vhost: decrease log level for unimplemented requests' has been queued to stable release 20.11.8
Date: Thu, 23 Feb 2023 09:36:35 +0000	[thread overview]
Message-ID: <20230223093715.3926893-31-luca.boccassi@gmail.com> (raw)
In-Reply-To: <20230223093715.3926893-1-luca.boccassi@gmail.com>

Hi,

FYI, your patch has been queued to stable release 20.11.8

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/25/23. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/08a43750b568989f171f8c2bd1caa7ad398da7e9

Thanks.

Luca Boccassi

---
From 08a43750b568989f171f8c2bd1caa7ad398da7e9 Mon Sep 17 00:00:00 2001
From: Maxime Coquelin <maxime.coquelin@redhat.com>
Date: Mon, 6 Feb 2023 16:07:33 +0100
Subject: [PATCH] vhost: decrease log level for unimplemented requests

[ upstream commit 43ccd55fdd6ab34b55060045594cc21aefa74383 ]

This patch changes VHOST_USER_SET_VRING_ERR and
VHOST_USER_SET_LOG_FD "not implemented" log levels from
INFO to DEBUG, as implementing these requests is not
mandatory. Having them being displayed at INFO level
may induce some confusion to the end-user.

Fixes: fd29c33b651a ("vhost: handle unsupported message types in functions")

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
---
 lib/librte_vhost/vhost_user.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c
index da04a37867..93781f4b80 100644
--- a/lib/librte_vhost/vhost_user.c
+++ b/lib/librte_vhost/vhost_user.c
@@ -1679,7 +1679,7 @@ static int vhost_user_set_vring_err(struct virtio_net **pdev __rte_unused,
 
 	if (!(msg->payload.u64 & VHOST_USER_VRING_NOFD_MASK))
 		close(msg->fds[0]);
-	VHOST_LOG_CONFIG(INFO, "not implemented\n");
+	VHOST_LOG_CONFIG(DEBUG, "not implemented\n");
 
 	return RTE_VHOST_MSG_RESULT_OK;
 }
@@ -2191,7 +2191,7 @@ static int vhost_user_set_log_fd(struct virtio_net **pdev __rte_unused,
 		return RTE_VHOST_MSG_RESULT_ERR;
 
 	close(msg->fds[0]);
-	VHOST_LOG_CONFIG(INFO, "not implemented.\n");
+	VHOST_LOG_CONFIG(DEBUG, "not implemented.\n");
 
 	return RTE_VHOST_MSG_RESULT_OK;
 }
-- 
2.39.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-02-23 09:36:29.495272824 +0000
+++ 0031-vhost-decrease-log-level-for-unimplemented-requests.patch	2023-02-23 09:36:28.230170013 +0000
@@ -1 +1 @@
-From 43ccd55fdd6ab34b55060045594cc21aefa74383 Mon Sep 17 00:00:00 2001
+From 08a43750b568989f171f8c2bd1caa7ad398da7e9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 43ccd55fdd6ab34b55060045594cc21aefa74383 ]
+
@@ -13 +14,0 @@
-Cc: stable@dpdk.org
@@ -19 +20 @@
- lib/vhost/vhost_user.c | 4 ++--
+ lib/librte_vhost/vhost_user.c | 4 ++--
@@ -22,5 +23,5 @@
-diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c
-index 8c1d60b76b..b4236820a2 100644
---- a/lib/vhost/vhost_user.c
-+++ b/lib/vhost/vhost_user.c
-@@ -1818,7 +1818,7 @@ static int vhost_user_set_vring_err(struct virtio_net **pdev,
+diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c
+index da04a37867..93781f4b80 100644
+--- a/lib/librte_vhost/vhost_user.c
++++ b/lib/librte_vhost/vhost_user.c
+@@ -1679,7 +1679,7 @@ static int vhost_user_set_vring_err(struct virtio_net **pdev __rte_unused,
@@ -28,4 +29,4 @@
- 	if (!(ctx->msg.payload.u64 & VHOST_USER_VRING_NOFD_MASK))
- 		close(ctx->fds[0]);
--	VHOST_LOG_CONFIG(dev->ifname, INFO, "not implemented\n");
-+	VHOST_LOG_CONFIG(dev->ifname, DEBUG, "not implemented\n");
+ 	if (!(msg->payload.u64 & VHOST_USER_VRING_NOFD_MASK))
+ 		close(msg->fds[0]);
+-	VHOST_LOG_CONFIG(INFO, "not implemented\n");
++	VHOST_LOG_CONFIG(DEBUG, "not implemented\n");
@@ -35 +36 @@
-@@ -2340,7 +2340,7 @@ static int vhost_user_set_log_fd(struct virtio_net **pdev,
+@@ -2191,7 +2191,7 @@ static int vhost_user_set_log_fd(struct virtio_net **pdev __rte_unused,
@@ -38,3 +39,3 @@
- 	close(ctx->fds[0]);
--	VHOST_LOG_CONFIG(dev->ifname, INFO, "not implemented.\n");
-+	VHOST_LOG_CONFIG(dev->ifname, DEBUG, "not implemented.\n");
+ 	close(msg->fds[0]);
+-	VHOST_LOG_CONFIG(INFO, "not implemented.\n");
++	VHOST_LOG_CONFIG(DEBUG, "not implemented.\n");

  parent reply	other threads:[~2023-02-23  9:38 UTC|newest]

Thread overview: 144+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-23  9:36 patch 'eal/windows: mark memory config as complete' " luca.boccassi
2023-02-23  9:36 ` patch 'kni: fix build on RHEL 9.1' " luca.boccassi
2023-02-23  9:36 ` patch 'doc: fix dependency setup in l2fwd-cat example guide' " luca.boccassi
2023-02-23  9:36 ` patch 'devtools: fix escaped space in grep pattern' " luca.boccassi
2023-02-23  9:36 ` patch 'app/crypto-perf: fix number of segments' " luca.boccassi
2023-02-23  9:36 ` patch 'eventdev/eth_tx: fix devices loop' " luca.boccassi
2023-02-23  9:36 ` patch 'crypto/qat: fix stream cipher direction' " luca.boccassi
2023-02-23  9:36 ` patch 'fbarray: fix metadata dump' " luca.boccassi
2023-02-23  9:36 ` patch 'graph: fix node shrink' " luca.boccassi
2023-02-23  9:36 ` patch 'net/nfp: fix firmware name derived from PCI name' " luca.boccassi
2023-02-23  9:36 ` patch 'app/testpmd: fix interactive mode with no ports' " luca.boccassi
2023-02-23  9:36 ` patch 'examples/qos_sched: fix debug mode' " luca.boccassi
2023-02-23  9:36 ` patch 'build: fix dependencies lookup' " luca.boccassi
2023-02-23  9:36 ` patch 'vdpa/ifc: fix argument compatibility check' " luca.boccassi
2023-02-23  9:36 ` patch 'vdpa/ifc: fix reconnection in SW-assisted live migration' " luca.boccassi
2023-02-23  9:36 ` patch 'vhost: fix net header settings in datapath' " luca.boccassi
2023-02-23  9:36 ` patch 'app/bbdev: add allocation checks' " luca.boccassi
2023-02-23  9:36 ` patch 'baseband/acc: fix memory leak on acc100 close' " luca.boccassi
2023-02-23  9:36 ` patch 'baseband/acc: fix acc100 iteration counter in TB' " luca.boccassi
2023-02-23  9:36 ` patch 'crypto/ccp: remove some printf' " luca.boccassi
2023-02-23  9:36 ` patch 'test/crypto: add missing MAC-I to PDCP vectors' " luca.boccassi
2023-02-23  9:36 ` patch 'compressdev: fix end of driver list' " luca.boccassi
2023-02-23  9:36 ` patch 'net/bnxt: fix Tx queue stats after queue stop and start' " luca.boccassi
2023-02-23  9:36 ` patch 'net/bnxt: fix Rx " luca.boccassi
2023-02-23  9:36 ` patch 'net/bnxt: fix RSS hash in mbuf' " luca.boccassi
2023-02-23  9:36 ` patch 'mem: fix hugepage info mapping' " luca.boccassi
2023-02-23  9:36 ` patch 'raw/ifpga/base: fix init with multi-process' " luca.boccassi
2023-02-23  9:36 ` patch 'telemetry: fix repeat display when callback don't init dict' " luca.boccassi
2023-02-23  9:36 ` patch 'test/mbuf: fix mbuf reset test' " luca.boccassi
2023-02-23  9:36 ` patch 'eventdev/timer: fix overflow' " luca.boccassi
2023-02-23  9:36 ` luca.boccassi [this message]
2023-02-23  9:36 ` patch 'vhost: fix possible FD leaks' " luca.boccassi
2023-02-23  9:36 ` patch 'vhost: fix possible FD leaks on truncation' " luca.boccassi
2023-02-23  9:36 ` patch 'net/virtio-user: fix device starting failure handling' " luca.boccassi
2023-02-23  9:36 ` patch 'app/testpmd: fix forwarding stats for Tx dropped' " luca.boccassi
2023-02-23  9:36 ` patch 'net/txgbe: fix default signal quality value for KX/KX4' " luca.boccassi
2023-02-23  9:36 ` patch 'net/txgbe: fix packet type to parse from offload flags' " luca.boccassi
2023-02-23  9:36 ` patch 'net/txgbe: fix interrupt loss' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: fix log about indirection table size' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: refactor set RSS hash algorithm and key interface' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: fix RSS key size compatibility' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: fix clearing RSS configuration' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: use RSS filter list to check duplicated rule' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: remove useless code when destroy valid RSS " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: fix warning on flush or destroy " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: fix config struct used for conversion' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: fix duplicate RSS rule check' " luca.boccassi
2023-02-23  9:36 ` patch 'net/hns3: extract common functions to set Rx/Tx' " luca.boccassi
2023-02-23  9:36 ` patch 'net/sfc: enforce fate action in transfer flow rules' " luca.boccassi
2023-02-23  9:36 ` patch 'net/txgbe: fix Rx buffer size in config register' " luca.boccassi
2023-02-23  9:36 ` patch 'net/mlx5: fix flow sample with ConnectX-5' " luca.boccassi
2023-02-23  9:36 ` patch 'net/mlx5: fix error CQE dumping for vectorized Rx' " luca.boccassi
2023-02-23  9:36 ` patch 'net/mlx5: ignore non-critical syndromes for Rx queue' " luca.boccassi
2023-02-23  9:36 ` patch 'net/i40e: reduce interrupt interval in multi-driver mode' " luca.boccassi
2023-02-23  9:36 ` patch 'net/ixgbe: fix firmware version consistency' " luca.boccassi
2023-02-23  9:37 ` patch 'net/iavf: add lock for VF commands' " luca.boccassi
2023-02-23  9:37 ` patch 'net/i40e: fix validation of flow transfer attribute' " luca.boccassi
2023-02-23  9:37 ` patch 'net/ice: " luca.boccassi
2023-02-23  9:37 ` patch 'net/iavf: protect insertion in flow list' " luca.boccassi
2023-02-23  9:37 ` patch 'net/ixgbe: enable IPv6 mask in flow rules' " luca.boccassi
2023-02-23  9:37 ` patch 'app/compress-perf: fix some typos' " luca.boccassi
2023-02-23  9:37 ` patch 'app/compress-perf: fix testing single operation' " luca.boccassi
2023-02-23  9:37 ` patch 'net/bnxt: fix link state change interrupt config' " luca.boccassi
2023-02-23  9:37 ` patch 'app/testpmd: fix crash on cleanup' " luca.boccassi
2023-02-23  9:37 ` patch 'eal/freebsd: fix lock in alarm callback' " luca.boccassi
2023-02-23  9:37 ` patch 'reorder: invalidate buffer from ready queue in drain' " luca.boccassi
2023-02-23  9:37 ` patch 'test/reorder: fix double free of drained buffers' " luca.boccassi
2023-02-23  9:37 ` patch 'build: fix toolchain definition' " luca.boccassi
2023-02-23  9:37 ` patch 'eal: use same atomic intrinsics for GCC and clang' " luca.boccassi
2023-02-23  9:37 ` patch 'examples/cmdline: fix build with GCC 12' " luca.boccassi
2023-02-23  9:37 ` patch 'examples/qos_sched: fix Tx port config when link down' " luca.boccassi
2023-03-15 22:45   ` patch 'eal/windows: fix pedantic build' " luca.boccassi
2023-03-15 22:45     ` patch 'doc: fix reference to event timer header' " luca.boccassi
2023-03-15 22:45     ` patch 'test/bbdev: fix crash for non supported HARQ length' " luca.boccassi
2023-03-15 22:45     ` patch 'test/bbdev: extend HARQ tolerance' " luca.boccassi
2023-03-15 22:45     ` patch 'test/bbdev: remove check for invalid opaque data' " luca.boccassi
2023-03-15 22:45     ` patch 'vhost: fix OOB access for invalid vhost ID' " luca.boccassi
2023-03-16  9:27       ` Luca Boccassi
2023-03-16  9:56         ` David Marchand
2023-03-16 10:30           ` Kevin Traynor
2023-03-16 10:36             ` Luca Boccassi
2023-03-16 10:50               ` David Marchand
2023-03-15 22:45     ` patch 'Revert "vhost: fix OOB access for invalid vhost ID"' " luca.boccassi
2023-03-15 22:45     ` patch 'net/virtio: deduce IP length for TSO checksum' " luca.boccassi
2023-03-15 22:46     ` patch 'app/testpmd: fix Tx preparation in checksum engine' " luca.boccassi
2023-03-15 22:46     ` patch 'app/testpmd: fix packet count in IEEE 1588 " luca.boccassi
2023-03-15 22:46     ` patch 'app/testpmd: fix packet transmission in noisy VNF " luca.boccassi
2023-03-15 22:46     ` patch 'net/nfp: fix getting RSS configuration' " luca.boccassi
2023-03-15 22:46     ` patch 'net/ixgbe: fix IPv6 mask in flow director' " luca.boccassi
2023-03-15 22:46     ` patch 'net/i40e: revert link status check on device start' " luca.boccassi
2023-03-15 22:46     ` patch 'net/nfp: fix MTU configuration order' " luca.boccassi
2023-03-15 22:46     ` patch 'kvargs: add API documentation for process callback' " luca.boccassi
2023-03-15 22:46     ` patch 'compressdev: fix empty devargs parsing' " luca.boccassi
2023-03-15 22:46     ` patch 'cryptodev: " luca.boccassi
2023-03-15 22:46     ` patch 'net/virtio: " luca.boccassi
2023-03-15 22:46     ` patch 'raw/skeleton: " luca.boccassi
2023-03-15 22:46     ` patch 'kni: fix possible starvation when mbufs are exhausted' " luca.boccassi
2023-03-15 22:46     ` patch 'cmdline: handle EOF as quit' " luca.boccassi
2023-03-15 22:46     ` patch 'app/testpmd: cleanup cleanly from signal' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: fix possible truncation of hash key when config' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: fix possible truncation of redirection table' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: use hardware config to report hash key' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: use hardware config to report hash types' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: use hardware config to report redirection table' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: separate setting hash algorithm' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: separate setting hash key' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: separate setting redirection table' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: separate setting RSS types' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: separate setting and clearing RSS rule' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: use new RSS rule to configure hardware' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: save hash algo to RSS filter list node' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: allow adding queue buffer size hash rule' " luca.boccassi
2023-03-15 22:46     ` patch 'net/hns3: separate flow RSS config from RSS conf' " luca.boccassi
2023-03-15 22:46     ` patch 'app/crypto-perf: fix test file memory leak' " luca.boccassi
2023-03-15 22:46     ` patch 'app/flow-perf: fix division or module by zero' " luca.boccassi
2023-03-22  0:41       ` patch 'raw/skeleton: fix selftest' " luca.boccassi
2023-03-22  0:41         ` patch 'ring: silence GCC 12 warnings' " luca.boccassi
2023-03-22  0:41         ` patch 'reorder: fix sequence number mbuf field register' " luca.boccassi
2023-03-22  0:41         ` patch 'test: fix segment length in packet generator' " luca.boccassi
2023-03-22  0:41         ` patch 'test/mbuf: fix test with mbuf debug enabled' " luca.boccassi
2023-03-22  0:41         ` patch 'app/testpmd: cleanup cleanly from signal' " luca.boccassi
2023-03-22  0:41         ` patch 'app/testpmd: fix interactive mode on Windows' " luca.boccassi
2023-03-22  0:41         ` patch 'app/compress-perf: fix remaining data for ops' " luca.boccassi
2023-03-22  0:41         ` patch 'app/bbdev: check statistics failure' " luca.boccassi
2023-03-22  0:41         ` patch 'net/vhost: add missing newline in logs' " luca.boccassi
2023-03-22  0:41         ` patch 'net/virtio: remove address width limit for modern devices' " luca.boccassi
2023-03-22  0:41         ` patch 'net/e1000: fix saving of stripped VLAN TCI' " luca.boccassi
2023-03-22  0:41         ` patch 'net/i40e: fix MAC loopback on X722' " luca.boccassi
2023-03-22  0:41         ` patch 'net/iavf: fix device stop during reset' " luca.boccassi
2023-03-22  0:41         ` patch 'net/mlx5: fix hairpin Tx queue reference count' " luca.boccassi
2023-03-22  0:41         ` patch 'common/mlx5: use just sufficient barrier for Arm' " luca.boccassi
2023-03-22  0:41         ` patch 'bus/ifpga: fix devargs handling' " luca.boccassi
2023-03-22  0:41         ` patch 'net/ipn3ke: fix thread exit' " luca.boccassi
2023-03-22  0:41         ` patch 'net/ipn3ke: fix representor name' " luca.boccassi
2023-03-29  1:04           ` patch 'examples/qos_sched: fix config entries in wrong sections' " luca.boccassi
2023-03-29  1:04             ` patch 'net/mlx5: fix build with GCC 12 and ASan' " luca.boccassi
2023-03-29  1:04             ` patch 'net/mlx5: fix CQE dump for Tx' " luca.boccassi
2023-03-29  1:04             ` patch 'net/mlx5: fix sysfs port name translation' " luca.boccassi
2023-03-29  1:04             ` patch 'doc: fix code blocks in cryptodev guide' " luca.boccassi
2023-03-29  1:04             ` patch 'test/crypto: fix statistics error messages' " luca.boccassi
2023-03-29  1:04             ` patch 'pdump: fix build with GCC 12' " luca.boccassi
2023-03-29  1:04             ` patch 'acl: fix crash on PPC64 with GCC 11' " luca.boccassi
2023-03-29  1:04             ` patch 'doc: fix pipeline example path in user guide' " luca.boccassi
2023-03-29  1:04             ` patch 'doc: add Linux capability to access physical addresses' " luca.boccassi

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=20230223093715.3926893-31-luca.boccassi@gmail.com \
    --to=luca.boccassi@gmail.com \
    --cc=chenbo.xia@intel.com \
    --cc=ktraynor@redhat.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=stable@dpdk.org \
    /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).