diff options
author | Fredrik Hallenberg <megahallon@gmail.com> | 2017-12-18 23:34:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-19 14:12:15 -0500 |
commit | a1762456993893795030d911106a7650481db0ef (patch) | |
tree | f532d4d05070c3250acb0490523727bf14fdb694 /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | 200922c93f008e03ddc804c6dacdf26ca1ba86d7 (diff) | |
download | linux-a1762456993893795030d911106a7650481db0ef.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index e1e5ac053760..ce2ea2d491ac 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -409,7 +409,7 @@ struct stmmac_desc_ops { /* get timestamp value */ u64(*get_timestamp) (void *desc, u32 ats); /* get rx timestamp status */ - int (*get_rx_timestamp_status) (void *desc, u32 ats); + int (*get_rx_timestamp_status)(void *desc, void *next_desc, u32 ats); /* Display ring */ void (*display_ring)(void *head, unsigned int size, bool rx); /* set MSS via context descriptor */ |