Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp225988rdb; Tue, 19 Dec 2023 14:57:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvZrmvYT6KZQAr/8lyxS2n19zsMVV0lHQd/HBj7HeVJNIGn5B93Cw4N9MfVB2gvleqSYvA X-Received: by 2002:ac8:7dd6:0:b0:425:9920:add4 with SMTP id c22-20020ac87dd6000000b004259920add4mr23792280qte.93.1703026675913; Tue, 19 Dec 2023 14:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703026675; cv=none; d=google.com; s=arc-20160816; b=SNsz3IiCcmaqhDWnftO++DWDdMSUhY7C1s/GyzqdwET7SNEtzZrgzlLN7mp/IJxxz6 AVMaXkuG0TscMeXNxZx7p7NY3E0ycNdpavWZvb8lcQJjqdybewCuPHZoIS+7VVCIBMd8 87FjY5Gp9kbqlzuR3BK17xR3HxOO2y2KNVNZNuu1nxC/H7Lrk+hItx0KuiCAOqLJ8Ota ZMrg8HtN5CvfxPz+Piw/lFgbFzmy1twpIVWC2Qjs2V5KqmkPgrwYkO7VH+mb58pVcloU TjxkCiJzNMDX9d2DCNEokLDssB06EB87z+o498MGzWrtM5KRuOoc4jUF+MT6hZOGHKHZ iQCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=M7vYwyFBTmXa7mBCYsTu/n+QlJGbIPVud40PFjUfiyM=; fh=Ygmoo/pDuHA17aCKNF/bqI5v1x8bewo3qts4fYmIF8k=; b=PF3d01rwlqx+sI643o/7wTnz6biy5q/uIBKKJDRy7RUI8kXpcR72KRVFSFz7qS+2VT Mlyovu+jTNe2fvEtOoSYUY30LjS2mk2bG/98FDeBWlMiDNtrgLLQ9T+BxnO1RDomDGi1 a7PyfigOJUqdWn07Ds4G4+39v/908yDL6cSwpAQnurX8vmNWTLaVQvRdrW8lCRagsFCe LCVS+CxWkUcunYF9fKWW52Qn6G5poLYsx8H4H4EYq3dxY5PQbSC/r3f+X0Jvm/g2N7HG DtDim5b+D2cx2V/dNqso6bpTxPWqetxZJ4oL3SQsJZ8GS1870i+Ksnfya2pT5gjNA/U/ qlKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xhkXf21S; spf=pass (google.com: domain of linux-kernel+bounces-6073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6073-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f16-20020a05622a1a1000b00425505ff6b7si29706459qtb.171.2023.12.19.14.57.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 14:57:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xhkXf21S; spf=pass (google.com: domain of linux-kernel+bounces-6073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6073-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A14E1C21EDB for ; Tue, 19 Dec 2023 22:57:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 137603D0CE; Tue, 19 Dec 2023 22:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="xhkXf21S" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 301C03D0AE; Tue, 19 Dec 2023 22:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=M7vYwyFBTmXa7mBCYsTu/n+QlJGbIPVud40PFjUfiyM=; b=xhkXf21S7LYXVoeF3VpoobRnb1 Dv/PMqOfwlfkkNy03gDBHnf/IIFG77n6wGj0BTrf8LNTtz8SO9dBU+okjGyKQEGNouOKTwGupcAdH QEdbpM11JGfsOi69JGBQ5sHDaj4XjsPX+ZCJzy34OlxUIf397A4FHIEW6w5tMQLxXbcbbULfCsVK+ 36/PLyjx85RGIXKof1LCC8rO0Euokn+xoMjE8j/Nv8q/kPMxpP4lFvJuYTCQxYygpuoByjK4zKKSf SQ9SG+/Kh97kOTdsb4dsMpazvluGNzPLaTYf4UKtDg7XKTrO0MOoFZwSy/gzY0uFAQt5HQg9IICMu 2m7ELvOQ==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFj1v-00Fdwd-1k; Tue, 19 Dec 2023 22:57:39 +0000 Message-ID: <41abf11c-dbd4-48b1-8ca3-746b62256da8@infradead.org> Date: Tue, 19 Dec 2023 14:57:38 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] xsk: make struct xsk_cb_desc available outside CONFIG_XDP_SOCKETS Content-Language: en-US To: Vladimir Oltean , netdev@vger.kernel.org Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Nguyen , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Larysa Zaremba References: <20231219110205.1289506-1-vladimir.oltean@nxp.com> From: Randy Dunlap In-Reply-To: <20231219110205.1289506-1-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/19/23 03:02, Vladimir Oltean wrote: > The ice driver fails to build when CONFIG_XDP_SOCKETS is disabled. > > drivers/net/ethernet/intel/ice/ice_base.c:533:21: error: > variable has incomplete type 'struct xsk_cb_desc' > struct xsk_cb_desc desc = {}; > ^ > include/net/xsk_buff_pool.h:15:8: note: > forward declaration of 'struct xsk_cb_desc' > struct xsk_cb_desc; > ^ > > Fixes: d68d707dcbbf ("ice: Support XDP hints in AF_XDP ZC mode") > Closes: https://lore.kernel.org/netdev/8b76dad3-8847-475b-aa17-613c9c978f7a@infradead.org/ > Signed-off-by: Vladimir Oltean Acked-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested Thanks. > --- > Posting to net-next since this tree is broken at this stage, not only > bpf-next. > > include/net/xdp_sock_drv.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/net/xdp_sock_drv.h b/include/net/xdp_sock_drv.h > index b62bb8525a5f..526c1e7f505e 100644 > --- a/include/net/xdp_sock_drv.h > +++ b/include/net/xdp_sock_drv.h > @@ -12,14 +12,14 @@ > #define XDP_UMEM_MIN_CHUNK_SHIFT 11 > #define XDP_UMEM_MIN_CHUNK_SIZE (1 << XDP_UMEM_MIN_CHUNK_SHIFT) > > -#ifdef CONFIG_XDP_SOCKETS > - > struct xsk_cb_desc { > void *src; > u8 off; > u8 bytes; > }; > > +#ifdef CONFIG_XDP_SOCKETS > + > void xsk_tx_completed(struct xsk_buff_pool *pool, u32 nb_entries); > bool xsk_tx_peek_desc(struct xsk_buff_pool *pool, struct xdp_desc *desc); > u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 max); -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html