mlx4: add dynamic LRO disable support
authorAmerigo Wang <amwang@redhat.com>
Mon, 21 Jun 2010 22:50:17 +0000 (22:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jun 2010 06:04:10 +0000 (23:04 -0700)
commitd2ef8590343f1f236f5f7f070fb4cd3f5c3ffb69
tree78be29bd5a1d14180c6b6e5fe828e553129cc0fe
parent958de1931cbfbcd9c0d425a2291a769a851f15d0
mlx4: add dynamic LRO disable support

This patch adds dynamic LRO diable support for mlx4 net driver.
It also fixes a bug of mlx4, which checks NETIF_F_LRO flag in rx
path without rtnl lock.

(I don't have mlx4 card, so only did compiling test. Anyone who wants
to test this is more than welcome.)

This is based on Neil's initial work too, and heavily modified based
on Stanislaw's suggestions.

Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Neil Horman <nhorman@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Reviewed-by: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_ethtool.c