]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: fix the rx csum feature
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Mon, 1 Sep 2014 07:17:52 +0000 (09:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 04:51:29 +0000 (21:51 -0700)
commitcb126058dcf44bbf813bd807913b1dcd557d7f6f
tree250714e39756cc16c9951c50b1c3347ff9f91721
parent1b5996f5e663f6c980444a6b0f2e620e27df6225
stmmac: fix the rx csum feature

For new GMACs it is possible to turn-on/off the COE.
In the current driver, when disabled the Rx-checksum
via ethtool, the tool reported that csum was disabled
but the HW continued to set the IPC. Indeed this is
because the fix_features allows this. So the patch
fixes this problem by adding the set_features.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c