sfc: Validate IRQ moderation parameters in efx_init_irq_moderation()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 5 Sep 2011 07:43:04 +0000 (07:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2011 20:50:36 +0000 (16:50 -0400)
commit9e393b3060ec4ed7e7c7c5de154e08e48c98f623
tree94951da6c8fadeab0265aa825f6b95266a6ded60
parenta0c4faf5484b1fe38952d5b975f19e9f4b8f0f2b
sfc: Validate IRQ moderation parameters in efx_init_irq_moderation()

Add a range check, and move the check that RX and TX are consistent
from efx_ethtool_set_coalesce().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c