projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5d828
)
xen/netback: use same error messages for same errors
author
Juergen Gross
<jgross@suse.com>
Wed, 29 Mar 2023 08:02:59 +0000
(10:02 +0200)
committer
Paolo Abeni
<pabeni@redhat.com>
Thu, 30 Mar 2023 13:39:23 +0000
(15:39 +0200)
Issue the same error message in case an illegal page boundary crossing
has been detected in both cases where this is tested.
Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Link:
https://lore.kernel.org/r/20230329080259.14823-1-jgross@suse.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/xen-netback/netback.c
patch
|
blob
|
history
diff --git
a/drivers/net/xen-netback/netback.c
b/drivers/net/xen-netback/netback.c
index 4943be4fd99d86d42d7636febd27bfb452b4c38c..c1501f41e2d825be75cf9b71a38cf1ecc64a2c6c 100644
(file)
--- a/
drivers/net/xen-netback/netback.c
+++ b/
drivers/net/xen-netback/netback.c
@@
-994,10
+994,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;
}