| .. | .. |
|---|
| 5 | 5 | #include <linux/tcp.h> |
|---|
| 6 | 6 | #include <linux/udp.h> |
|---|
| 7 | 7 | #include <linux/vmalloc.h> |
|---|
| 8 | +#include <net/pkt_sched.h> |
|---|
| 8 | 9 | |
|---|
| 9 | 10 | /* ENETC overhead: optional extension BD + 1 BD gap */ |
|---|
| 10 | 11 | #define ENETC_TXBDS_NEEDED(val) ((val) + 2) |
|---|
| .. | .. |
|---|
| 384 | 385 | if (skb_shinfo(skb)->tx_flags & SKBTX_IN_PROGRESS) { |
|---|
| 385 | 386 | memset(&shhwtstamps, 0, sizeof(shhwtstamps)); |
|---|
| 386 | 387 | shhwtstamps.hwtstamp = ns_to_ktime(tstamp); |
|---|
| 387 | | - /* Ensure skb_mstamp_ns, which might have been populated with |
|---|
| 388 | | - * the txtime, is not mistaken for a software timestamp, |
|---|
| 389 | | - * because this will prevent the dispatch of our hardware |
|---|
| 390 | | - * timestamp to the socket. |
|---|
| 391 | | - */ |
|---|
| 392 | | - skb->tstamp = ktime_set(0, 0); |
|---|
| 388 | + skb_txtime_consumed(skb); |
|---|
| 393 | 389 | skb_tstamp_tx(skb, &shhwtstamps); |
|---|
| 394 | 390 | } |
|---|
| 395 | 391 | } |
|---|