From: Ed Cashin Date: Tue, 18 Dec 2012 00:04:15 +0000 (-0800) Subject: aoe: allow comma separator in aoe_iflist value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a6c9ee93cd03604bd0e61066ce6aaf4bc0f1eb9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git aoe: allow comma separator in aoe_iflist value By default, the aoe driver uses any ethernet interface for AoE, but the aoe_iflist module parameter provides a convenient way to limit AoE traffic to a specific list of local network interfaces. This change allows a list to be specified using the comma character as a separator. For example, modprobe aoe aoe_iflist=eth2,eth3 Before, it was inconvenient to get the quoting right in shell scripts when setting aoe_iflist to have more than one network interface. Signed-off-by: Ed Cashin Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index 0f478dcfc199..f8d6c7e18a8b 100644 --- a/drivers/block/aoe/aoe.h +++ b/drivers/block/aoe/aoe.h @@ -11,7 +11,7 @@ #define AOE_PARTITIONS (16) #endif -#define WHITESPACE " \t\v\f\n" +#define WHITESPACE " \t\v\f\n," enum { AOECMD_ATA, diff --git a/drivers/block/aoe/aoenet.c b/drivers/block/aoe/aoenet.c index 2e47404ff008..71d3ea8d3006 100644 --- a/drivers/block/aoe/aoenet.c +++ b/drivers/block/aoe/aoenet.c @@ -31,7 +31,7 @@ enum { static char aoe_iflist[IFLISTSZ]; module_param_string(aoe_iflist, aoe_iflist, IFLISTSZ, 0600); -MODULE_PARM_DESC(aoe_iflist, "aoe_iflist=\"dev1 [dev2 ...]\""); +MODULE_PARM_DESC(aoe_iflist, "aoe_iflist=dev1[,dev2...]"); static wait_queue_head_t txwq; static struct ktstate kts;