Message ID | 20200520192103.355233-2-bjorn.topel@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=1jcI=7C=vger.kernel.org=netdev-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EECD2C433E0 for <netdev@archiver.kernel.org>; Wed, 20 May 2020 19:21:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C94DA207F9 for <netdev@archiver.kernel.org>; Wed, 20 May 2020 19:21:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZdA4LlDg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726870AbgETTVX (ORCPT <rfc822;netdev@archiver.kernel.org>); Wed, 20 May 2020 15:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726560AbgETTVW (ORCPT <rfc822;netdev@vger.kernel.org>); Wed, 20 May 2020 15:21:22 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1BD6C061A0E; Wed, 20 May 2020 12:21:22 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id a13so1744298pls.8; Wed, 20 May 2020 12:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=l+ZitJMelLTFgi5ias/6H8gqKi08+ZfSOF9+XZodPuU=; b=ZdA4LlDgUHVtwhZZgXQ5m7TygnrD35L/BEda6rqVXiOKOK2/8Le1bw3igGk6vIbu6o KN3zDi9cSAlpVfCdIp8DiIFBKJHefdioK8do+zqXzk/9fyYHYQnFCJp/GU/VozWYD3h3 6hF637gza/GTK1/K+fmIRbAYYDLBvSe07YtQ8PP7WR/ErKvWIcB0i0aUgp8WHtaeyRli yxibsy31UrA74fEaCdquEWZc0z5yAoMQFrCqo0vE6lrXmLI7B9N3a4mj+pfkBtrVuDfb ZNeWHfsU6yO6SzNltZ9BMmTEYjRyRJM3nCqQQ9GyjUBaKTeBp2CD4IjL8iejzLmoKSUv 9Icg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=l+ZitJMelLTFgi5ias/6H8gqKi08+ZfSOF9+XZodPuU=; b=i4+ThEtoSw71ULyIJUiuxxa/pDkEDjElXvX27lT1nXLNbWEnSyIcYSlKgjJxY26FeR JZW47T7NG7ptJntvDUjKzC7Gc1+sVpy5lmEtITH6sfA+KUF4+EnePOz+mk1q9qq2HE9T h8HIgiOuEW9jmGHlj9quzlXqsUnVaAVlqWpPNzFTjgM8td5ymNFErSBjhemOZH+DIQub YpQ3NBRjDIRSffv9QW92KHt3oJoX2Hw22rKMjNRpIm6G8lFuKl/dgVA6dJY+CDrZXhDh Dp8+C+KA0ueTtRQyHc1O6mkuE5i11GXmT9kJ0yBr3vbU9CYdLogvNz2aMYNXeumzmrpp 7U9A== X-Gm-Message-State: AOAM533XA69ND/4Mvgr6RCFPBVUQ39+jMq8MIybpLeFhtCQMFAyFvb6B wRaONhXjLOGcid+B1DBqiR8= X-Google-Smtp-Source: ABdhPJx0bGMp8Tb9Ih5zXgtUX5nnU5iZwsFJ9lZx6rTZX5sDCDao9GcckvMe2YDtIfhACtbE+Ln/bw== X-Received: by 2002:a17:90a:68cd:: with SMTP id q13mr6981865pjj.177.1590002482259; Wed, 20 May 2020 12:21:22 -0700 (PDT) Received: from btopel-mobl.ger.intel.com (fmdmzpr03-ext.fm.intel.com. [192.55.54.38]) by smtp.gmail.com with ESMTPSA id 62sm2762424pfc.204.2020.05.20.12.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 12:21:21 -0700 (PDT) From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn.topel@gmail.com> To: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net, kuba@kernel.org, hawk@kernel.org, john.fastabend@gmail.com, netdev@vger.kernel.org, bpf@vger.kernel.org, magnus.karlsson@intel.com, jonathan.lemon@gmail.com, jeffrey.t.kirsher@intel.com Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn.topel@intel.com>, maximmi@mellanox.com, maciej.fijalkowski@intel.com Subject: [PATCH bpf-next v5 01/15] xsk: fix xsk_umem_xdp_frame_sz() Date: Wed, 20 May 2020 21:20:49 +0200 Message-Id: <20200520192103.355233-2-bjorn.topel@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200520192103.355233-1-bjorn.topel@gmail.com> References: <20200520192103.355233-1-bjorn.topel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[bpf-next,v5,01/15] xsk: fix xsk_umem_xdp_frame_sz()
|
expand
|
diff --git a/include/net/xdp_sock.h b/include/net/xdp_sock.h index abd72de25fa4..6b1137ce1692 100644 --- a/include/net/xdp_sock.h +++ b/include/net/xdp_sock.h @@ -239,7 +239,7 @@ static inline u64 xsk_umem_adjust_offset(struct xdp_umem *umem, u64 address, static inline u32 xsk_umem_xdp_frame_sz(struct xdp_umem *umem) { - return umem->chunk_size_nohr + umem->headroom; + return umem->chunk_size_nohr; } #else