bnx2x: fix UDP csum offload
authorVladislav Zolotarov <vladz@broadcom.com>
Sat, 23 Apr 2011 07:44:46 +0000 (07:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Apr 2011 22:13:17 +0000 (15:13 -0700)
commite39aece7d41119c3d63f390420e00ab4d2a526a9
tree4b81a22a533a4cc3ae2730305b9aea30cd635961
parent13f172ff26563995049abe73f6eeba828de3c09d
bnx2x: fix UDP csum offload

Fixed packets parameters for FW in UDP checksum offload flow.

Do not dereference TCP headers on non TCP frames.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_cmn.c