]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88cea458041f8de246b59a0fdb06f7f2018520f9
treef532d4d05070c3250acb0490523727bf14fdb694
parentb8d1560f8443bf3f2b7bb61ce61372437e65c3f6
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