Closed Master-COLLiDER closed 1 year ago
Hi,
You can only create one copy of the packet. In order to create more clones you need to somehow do that in your P4 code logic. To clone more than one packet, you will need to trigger another cloning when the cloned packet is processed again at the egress.
You can only create one copy of the packet. In order to create more clones you need to somehow do that in your P4 code logic. To clone more than one packet, you will need to trigger another cloning when the cloned packet is processed again at the egress.
Thank your @edgar-costa. I have understood now. I will try CloneType.E2E in egress.
Can we not use clone3 twice to clone packet two times and send it to controller?
When I use clone3 twice then only second clone is reached the controller and the sniff function calls the recv_msg_cpu once.
here is my controller code to sniff packet from cpu port the recv_msg_cpu() function is used to handle the packets
also in the p4 code
And rest I am handling in
control egress