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)
commitd2afb5bdffde3da175b9ced66f70a4b453103d71
tree250714e39756cc16c9951c50b1c3347ff9f91721
parent8a3cf39b72d12001d4cc67b69233a986921f190d
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