Message ID | 158824570783.2172139.8225950948589501231.stgit@firesoul |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=vQgA=6O=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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED 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 217ACC8300A for <netdev@archiver.kernel.org>; Thu, 30 Apr 2020 11:22:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E8E7F2076D for <netdev@archiver.kernel.org>; Thu, 30 Apr 2020 11:22:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OHQ55Y0t" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727833AbgD3LWD (ORCPT <rfc822;netdev@archiver.kernel.org>); Thu, 30 Apr 2020 07:22:03 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:41064 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726836AbgD3LWC (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 30 Apr 2020 07:22:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588245721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1Z0tKm1MdcSY7wLHzTmacDwetIASD7bgAj5sYZhWuq4=; b=OHQ55Y0tk4rcAgqUu22mB4UrGJkrjtNcFOwWl5q4ewwcmGcLl++nIuBTT4sq+Iq/Jq9DFl kDRwIDRZmwz3PL79Sz1ZSVzGTUp10JOuhM0MxG83H+NcBFvE4lRpA2CJuJiDdpReuKedxx 3+v4DooEvZGes53JtxKeboOvlNDefDU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-279-zHz59DfFPqmjifi-o1oftw-1; Thu, 30 Apr 2020 07:21:58 -0400 X-MC-Unique: zHz59DfFPqmjifi-o1oftw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9BA3980B70B; Thu, 30 Apr 2020 11:21:55 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.40.208.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id E2EC31001920; Thu, 30 Apr 2020 11:21:48 +0000 (UTC) Received: from [192.168.42.3] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id DC673324DB2C1; Thu, 30 Apr 2020 13:21:47 +0200 (CEST) Subject: [PATCH net-next v2 17/33] net: thunderx: add XDP frame size From: Jesper Dangaard Brouer <brouer@redhat.com> To: sameehj@amazon.com Cc: Sunil Goutham <sgoutham@marvell.com>, Robert Richter <rrichter@marvell.com>, Jesper Dangaard Brouer <brouer@redhat.com>, netdev@vger.kernel.org, bpf@vger.kernel.org, zorik@amazon.com, akiyano@amazon.com, gtzalik@amazon.com, =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= <toke@redhat.com>, Daniel Borkmann <borkmann@iogearbox.net>, Alexei Starovoitov <alexei.starovoitov@gmail.com>, John Fastabend <john.fastabend@gmail.com>, Alexander Duyck <alexander.duyck@gmail.com>, Jeff Kirsher <jeffrey.t.kirsher@intel.com>, David Ahern <dsahern@gmail.com>, Willem de Bruijn <willemdebruijn.kernel@gmail.com>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Lorenzo Bianconi <lorenzo@kernel.org>, Saeed Mahameed <saeedm@mellanox.com>, steffen.klassert@secunet.com Date: Thu, 30 Apr 2020 13:21:47 +0200 Message-ID: <158824570783.2172139.8225950948589501231.stgit@firesoul> In-Reply-To: <158824557985.2172139.4173570969543904434.stgit@firesoul> References: <158824557985.2172139.4173570969543904434.stgit@firesoul> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[net-next,v2,01/33] xdp: add frame size to xdp_buff
|
expand
|
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index b4b33368698f..2ba0ce115e63 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -552,6 +552,7 @@ static inline bool nicvf_xdp_rx(struct nicvf *nic, struct bpf_prog *prog, xdp_set_data_meta_invalid(&xdp); xdp.data_end = xdp.data + len; xdp.rxq = &rq->xdp_rxq; + xdp.frame_sz = RCV_FRAG_LEN + XDP_PACKET_HEADROOM; orig_data = xdp.data; rcu_read_lock();
To help reviewers these are the defines related to RCV_FRAG_LEN #define DMA_BUFFER_LEN 1536 /* In multiples of 128bytes */ #define RCV_FRAG_LEN (SKB_DATA_ALIGN(DMA_BUFFER_LEN + NET_SKB_PAD) + \ SKB_DATA_ALIGN(sizeof(struct skb_shared_info))) Cc: Sunil Goutham <sgoutham@marvell.com> Cc: Robert Richter <rrichter@marvell.com> Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 1 + 1 file changed, 1 insertion(+)