]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: change ethtool_set_gro() to use ethtool_op_get_rx_csum
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 17 Sep 2010 18:56:18 +0000 (11:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Sep 2010 18:56:18 +0000 (11:56 -0700)
commitedbbc578502aafe86c97ef9e9c0864ede6b51aba
treedd3052a219d46b5f565efd30e6e54437340847ba
parent7558927826005a2444855cdac0a52035b300f672
ethtool: change ethtool_set_gro() to use ethtool_op_get_rx_csum

To be able to switch on GRO on a device, ethtool_set_gro() checks this
device provides a get_rx_csum() method.

Some devices dont provide this method, while they do support RX
checksumming.

This patch allows bonding to support GRO :

ethtool -K bond0 gro on

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c