I would suggest using error-drop unless the number of clock cycles saved by 
freeing packets directly somehow makes a first-order difference in your 
use-case.

The "error-drop" scheme results in more obvious packet tracer output, supports 
N different drop causes by construction, and yields better looking dispatch 
pcap traces. In cases where one might want to punt unhandled traffic, it's 
possible to do so.

FWIW... Dave


-----Original Message-----
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Christian Hopps
Sent: Tuesday, July 16, 2019 5:21 AM
To: vpp-dev <vpp-dev@lists.fd.io>
Cc: Christian Hopps <cho...@chopps.org>
Subject: [vpp-dev] Drop vs Free?

Hi vpp-dev,

I'm wondering if it is OK to collect the buffers I wish to drop together in my 
node and free them at the end vs sending them to a drop node. I am tracking the 
drops in my nodes error counter so I have a way to track them, but given there 
is real processing overhead to actually send them on to another specific drop 
node for processing I'm wondering if I'm missing something important here by 
not sending doing that.

Thanks,
Chris.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13508): https://lists.fd.io/g/vpp-dev/message/13508
Mute This Topic: https://lists.fd.io/mt/32488155/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to