misc: do not capture tx packets twice 58/33158/4
authorBenoît Ganne <bganne@cisco.com>
Thu, 15 Jul 2021 17:21:31 +0000 (19:21 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 10 Aug 2021 15:03:13 +0000 (15:03 +0000)
commit1433185908daf98deb0a8f43c303b99382a87442
tree2a6d81adafbcb08717cfbbe561f1088b4fdb9180
parent31a4aa7b354dcef292c0ddaf8fbae915938a5d23
misc: do not capture tx packets twice

When a packet goes through interface-output, whether it should be
captured or not will be evaluated twice: in interface-output and in
interface-output-template (<interface_name>-out) node.
interface-output should only capture packets if there is an interface
filter, otherwise it should defer evaluation to
interface-output-template.

Type: fix

Change-Id: Ia720c5d184a236335e1d7d44d8c04caf87af5630
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/interface_output.c