aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWillem de Bruijn <[email protected]>2017-06-08 11:35:03 -0400
committerDavid S. Miller <[email protected]>2017-06-08 16:12:08 -0400
commitfff88030b3ff930ca7a3d74acfee0472f33887ea (patch)
tree090050d7065b9866927e15a678fd01f6209d471d /tools/perf/scripts/python
parent50430d1fcab8ca5a80645992e229881b35b505a7 (diff)
skbuff: only inherit relevant tx_flags
When inheriting tx_flags from one skbuff to another, always apply a mask to avoid overwriting unrelated other bits in the field. The two SKBTX_SHARED_FRAG cases clears all other bits. In practice, tx_flags are zero at this point now. But this is fragile. Timestamp flags are set, for instance, if in tcp_gso_segment, after this clear in skb_segment. The SKBTX_ANY_TSTAMP mask in __skb_tstamp_tx ensures that new skbs do not accidentally inherit flags such as SKBTX_SHARED_FRAG. Signed-off-by: Willem de Bruijn <[email protected]> Acked-by: Soheil Hassas Yeganeh <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions