Searched hist:"7744 b5f3693cc06695cb9d6667671c790282730f" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | pktgen.c | diff 7744b5f3693cc06695cb9d6667671c790282730f Wed Feb 04 16:08:50 CST 2015 Sabrina Dubroca <sd@queasysnail.net> pktgen: fix UDP checksum computation
This patch fixes two issues in UDP checksum computation in pktgen.
First, the pseudo-header uses the source and destination IP addresses. Currently, the ports are used for IPv4.
Second, the UDP checksum covers both header and data. So we need to generate the data earlier (move pktgen_finalize_skb up), and compute the checksum for UDP header + data.
Fixes: c26bf4a51308c ("pktgen: Add UDPCSUM flag to support UDP checksums") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
|