On Tue, Sep 17, 2019 at 10:23:01PM +0200, Iwan R Timmer wrote: > Add support for configuring port mirroring through the cls_matchall > classifier. We do a full ingress and/or egress capture towards the > capture port, configured with set_egress_port.
Hi Iwan This looks good as far as it goes. Have you tried adding/deleting multiple port mirrors? Do we need to limit how many are added. A quick look at the datasheet, you can define one egress mirror port and one ingress mirror port. I think you can have multiple ports mirroring ingress to that one ingress mirror port. And you can have multiple port mirroring egress to the one egress mirror port. We should add code to check this, and return -EBUSY if the existing configuration prevents a new mirror being configured. Thanks Andrew