summaryrefslogtreecommitdiffstats
path: root/net/xdp
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2019-09-18 09:57:39 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2019-09-19 14:23:41 +0200
commit733ef7f056a5e23b66e8e7bb3508ca882db388f0 (patch)
tree1ba4a5c5ffc42b18a32d43ed6220476ed2e48c23 /net/xdp
parenta0791f0df7d212c245761538b17a9ea93607b667 (diff)
downloadlinux-733ef7f056a5e23b66e8e7bb3508ca882db388f0.tar.bz2
xsk: relax UMEM headroom alignment
This patch removes the 64B alignment of the UMEM headroom. There is really no reason for it, and having a headroom less than 64B should be valid. Fixes: c0c77d8fb787 ("xsk: add user memory registration support sockopt") Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/xdp')
-rw-r--r--net/xdp/xdp_umem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/xdp/xdp_umem.c b/net/xdp/xdp_umem.c
index 947b8ff0227e..cdaef54d48be 100644
--- a/net/xdp/xdp_umem.c
+++ b/net/xdp/xdp_umem.c
@@ -383,8 +383,6 @@ static int xdp_umem_reg(struct xdp_umem *umem, struct xdp_umem_reg *mr)
return -EINVAL;
}
- headroom = ALIGN(headroom, 64);
-
size_chk = chunk_size - headroom - XDP_PACKET_HEADROOM;
if (size_chk < 0)
return -EINVAL;