diff options
author | Patrick Rohr <[email protected]> | 2022-09-20 12:48:25 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-09-23 12:02:03 +0100 |
commit | 195624d9c26b64c6856863da30ec578a790feec4 (patch) | |
tree | b59b33f799ab16cd2bf18fee50074a58f8e2db5b /tools/perf/scripts/python/intel-pt-events.py | |
parent | 504c25cb76a9cb805407f7701b25a1fbd48605fa (diff) |
tun: support not enabling carrier in TUNSETIFF
This change adds support for not enabling carrier during TUNSETIFF
interface creation by specifying the IFF_NO_CARRIER flag.
Our tests make heavy use of tun interfaces. In some scenarios, the test
process creates the interface but another process brings it up after the
interface is discovered via netlink notification. In that case, it is
not possible to create a tun/tap interface with carrier off without it
racing against the bring up. Immediately setting carrier off via
TUNSETCARRIER is still too late.
Signed-off-by: Patrick Rohr <[email protected]>
Cc: Maciej Żenczykowski <[email protected]>
Cc: Lorenzo Colitti <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Nicolas Dichtel <[email protected]>
Reviewed-by: Maciej Żenczykowski <[email protected]>
Acked-by: Jason Wang <[email protected]>
Reviewed-by: Nicolas Dichtel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions