Skip to content

Commit

Permalink
P4RT: PacketOut submitted to ingress uses meaningless egress port (#2063
Browse files Browse the repository at this point in the history
)

* P4RT: PacketOut submitted to ingress should not require valid egress port

* update readme

---------

Co-authored-by: marcushines <[email protected]>
Co-authored-by: Marcus Hines <[email protected]>
  • Loading branch information
3 people authored Sep 1, 2023
1 parent b598f69 commit 4e3953d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (traceroute *TraceroutePacketIO) GetPacketOut(srcMAC, dstMAC net.HardwareAd
Metadata: []*p4v1.PacketMetadata{
{
MetadataId: uint32(1), // "egress_port"
Value: []byte("0"),
Value: []byte("submit_to_ingress"),
},
{
MetadataId: uint32(2), // "submit_to_ingress"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# P4RT-5.2: Traceroute Packetout


## Summary

Verify that traceroute packets can be sent by the controller.

### Submit to ingress specific behavior

The egress port value must be set to a non empty value but will not be used. The
setting must not interpreted as the actaul egress port id.

## Procedure

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ func (traceroute *TraceroutePacketIO) GetPacketOut(srcMAC, dstMAC net.HardwareAd
Metadata: []*p4v1.PacketMetadata{
{
MetadataId: uint32(1), // "egress_port"
Value: []byte("0"),
Value: []byte("submit_to_ingress"),
},
{
MetadataId: uint32(2), // "submit_to_ingress"
Expand Down

0 comments on commit 4e3953d

Please sign in to comment.