net: improve UDP/TCP checksum computation.
commit50dbce6538d10c8ec9c346fdc0ff76906ae48ebe
authorJean-Christophe Dubois <jcd@tribudubois.net>
Mon, 30 May 2016 17:25:46 +0000 (30 19:25 +0200)
committerJason Wang <jasowang@redhat.com>
Thu, 2 Jun 2016 02:42:30 +0000 (2 10:42 +0800)
treec7d08400bf9e400a2790dc4287396c77a8bd2dbc
parent7c375e229456cc06ceb7daf55353d3ad636bdc2f
net: improve UDP/TCP checksum computation.

 * based on Eth, UDP, TCP struct present in eth.h instead of hardcoded
   indexes and sizes.
 * based on various macros present in eth.h.

Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/checksum.c