aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-05-31 15:22:41 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-01 17:41:36 -0700
commit595d0b29463343c3be995d3948930b8231e5b8cd (patch)
tree5b9776e46e62588b659a61e9bbdd20614705a0fb /drivers/net/macvlan.c
parentravb: Add SET_RUNTIME_PM_OPS macro (diff)
downloadlinux-dev-595d0b29463343c3be995d3948930b8231e5b8cd.tar.xz
linux-dev-595d0b29463343c3be995d3948930b8231e5b8cd.zip
udp: avoid csum_partial() for validated skb
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 quite expensive, even for 8-byte area, it is worth adding a test. We also can use skb->data instead of udp_hdr() as we are pulling UDP headers, as it is sightly faster. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions