5.3. SA Lookup and Update
The main function of SA Lookup is to perform lookup to the SADB and retrieve SA for subsequent processing. SA Lookup receives packets from the Packet Parser/Classifier and allocates the packet into the Packet Buffer. It then schedules a lookup and waits for the completion.
For plaintext packet, the 2 bytes Ethertype from L2 packet is replaced with the MACsec header once the SA Lookup is completed. The packet search rate performance and lookups per second meet the 200G throughput requirement.