Use local key/leaf definition instead of bpf_tunnel_key
Even after fixing the nested union issue in the preceding commits, this example was failing. The reason was that the kernel was filling in all bits of the bpf_tunnel_key, which in recent kernels includes non-zero fields such as ttl. That non-zero field would break the lookup in the tunkey2if table, which was populated assuming all extra bytes would be zero. Fix it by defining a simpler key structure, and copy the required fields out from the local variable. Fixes: #510
Showing
Please register or sign in to comment