Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 365ecc30 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

Implement clat ebpf receive offload support for GRE & ESP



Yeah, it really is this simple.

Technically GRE is required to be at least 4 bytes in size (minimum
GRE header), and ESP is required to be at least 8 bytes in size
(SPI + Sequence number).  But there's no need to check.

Actually TCP/UDP could also be this simple since we never actually
look at nor modify the TCP/UDP headers (ie. the extra if condition
check to make sure we have the full TCP/UDP header could be removed).

However that's due to TCP/UDP pseudochecksum not requiring
adjustment because of netd's use of a checksum neutral ipv6 address.

While for GRE/ESP this is just a consequence of them not having
any fields requiring any updates during translation.

Test: builds
Bug: 139499742
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I02b58701f99c52e62b567e36e68b36cf644c5f5b
parent 0c4aecbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment