> On 11.07.2021., at 17:10, satish amara <satishkam...@gmail.com > <mailto:satishkam...@gmail.com>> wrote: > > [Edited Message Follows] > > Hi, > I have a few questions about how synchronization is being done when there > are multiple workers/threads accessing the same data structure. > For example, IPsec headers have a seq number that gets incremented. > If we have IPsec flow and encrypting packets on VPP do we assume that packets > in the same flow go to the same core for encryption?
Yes, we handoff all packets to the owning thread. For fat flows we have crypto scheduler which offloads crypto operations to the multiple cores but order is still maintained by the owning thread. > > In IP lookup will find the adjacency and store it in the Opaque field.. Send > to another node to rewrite. Before the packet gets processed in the next node > if the interface is removed from the forwarding table. What will happen? > Lots of info being stored in Opaque fields for a couple of features. How the > code is making sure changes in the config data are taken care of when the > packets are still being processed by intermediate nodes in the graph. Interfaces are created/deleted under the barrier so there is not packets in flight. — Damjan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19745): https://lists.fd.io/g/vpp-dev/message/19745 Mute This Topic: https://lists.fd.io/mt/84132489/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-