HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
vmware-archive
p4c-xdp
C2021–2021
vmware-archive / p4c-xdp · Archived

p4c-xdp

Backend for the P4 compiler targeting XDP

2Distinct people
2Mentions
0Explicit recommenders
170GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Backend for the P4 compiler targeting XDP

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2021-06-24 12:14:25 UTC to 2021-06-24 17:41:22 UTC.

012021-06-24 12:00:00 UTC to 2021-06-24 13:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 24, 12:002021-06-24 13:00:00 UTC to 2021-06-24 14:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-06-24 14:00:00 UTC to 2021-06-24 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJun 24, 14:002021-06-24 15:00:00 UTC to 2021-06-24 16:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-06-24 16:00:00 UTC to 2021-06-24 17:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-06-24 17:00:00 UTC to 2021-06-24 18:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 24, 17:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 24, 12:002021-06-24 12:00:00 UTC2021-06-24 13:00:00 UTC101
Jun 24, 13:002021-06-24 13:00:00 UTC2021-06-24 14:00:00 UTC000
Jun 24, 14:002021-06-24 14:00:00 UTC2021-06-24 15:00:00 UTC000
Jun 24, 15:002021-06-24 15:00:00 UTC2021-06-24 16:00:00 UTC000
Jun 24, 16:002021-06-24 16:00:00 UTC2021-06-24 17:00:00 UTC000
Jun 24, 17:002021-06-24 17:00:00 UTC2021-06-24 18:00:00 UTC101

What Hacker News says

2 sources
P4 and eBPF are not really competing in the same space. eBPF/XDP is a virtual kernel machine that you can program in restricted C. P4 is a language that specifies how a device should process packets. So P4 is compiled down into a target (for example, a switch or NIC), which then executes the code as specified by the programmer. The nice part about P4, compared to just working with the devices, is that it establishes a standard reference format for administration and control of packet processing. For example, Google is using P4 to test their switches (they talk about it in their keynote in this workshop [0]). The eBPF/XDP VM could be one of these P4 targets. You can write a P4 specification that is converted into eBPF byte code which is then loaded and executed. The reference P4 compiler even has a eBPF[1] and an XDP[2] back end. However,
Read the rest
those are currently not well maintained. Another problem is that the code generated from P4 is not as efficient as manually crafted eBPF byte code. With a little care this is all easily solvable. Disclaimer: I work in this space. [0]: https://opennetworking.org/2021-p4-workshop-content/ [1]: https://github.com/p4lang/p4c/tree/main/backends/ebpf [2]: https://github.com/vmware/p4c-xdp
In P4: Open-Source Programming Language for Protocol-Independent Packet Processing

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.