net: stmmac: Fix bad RX timestamp extraction
authorFredrik Hallenberg <megahallon@gmail.com>
Mon, 18 Dec 2017 22:34:00 +0000 (23:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 19:12:15 +0000 (14:12 -0500)
commita1762456993893795030d911106a7650481db0ef
treef532d4d05070c3250acb0490523727bf14fdb694
parent200922c93f008e03ddc804c6dacdf26ca1ba86d7
net: stmmac: Fix bad RX timestamp extraction

As noted in dwmac4_wrback_get_rx_timestamp_status the timestamp is found
in the context descriptor following the current descriptor. However the
current code looks for the context descriptor in the current
descriptor, which will always fail.

Signed-off-by: Fredrik Hallenberg <megahallon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c
drivers/net/ethernet/stmicro/stmmac/enh_desc.c
drivers/net/ethernet/stmicro/stmmac/norm_desc.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c