Sorry, I figured it out. Each of the four packets incurs a table lookup and
I can add the counter per subscriber on table hit/miss.

 

Hemant

 

From: [email protected] <[email protected]> On Behalf Of hemant via
lists.fd.io
Sent: Wednesday, March 17, 2021 6:28 PM
To: [email protected]
Subject: [vpp-dev] per subscriber counter conundrum?

 

My VPP plugin has a subscribers table.  Say, the number of subscriber in the
table are 100k. I know when the table lookup incurs a hit and I know what
subscriber it is and have uint32_t index to identify the subscriber.  In the
plugin's node_inline function, the table is looked up and packets are
forwarded.   If I have, say, 4 packets being processed with
vlib_validate_buffer_enqueue_x4(), my question is below.

 

What I am not sure of is, "are all four packets being processed belong to
the single subscriber that was looked up?".  If not, how do I support per
subscriber simple counter in VPP?

 

Regards,

 

Hemant

 

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18962): https://lists.fd.io/g/vpp-dev/message/18962
Mute This Topic: https://lists.fd.io/mt/81416372/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to