mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
net: macb driver, check for SKBTX_HW_TSTAMP
Make sure SKBTX_HW_TSTAMP (i.e. SOF_TIMESTAMPING_TX_HARDWARE) has been enabled for this skb. It does fix the issue where normal socks that aren't expecting a timestamp will not wake up on select, but when a user does want a SOF_TIMESTAMPING_TX_HARDWARE it does work. Signed-off-by: Paul Thomas <pthomas8589@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
738de00cda
commit
a62520473f
1 changed files with 3 additions and 1 deletions
|
@ -898,7 +898,9 @@ static void macb_tx_interrupt(struct macb_queue *queue)
|
||||||
|
|
||||||
/* First, update TX stats if needed */
|
/* First, update TX stats if needed */
|
||||||
if (skb) {
|
if (skb) {
|
||||||
if (gem_ptp_do_txstamp(queue, skb, desc) == 0) {
|
if (unlikely(skb_shinfo(skb)->tx_flags &
|
||||||
|
SKBTX_HW_TSTAMP) &&
|
||||||
|
gem_ptp_do_txstamp(queue, skb, desc) == 0) {
|
||||||
/* skb now belongs to timestamp buffer
|
/* skb now belongs to timestamp buffer
|
||||||
* and will be removed later
|
* and will be removed later
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue