Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tile: make "tile_net.custom" a proper bool module parameter

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Chris Metcalf and committed by
David S. Miller
4aa02644 2c7d04a9

+5 -5
+5 -5
drivers/net/ethernet/tile/tilegx.c
··· 256 256 /* The actual cpus in "network_cpus". */ 257 257 static struct cpumask network_cpus_map; 258 258 259 - /* If "loopify=LINK" was specified, this is "LINK". */ 259 + /* If "tile_net.loopify=LINK" was specified, this is "LINK". */ 260 260 static char *loopify_link_name; 261 261 262 - /* If "tile_net.custom" was specified, this is non-NULL. */ 263 - static char *custom_str; 262 + /* If "tile_net.custom" was specified, this is true. */ 263 + static bool custom_flag; 264 264 265 265 /* If "tile_net.jumbo=NUM" was specified, this is "NUM". */ 266 266 static uint jumbo_num; ··· 323 323 /* The "tile_net.custom" argument causes us to ignore the "conventional" 324 324 * classifier metadata, in particular, the "l2_offset". 325 325 */ 326 - module_param_named(custom, custom_str, charp, 0444); 326 + module_param_named(custom, custom_flag, bool, 0444); 327 327 MODULE_PARM_DESC(custom, "indicates a (heavily) customized classifier"); 328 328 329 329 /* The "tile_net.jumbo" argument causes us to support "jumbo" packets, ··· 501 501 } 502 502 503 503 /* Get the "l2_offset", if allowed. */ 504 - l2_offset = custom_str ? 0 : gxio_mpipe_idesc_get_l2_offset(idesc); 504 + l2_offset = custom_flag ? 0 : gxio_mpipe_idesc_get_l2_offset(idesc); 505 505 506 506 /* Get the VA (including NET_IP_ALIGN bytes of "headroom"). */ 507 507 va = tile_io_addr_to_va((unsigned long)idesc->va);