You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example programs like vlan-switch.rs and hello-world.rs are nice when you want to write Rust code to generate packets to be processed, and expect packets out, but if there was an example Rust program that could take some kind of command line arguments like BMv2 simple_switch does for mapping port numbers to Linux interface names, e.g.
That means to make the P4 program port number 0 map to Linux interface veth0, port number 1 to veth4, etc. The syntax doesn't have to be precisely that, of course.
I don't know if it is the same system calls to connect to a veth vs. a TAP interface, but if supporting only one of those is easier than supporting both, I don't have a strong preference, but I know that veth can be used to create multi-switch virtual networks in a single Linux host. I'm not sure whether that is easy to do with TAP interfaces.
The text was updated successfully, but these errors were encountered:
The example programs like vlan-switch.rs and hello-world.rs are nice when you want to write Rust code to generate packets to be processed, and expect packets out, but if there was an example Rust program that could take some kind of command line arguments like BMv2 simple_switch does for mapping port numbers to Linux interface names, e.g.
That means to make the P4 program port number 0 map to Linux interface veth0, port number 1 to veth4, etc. The syntax doesn't have to be precisely that, of course.
I don't know if it is the same system calls to connect to a veth vs. a TAP interface, but if supporting only one of those is easier than supporting both, I don't have a strong preference, but I know that veth can be used to create multi-switch virtual networks in a single Linux host. I'm not sure whether that is easy to do with TAP interfaces.
The text was updated successfully, but these errors were encountered: