[PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements.
Stephen Hemminger
stephen at networkplumber.org
Fri Jan 12 17:46:48 CET 2024
On Fri, 12 Jan 2024 19:18:21 +0530
madhuker.mythri at oracle.com wrote:
> struct ipv4_l3_l4_tuple v4_tuple = {
> - .src_addr = IPv4(*(src_dst_addr + 0),
> - *(src_dst_addr + 1),
> - *(src_dst_addr + 2),
> - *(src_dst_addr + 3)),
> - .dst_addr = IPv4(*(src_dst_addr + 4),
> - *(src_dst_addr + 5),
> - *(src_dst_addr + 6),
> - *(src_dst_addr + 7)),
> + .src_addr = bpf_ntohl(nh.iph.saddr),
> + .dst_addr = bpf_ntohl(nh.iph.daddr),
Not sure this is correct.
The RSS calculation (Toeplitz) expects that data is in network
byte order. See app/test/test_thash.c for example.
More information about the dev
mailing list