Re:P4: open-source programming language for high-performance...
by birdier on Tuesday June 14, 2016 @08:03PM
(#11906356)
A possibility for it's use is directly in a application then.
For very high performance packet generation and processing the Linux kernel is sub-par because it's extremely complex and general purpose. There is just too much going on.
example:
Re:P4: open-source programming language for high-performance...
by readams on Wednesday June 15, 2016 @01:41PM
(#11910760)
There is work going on upstream to allow bypassing the entire network stack in the kernel using eBPF. Kernel bypass techniques though have been the gold standard in performance for quite a while, but they don't work well for container networking, so kernel networking is starting to become more relevant to people who care about performance.
Compiling to iptables would be incredibly slow and miss the advantages. Plus, p4 is more general than iptables so many p4 programs could not be expressed as iptables.