]> git.baikalelectronics.ru Git - kernel.git/commit
ravb: fix software timestamping
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Sun, 27 Mar 2016 10:22:02 +0000 (12:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2016 02:41:37 +0000 (22:41 -0400)
commitab39bad69481d5fc84c5c89f6cec8347b2082433
treedc5dc7811f37e04cf4762b0a6c53ecd705cf7f6e
parente5f1984375d3f7cd2ecd57ce3cbbc52122533dfc
ravb: fix software timestamping

In ravb_start_xmit dont call skb_tx_timestamp only when hardware
timestamping is requested: in the latter case software timestamps are
suppressed and thus the call of skb_tx_timestamp does not have any effect.

Instead call skb_tx_timestamp unconditionally in ravb_start_xmit, since
the function checks itself if software timestamping is required or should
be skipped due to hardware timestamping.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c