Преглед на файлове

aoe: ignore vendor extension AoE responses

The Welland ME-747K-SI AoE target generates unsolicited AoE responses that
are marked as vendor extensions.  Instead of ignoring these packets, the
aoe driver was generating kernel messages for each unrecognized response
received.  This patch corrects the behavior.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Reported-by: <karaluh@karaluh.pl>
Tested-by: <karaluh@karaluh.pl>
Cc: <stable@kernel.org>
Cc: Alex Buell <alex.buell@munted.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Ed Cashin преди 16 години
родител
ревизия
b6d6c51758
променени са 2 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 1 0
      drivers/block/aoe/aoe.h
  2. 2 0
      drivers/block/aoe/aoenet.c

+ 1 - 0
drivers/block/aoe/aoe.h

@@ -18,6 +18,7 @@
 enum {
 enum {
 	AOECMD_ATA,
 	AOECMD_ATA,
 	AOECMD_CFG,
 	AOECMD_CFG,
+	AOECMD_VEND_MIN = 0xf0,
 
 
 	AOEFL_RSP = (1<<3),
 	AOEFL_RSP = (1<<3),
 	AOEFL_ERR = (1<<2),
 	AOEFL_ERR = (1<<2),

+ 2 - 0
drivers/block/aoe/aoenet.c

@@ -142,6 +142,8 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt,
 		aoecmd_cfg_rsp(skb);
 		aoecmd_cfg_rsp(skb);
 		break;
 		break;
 	default:
 	default:
+		if (h->cmd >= AOECMD_VEND_MIN)
+			break;	/* don't complain about vendor commands */
 		printk(KERN_INFO "aoe: unknown cmd %d\n", h->cmd);
 		printk(KERN_INFO "aoe: unknown cmd %d\n", h->cmd);
 	}
 	}
 exit:
 exit: