<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Xdp on Shai Asher</title><link>https://slow-is-smooth.io/tags/xdp/</link><description>Recent content in Xdp on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 18 Dec 2022 09:00:00 +0200</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/xdp/index.xml" rel="self" type="application/rss+xml"/><item><title>Dropping Packets Before the Kernel Sees Them</title><link>https://slow-is-smooth.io/blog/dropping-packets-before-the-kernel-sees-them/</link><pubDate>Sun, 18 Dec 2022 09:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/dropping-packets-before-the-kernel-sees-them/</guid><description>&lt;p&gt;On Linux 6.1, one C function that reads a packet&amp;rsquo;s UDP destination port and decides whether to keep&#10;it ran in two places: in XDP, at the network driver, and in tc, one layer further up. Raced against&#10;iptables and nftables on one CPU of a virtual machine, the tc copy dropped 3.10 million packets a&#10;second, the best of the lot, and iptables&amp;rsquo; INPUT chain managed 2.19 million. XDP, the hook built to&#10;be the fastest place in the kernel to drop a packet, managed 2.10 million: the worst of the six&#10;filters, and no better than having no filter at all.&lt;/p&gt;</description></item></channel></rss>