Re: [VLAN]: Avoid expensive divides

2008-01-08 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Tue, 08 Jan 2008 12:28:52 +0100 > We can avoid divides (as seen with CONFIG_CC_OPTIMIZE_FOR_SIZE=y on x86) > changing vlan_group_get_device()/vlan_group_set_device() id parameter > from signed to > unsigned. > > Signed-off-by: Eric Dumazet <[EMAIL PR

[VLAN]: Avoid expensive divides

2008-01-08 Thread Eric Dumazet
We can avoid divides (as seen with CONFIG_CC_OPTIMIZE_FOR_SIZE=y on x86) changing vlan_group_get_device()/vlan_group_set_device() id parameter from signed to unsigned. Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]> diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index 976d4b1.