diff options
author | Fredrik Hallenberg | 2017-12-18 23:34:00 +0100 |
---|---|---|
committer | David S. Miller | 2017-12-19 20:12:15 +0100 |
commit | a1762456993893795030d911106a7650481db0ef (patch) | |
tree | f532d4d05070c3250acb0490523727bf14fdb694 /drivers/net/ethernet/stmicro/stmmac/norm_desc.c | |
parent | net: stmmac: Fix TX timestamp calculation (diff) | |
download | kernel-qcow2-linux-a1762456993893795030d911106a7650481db0ef.tar.gz kernel-qcow2-linux-a1762456993893795030d911106a7650481db0ef.tar.xz kernel-qcow2-linux-a1762456993893795030d911106a7650481db0ef.zip |
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/norm_desc.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/norm_desc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/norm_desc.c b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c index f817f8f36569..db4cee57bb24 100644 --- a/drivers/net/ethernet/stmicro/stmmac/norm_desc.c +++ b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c @@ -265,7 +265,7 @@ static u64 ndesc_get_timestamp(void *desc, u32 ats) return ns; } -static int ndesc_get_rx_timestamp_status(void *desc, u32 ats) +static int ndesc_get_rx_timestamp_status(void *desc, void *next_desc, u32 ats) { struct dma_desc *p = (struct dma_desc *)desc; |