aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe
diff options
context:
space:
mode:
authorEd Cashin <ecashin@coraid.com>2012-12-17 19:03:45 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 20:15:24 -0500
commit2292a7e109d28ffd70ad060b241f9bd2a687dfa0 (patch)
treeb18d33ea202c97880c76ae4b7943a233b3936d64 /drivers/block/aoe
parent3a0c40d2d29e476ece583540e4f11276e0f36d5f (diff)
aoe: err device: include MAC addresses for unexpected responses
The /dev/etherd/err character device provides low-level information about normal but sometimes interesting AoE command retransmits and "unexpected responses", i.e., responses for packets that have already been retransmitted. This change adds MAC addresses to the messages about unexpected responses, so that when they occur, it's more easy to determine the network paths to which they belong. Signed-off-by: Ed Cashin <ecashin@coraid.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/aoe')
-rw-r--r--drivers/block/aoe/aoecmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index f849fa2471ca..6ea27fd8954d 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -1204,12 +1204,14 @@ aoecmd_ata_rsp(struct sk_buff *skb)
1204 spin_unlock_irqrestore(&d->lock, flags); 1204 spin_unlock_irqrestore(&d->lock, flags);
1205 aoedev_put(d); 1205 aoedev_put(d);
1206 snprintf(ebuf, sizeof(ebuf), 1206 snprintf(ebuf, sizeof(ebuf),
1207 "%15s e%d.%d tag=%08x@%08lx\n", 1207 "%15s e%d.%d tag=%08x@%08lx s=%pm d=%pm\n",
1208 "unexpected rsp", 1208 "unexpected rsp",
1209 get_unaligned_be16(&h->major), 1209 get_unaligned_be16(&h->major),
1210 h->minor, 1210 h->minor,
1211 get_unaligned_be32(&h->tag), 1211 get_unaligned_be32(&h->tag),
1212 jiffies); 1212 jiffies,
1213 h->src,
1214 h->dst);
1213 aoechr_error(ebuf); 1215 aoechr_error(ebuf);
1214 return skb; 1216 return skb;
1215 } 1217 }