Skip to content

Commit

Permalink
Updated to support SDE 9.9
Browse files Browse the repository at this point in the history
SDE version 9.7 changed the name of the pktgen table from $PKTGEN_PORT_CFG to tf1.pktgen.port_cfg
  • Loading branch information
AmedeoSapio committed Jul 9, 2022
1 parent 6933744 commit 1fc7e67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev_root/controller/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, target, gc, bfrt_info):
self.loopback_ports = []

# PktGen table to configure pktgen ports in loopback mode
self.pktgen_port_cfg_table = bfrt_info.table_get('$PKTGEN_PORT_CFG')
self.pktgen_port_cfg_table = bfrt_info.table_get('tf1.pktgen.port_cfg')

def get_dev_port(self, fp_port, lane):
''' Convert front-panel port to dev port.
Expand Down
4 changes: 2 additions & 2 deletions dev_root/p4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The SwitchML P4 program is written in P4-16 for the [Tofino Native Architecture (TNA)](https://github.com/barefootnetworks/Open-Tofino) and the controller uses the Barefoot Runtime Interface (BRI) to program the switch.

## 1. Requirements
The P4 code has been tested on Intel P4 Studio 9.6.0.
The P4 code has been tested on Intel P4 Studio 9.9.0.

For details on how to obtain and compile P4 Studio, we refer you to the official [Intel documentation](https://www.intel.com/content/www/us/en/products/network-io/programmable-ethernet-switch.html).

Expand Down Expand Up @@ -67,4 +67,4 @@ With RDMA, the packet layout is slightly different depending on which part of a
The P4 program does not check nor update the ICRC value, so the end-host servers should disable ICRC checking.

## References
<a id="1">[1]</a> Intel® P4 Studio Software Development Environment (SDE) 9.6.0 Installation Guide
<a id="1">[1]</a> Intel® P4 Studio Software Development Environment (SDE) Installation Guide

0 comments on commit 1fc7e67

Please sign in to comment.