From: Inaky Perez-Gonzalez Date: Tue, 29 Sep 2009 23:28:24 +0000 (-0700) Subject: wimax/i2400m: fix race condition with tcpdump et al X-Git-Tag: v2.6.33-rc1~388^2~487^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9835fd84990ca253c5b625005717a9be492788c0;p=pandora-kernel.git wimax/i2400m: fix race condition with tcpdump et al tcpdump and friends were not being able to decode packets sent via WiMAX; they had a zero ethernet type, even when the stack was properly sending them to the device with the right type. It happens that the driver was overwriting the (fake) ethernet header for creating the hardware header and that was bitting the cloning used by tcpdump (et al) to look into the packets. Use pkskb_expand_head() [method copied from the e1000 driver] to fix. Thanks to Herbert Xu and Andi Kleen for helping to diagnose and pointing to the right fix. Cc: Herbert Xu Cc: Andi Kleen Signed-off-by: Inaky Perez-Gonzalez --- Reading git-diff-tree failed