Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp833993ybl; Tue, 13 Aug 2019 03:25:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzecAisrvFNSxV3RUZ7wZUjsTFeZfhJ35HR+fqFpcwyS3gP43CzN6Fu2lVxcvSYRiG1DnjZ X-Received: by 2002:a17:902:b604:: with SMTP id b4mr21723196pls.94.1565691928373; Tue, 13 Aug 2019 03:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565691928; cv=none; d=google.com; s=arc-20160816; b=nuYT0FFPBXheTSmajApdjf/CIEAWG02Pm+pR0DinsjllaXtXwdPXXFLLvUYrOsYTff RLpC2Pxu5PTr2Tx8wePQpuieMX9UlUx2DTtX/w9edjaWt2UN3091NtXKPkTUfbqZ7WSQ hQV+eSNFBrk2HCMYr2T+zL43GvPT5Pa5AXqTgAQ61/CKQWB14vGmVQQCqqowuF2/quZh j3PVB2qsN7JSUFCkKgfEFXwcXLglJfRbxV2fAf9qCt9feFxdhand0/wx8kP+m5fh2RB7 tYoShdJfwKO6gsPuiC6K+7Vz6l8jx6q8FUyrU8wv3yAXYEoPx4fyRCe9fPa6dLR2dxrX H9lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=QNDFND62EBxa/CZRfT2L528o2r4UiKoyt1lXZ8Vl8r0=; b=gJvzT5oQWWXLNqE1qV/ih/HPzFsQ75J4HexX2vuz4aBxMPlKN/xKCOpsyNbmDnFXf0 v8rb3Vfj9xdm367RMrfVErjGyTTgthj/nt+63h1uEABWf3F06/4cvDmbesMz14B6vpSN tnTOGk5gK6/HPB2/WFeVRpD9y0gJVkGmkaB7phLU3TNS9ndwXf5FQsVP3RFHOrcOTU9F q7YJwl+Ale13hUd1HNz62YEO6WN3WsG6JIMpmrJCdngobby0i36ysFmWCdEj2qU8wwT5 T6KeA6/qHWdwJ6N7C2ZAI/ieAzS1X+QXdR0WLg0jqfK/t20plWEAobNz7mx7GrXrLxsA CqVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sv074q9r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si666110pjo.91.2019.08.13.03.25.12; Tue, 13 Aug 2019 03:25:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sv074q9r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728704AbfHMKXt (ORCPT + 99 others); Tue, 13 Aug 2019 06:23:49 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42317 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727632AbfHMKXs (ORCPT ); Tue, 13 Aug 2019 06:23:48 -0400 Received: by mail-lf1-f67.google.com with SMTP id s19so13706180lfb.9 for ; Tue, 13 Aug 2019 03:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QNDFND62EBxa/CZRfT2L528o2r4UiKoyt1lXZ8Vl8r0=; b=Sv074q9r6jjjV52+0QfZzuE3FVJ3Gnln117xHMSh0yUvexXHce7Ca19L/ufyAwW2HO GIClTLInezjob7m5kYcfJp06RDsK5LbIt1PVa0yyOiPjYGT1MX0emf5Qw+8LsdQmqD4G i7TyVRxmOnXFrQ2F1yS5yYC1UD4dqbZoqyS8f1FFm8zfVPnI/i10qZFH7zRYx62ei9PA ouW68VPvY60rLwI0xusK8FygNzR41KW2tS6pxLqHVQUr1qWFq5yzk6VczQGboJWjG7lI 7+bMfcre/Fj5GJ8/+vMBLq84HkDazNq5iFBJTRQXEf934J6KXvaTZe8jxZMyBQKNoSGU V00Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QNDFND62EBxa/CZRfT2L528o2r4UiKoyt1lXZ8Vl8r0=; b=IRGkmBviEj3Rxs5cGrSOaQWRoN+qXj+A5PiPoijGs5xWpdb2sQ6UL58RLxsW9ia3Ru cXWdYXkyog2nwqBoj/NfeyRfX7Nx5ARmVe4uZIQvRqGVKwp/qEmuSn0I9ad9luTjVBaN FOliSSjbyyQwqFUwcSaMLTogr6FkxJ1A3L3ettTypwnwfIUiO8WxIzT8EiZiSI4kzbmm 5p4ef+7TEtBNF/q2M5BPLpf4QkToZeKZXS0+qtmhR4R7cQhwFe0M5h7n051zFMhsbihE vxjn2SQ1Bqjc6CK1A7fN9DDLoYrM4ZC/c0ljEfQYLEUKpp12s4Z6aHmNsBytFvsl/TKy /plg== X-Gm-Message-State: APjAAAXs9IfZOL3V2Y5CYDD0tt8CmZeCvlCST8kT4Un6J0xubn/vc8mB Mmwq0DIgpXsiuHu0+d7XkUpC9g== X-Received: by 2002:a19:c213:: with SMTP id l19mr21590844lfc.83.1565691826113; Tue, 13 Aug 2019 03:23:46 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id e87sm24796942ljf.54.2019.08.13.03.23.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 13 Aug 2019 03:23:45 -0700 (PDT) From: Ivan Khoronzhuk To: magnus.karlsson@intel.com, bjorn.topel@intel.com Cc: davem@davemloft.net, hawk@kernel.org, john.fastabend@gmail.com, jakub.kicinski@netronome.com, daniel@iogearbox.net, netdev@vger.kernel.org, bpf@vger.kernel.org, xdp-newbies@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH bpf-next 0/3] xdpsock: allow mmap2 usage for 32bits Date: Tue, 13 Aug 2019 13:23:15 +0300 Message-Id: <20190813102318.5521-1-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset contains several improvements for af_xdp socket umem mappings for 32bit systems. Also, there is one more patch outside of othis series that can be applied to another tree and related to mmap2 af_xdp umem offsets: "mm: mmap: increase sockets maximum memory size pgoff for 32bits" https://lkml.org/lkml/2019/8/12/549 Based on bpf-next/master Ivan Khoronzhuk (3): libbpf: add asm/unistd.h to xsk to get __NR_mmap2 xdp: xdp_umem: replace kmap on vmap for umem map samples: bpf: syscal_nrs: use mmap2 if defined net/xdp/xdp_umem.c | 16 ++++++++++++---- samples/bpf/syscall_nrs.c | 5 +++++ samples/bpf/tracex5_kern.c | 11 +++++++++++ tools/lib/bpf/xsk.c | 1 + 4 files changed, 29 insertions(+), 4 deletions(-) -- 2.17.1