summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcap_io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcap_io.h b/pcap_io.h
index b53dcb2..8eb503a 100644
--- a/pcap_io.h
+++ b/pcap_io.h
@@ -632,6 +632,8 @@ static inline void pcap_prepare_header(struct pcap_filehdr *hdr, uint32_t magic,
}
static const bool pcap_supported_linktypes[LINKTYPE_MAX] __maybe_unused = {
+ /* tunX captures from wireshark/tcpdump, non-portable */
+ [101] = true, [102] = true, [103] = true,
[LINKTYPE_NULL] = true,
[LINKTYPE_EN10MB] = true,
[LINKTYPE_EN3MB] = true,
rivate-remove&id=62491622db9c9b6a51630f4c8c653f59c2c834f9'>62491622db9c9b6a51630f4c8c653f59c2c834f9 (diff)
greybus: interface: prevent reactivation during removal
Make sure to prevent an interface that is going away from being reactivated. This is needed to preemptively close a race between the upcoming feature to reactivate a powered-down interface and physical removal (i.e. module_removed event processing) as well as logical removal (e.g. the current system-suspend hack). Reviewed-by: Sandeep Patil <sspatil@google.com> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Patrick Titiano <ptitiano@baylibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging')