Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp95512ybl; Thu, 15 Aug 2019 13:21:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNIr3OJwu8tGRb+cfz8H81VuG7GNdRTNQPnMFTzvJi2o7a+Vu/n0vY1mebl6N3QdCWKZ4r X-Received: by 2002:a63:5811:: with SMTP id m17mr4829476pgb.237.1565900502192; Thu, 15 Aug 2019 13:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565900502; cv=none; d=google.com; s=arc-20160816; b=dE4ut4st/dcDVcJGBY6tNcZkp4t0XtqXOXryO1kKQW+i3CssFgDyVPPOozyzAktlsF 7ppE0rDAFrfVb+QneaEv6g1HXyZ+UoOZ0QhZgNd4lEcNCATUSkQ2qgFCTdCoulOILzjq ucHu2YWJ/I8oH+KjnVvNHm0rYsXXX9gOxzH63dyKdrphaf8ii9ywRFSWqQa9jD1JVRYK bPDlLqpLW21Vc1pSUYnXO3emAwp687SaXfEW2x8PzNp+M6caNo8PUavaT0szZRTtl24D niypsKio5XlaWG8edvJuRn0mwOHfBBOfszbkopaRwiTktT6wkGoKxPujHBGFQfv9Q4jc xe6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ZeGqTCZgIo9uwaZlh6MKNVL/bq/IaifYMpQRRIOp6Bs=; b=nX/PLMBYdCdxihlogoqX3iGsqQZNX+lA4SkEEfHhGoRAHXpHOHlzgaui32ZR2EuSbu Mtjl1L68rA1SIPwsS3RKBLhzHle1dTQLD8eoEywBX3T7KnZCG/BBijOnowsmWwoldKIe lYgdYuMAe5ebww2qdvjYD07UCOM0l8HxmEfyymWAwpA1rCx255PUpjKy59NaZuOW3zis uzWZ3zhfwRmB7CRVqG8BrrVPRjtdRDP2+0tnnql5OJYxGY4rm+ONBsMIiRgJP5jplpmN 8HrtVDNCBupslkCejmNx6izqwIwrE58z80kYGkMZUKTI++K3cpPNnnWcbjHi8ZEWxijG ysAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck8si1549362pjb.16.2019.08.15.13.21.26; Thu, 15 Aug 2019 13:21:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732986AbfHOTke (ORCPT + 99 others); Thu, 15 Aug 2019 15:40:34 -0400 Received: from smtp.emailarray.com ([69.28.212.198]:64696 "EHLO smtp2.emailarray.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732410AbfHOTkd (ORCPT ); Thu, 15 Aug 2019 15:40:33 -0400 Received: (qmail 35549 invoked by uid 89); 15 Aug 2019 19:33:52 -0000 Received: from unknown (HELO ?172.20.53.208?) (amxlbW9uQGZsdWdzdmFtcC5jb21AMTk5LjIwMS42NC4xMzk=) (POLARISLOCAL) by smtp2.emailarray.com with (AES256-GCM-SHA384 encrypted) SMTP; 15 Aug 2019 19:33:52 -0000 From: "Jonathan Lemon" To: "Ivan Khoronzhuk" Cc: magnus.karlsson@intel.com, bjorn.topel@intel.com, 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, yhs@fb.com, andrii.nakryiko@gmail.com Subject: Re: [PATCH bpf-next v2 2/3] xdp: xdp_umem: replace kmap on vmap for umem map Date: Thu, 15 Aug 2019 12:33:44 -0700 X-Mailer: MailMate (1.12.5r5635) Message-ID: <2D5AB510-F3F1-4215-B9D6-CE576CC474B0@flugsvamp.com> In-Reply-To: <20190815121356.8848-3-ivan.khoronzhuk@linaro.org> References: <20190815121356.8848-1-ivan.khoronzhuk@linaro.org> <20190815121356.8848-3-ivan.khoronzhuk@linaro.org> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15 Aug 2019, at 5:13, Ivan Khoronzhuk wrote: > For 64-bit there is no reason to use vmap/vunmap, so use page_address > as it was initially. For 32 bits, in some apps, like in samples > xdpsock_user.c when number of pgs in use is quite big, the kmap > memory can be not enough, despite on this, kmap looks like is > deprecated in such cases as it can block and should be used rather > for dynamic mm. > > Signed-off-by: Ivan Khoronzhuk Acked-by: Jonathan Lemon