Skip to contentSkip to conversation

xen/netback: use same error messages for same errors

PATCH Applied Juergen Gross 4 participants 4 messages Mar 29, 2023 – Mar 30, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 xen/netback: use same error messages for same errors

Issue the same error message in case an illegal page boundary crossing has been detected in both cases where this is tested.

---
V2:
- new patch
V3:
- modify message text (Jan Beulich)

---
 drivers/net/xen-netback/netback.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/net/xen-netback/netback.c +2 -4
index 9ca4b69d3b39..dbaead243737 100644
@@ -996,10 +996,8 @@ static void xenvif_tx_build_gops(struct xenvif_queue *queue,
 
 		/* No crossing a page as the payload mustn't fragment. */
 		if (unlikely((txreq.offset + txreq.size) > XEN_PAGE_SIZE)) {
-			netdev_err(queue->vif->dev,
-				   "txreq.offset: %u, size: %u, end: %lu\n",
-				   txreq.offset, txreq.size,
-				   (unsigned long)(txreq.offset&~XEN_PAGE_MASK) + txreq.size);
+			netdev_err(queue->vif->dev, "Cross page boundary, txreq.offset: %u, size: %u\n",
+				   txreq.offset, txreq.size);
 			xenvif_fatal_tx_err(queue->vif);
 			break;
 		}
Signature · 1 line
2.35.3
maintainer
#2 lore raw
In reply to Juergen Gross

Hello,

Quoted 5 lines · Juergen Gross

Issue the same error message in case an illegal page boundary crossing has been detected in both cases where this is tested.

As this was intended to be part of:

xen/netback: fix issue introduced recently

I'm going to apply this one on net, unless someone screams very loudly, very soon :)

thanks!

Paolo

#3 lore raw
In reply to Juergen Gross
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

Quoted 5 lines · On Wed, 29 Mar 2023 10:02:59 +0200 you wrote:

Issue the same error message in case an illegal page boundary crossing has been detected in both cases where this is tested.

Quoted 7 lines

---
V2:
- new patch
V3:
- modify message text (Jan Beulich)

[...]

Here is the summary with links:
- [v3] xen/netback: use same error messages for same errors

    https://git.kernel.org/netdev/net/c/2eca98e5b24d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html