10 #include <linux/netdevice.h>
13 #include <asm/unaligned.h>
18 static char *aoe_errlist[] =
21 "unrecognized command code",
22 "bad argument parameter",
24 "config string present",
40 static int __init aoe_iflist_setup(
char *
str)
47 __setup(
"aoe_iflist=", aoe_iflist_setup);
60 spin_unlock_irq(&txlock);
62 spin_lock_irq(&txlock);
73 if (aoe_iflist[0] ==
'\0')
103 aoe_iflist[
size] = 0x00;
113 skb_queue_walk_safe(queue, skb, tmp) {
114 __skb_unlink(skb, queue);
117 spin_unlock_irqrestore(&txlock, flags);
142 sn =
sizeof(*h) +
sizeof(*ah);
143 if (skb->
len >= sn) {
144 sn -= skb_headlen(skb);
159 "%s%d.%d@%s; ecode=%d '%s'\n",
160 "aoe: error packet from ",
161 get_unaligned_be16(&h->
major),
163 h->
err, aoe_errlist[
n]);
178 pr_info(
"aoe: unknown AoE command type 0x%02x\n", h->
cmd);
197 skb_queue_head_init(&skbtxq);