File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
drivers/net/ethernet/freescale/dpaa Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2120,14 +2120,22 @@ static int dpaa_a050385_wa(struct net_device *net_dev, struct sk_buff **s)
2120
2120
skb_copy_header (new_skb , skb );
2121
2121
new_skb -> dev = skb -> dev ;
2122
2122
2123
+ /* Copy relevant timestamp info from the old skb to the new */
2124
+ if (priv -> tx_tstamp ) {
2125
+ skb_shinfo (new_skb )-> tx_flags = skb_shinfo (skb )-> tx_flags ;
2126
+ skb_shinfo (new_skb )-> hwtstamps = skb_shinfo (skb )-> hwtstamps ;
2127
+ skb_shinfo (new_skb )-> tskey = skb_shinfo (skb )-> tskey ;
2128
+ if (skb -> sk )
2129
+ skb_set_owner_w (new_skb , skb -> sk );
2130
+ }
2131
+
2123
2132
/* We move the headroom when we align it so we have to reset the
2124
2133
* network and transport header offsets relative to the new data
2125
2134
* pointer. The checksum offload relies on these offsets.
2126
2135
*/
2127
2136
skb_set_network_header (new_skb , skb_network_offset (skb ));
2128
2137
skb_set_transport_header (new_skb , skb_transport_offset (skb ));
2129
2138
2130
- /* TODO: does timestamping need the result in the old skb? */
2131
2139
dev_kfree_skb (skb );
2132
2140
* s = new_skb ;
2133
2141
You can’t perform that action at this time.
0 commit comments