]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipt_REJECT: postpone the checksum calculation.
authorChangli Gao <xiaosuo@gmail.com>
Mon, 5 Jul 2010 08:39:17 +0000 (10:39 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 5 Jul 2010 08:39:17 +0000 (10:39 +0200)
commit51eab4d2dbf658158170a56b61d98b7628b2a7b5
treeb12e3f7b10ccb3a5774cbcec9a1c0ad6dbc36000
parent9b90548e3c7c1b7e04180a7c81d48ab7856ec936
netfilter: ipt_REJECT: postpone the checksum calculation.

postpone the checksum calculation, then if the output NIC supports checksum
offloading, we can utlize it. And though the output NIC doesn't support
checksum offloading, but we'll mangle this packet, this can free us from
updating the checksum, as the checksum calculation occurs later.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/ipt_REJECT.c