Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

From: David Miller
Date: Fri Aug 30 2019 - 02:18:57 EST


From: Jiri Pirko <jiri@xxxxxxxxxxx>
Date: Fri, 30 Aug 2019 08:13:27 +0200

> In fact, I have usecase where I need to see only slow-path traffic by
> wireshark, not all packets going through hw.

This could be an attribute in the descriptor entries for the packets
provided to userspace, and BPF filters could act on these as well.

Switch network devices aren't special, promiscuous mode means all
packets on the wire that you are attached.

This talk about special handling of "trapping" is a strawman.