commit | 7df13219d757054c49b62417479a3724621ca8ae | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Mon Sep 04 11:36:08 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 05 14:26:41 2017 -0700 |
tree | 2129c92584e1e80b460bb6ee7f9691d4bfe3b4f8 | |
parent | 9e776f225dcf741ff7e91d866be752d1660d2073 [diff] |
tun: reserve extra headroom only when XDP is set We reserve headroom unconditionally which could cause unnecessary stress on socket memory accounting because of increased trusesize. Fix this by only reserve extra headroom when XDP is set. Cc: Jakub Kicinski <kubakici@wp.pl> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>