netd_integration_test - increase bpf tethering test limit to mtu
This was always the intended configuration, but needed to wait
for kernel prebuilts to propagate out.
Test: atest, treehugger
Bug: 150736748
Change-Id: I97b8bb9c5005505519ec966586362c8acc0d3f35
diff --git a/tests/netd_test.cpp b/tests/netd_test.cpp
index 0e2fc70..77ff112 100644
--- a/tests/netd_test.cpp
+++ b/tests/netd_test.cpp
@@ -259,8 +259,7 @@
// Iterate over all packet sizes from minimal ipv6 packet to mtu.
// Tethering ebpf program should forward the packet from tun to tap interface.
// TUN is L3, TAP is L2, so it will add a 14 byte ethernet header.
- // TODO: remove -ETH_HLEN once all kernels are fixed and prebuilts published
- for (int pkt_size = 40; pkt_size <= mtu - ETH_HLEN; ++pkt_size) {
+ for (int pkt_size = 40; pkt_size <= mtu; ++pkt_size) {
rv = write(tun, pkt, pkt_size);
ASSERT_EQ(errno, 0);
ASSERT_EQ(rv, pkt_size);