Re: [PATCH net-next] udp: avoid csum_partial() for validated skb

2016-06-01 Thread David Miller
From: Eric Dumazet Date: Tue, 31 May 2016 15:22:41 -0700 > From: Eric Dumazet > > In commit e6afc8ace6dd5 ("udp: remove headers from UDP packets before > queueing"), udp_csum_pull_header() helper was added but missed fact > that CHECKSUM_UNNECESSARY packets were now converted to CHECKSUM_NONE >

[PATCH net-next] udp: avoid csum_partial() for validated skb

2016-05-31 Thread Eric Dumazet
From: Eric Dumazet In commit e6afc8ace6dd5 ("udp: remove headers from UDP packets before queueing"), udp_csum_pull_header() helper was added but missed fact that CHECKSUM_UNNECESSARY packets were now converted to CHECKSUM_NONE and skb->csum_valid was set to 1 for them. Since csum_partial() is qu