vmware-archive / p4c-xdp

Backend for the P4 compiler targeting XDP
Apache License 2.0
171 stars 26 forks source link

Reimplement linux/samples xdp programs in P4 #93

Open fruffy opened 5 years ago

fruffy commented 5 years ago

A nice way to show the usefulness of the compiler is to reimplement most of the xdp examples in the /linux/samples folder in pure P4 code. This is also a good way to determine discrepancies or detect missing features.

williamtu commented 5 years ago

I think we have one, which does the MAC address swapping and return XDP_TX

williamtu commented 5 years ago

I think we have one, which does the MAC address swapping and return XDP_TX

fruffy commented 5 years ago

Ha yes, I actually got the idea when reading the performance section in the paper. It is a neat comparison.