-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSA fixes for metadata fields class-of-service, timestamp, instance (#…
…939) * PSA fixes for metadata fields class-of-service, timestamp, instance For both unicast and multicast packets, copy the class_of_service field value from ingress to egress. For all ingress packets, whether new from a port, recirculated, or resubmitted, initialize the ingress_timestamp in one common place, just before ingress parsing begins, as suggested in the PSA specification. Similarly for the egress_timestamp field initialized just before the egress parsing begins. For unicast packets, initialize the instance field seen by the egress code to 0, as required by the PSA spec. In the code for handling recirculated packets, eliminate some redundant initialization of ingress_port and packet_path fields for the ingress control. They were redundant because ingress processing always copied them from the pre-ingress-parser fields to the pre-ingress-control fields every time ingress processing was performed. Initialize the egress_port field sent as input to the ingress deparser. * PSA make log message for received port show the value of ingress_port This is the same as what was shown before this change for new packets received on an external port, but shows the recirculation port number for recirculated packets.
- Loading branch information
1 parent
24e3e41
commit 5f9ad70
Showing
1 changed file
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters