praveingk / DPTP

Data-Plane Time synchronization Protocol (P4-Tofino & DPDK)
Apache License 2.0
23 stars 8 forks source link

How a single tofino switch is virtualized into two switches? #7

Open chocolate0515 opened 2 years ago

chocolate0515 commented 2 years ago

HI Sir Now it compiles smoothly. Thanks for your help But I would like to ask another question. How a single tofino switch is virtualized into two switches?

Scofield626 commented 2 years ago

Don't get lost by virtualization. In essence, what authors do is implementing a virtSwitch control at data plane and properly defining table entries (port, addr, in table_setup.py) to identify the logical/virtual switches. Btw, there is a couple of typos in table_setup.py, please refer to my issue.