From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D99B91C578E; Sun, 15 Sep 2024 15:08:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726412915; cv=none; b=s5l5ZeuwBv5Ss+81cL2k4oB5bqi72sd6eDMngT29o1++Mu8EuLIOqqeXES25xmeZ+uyNT0oW3Lmh6UAfJ2/V253V6QCBrqiHzSAi/uYoZxFNnnNJTcbtPDmU781SGAhnSxSV/m4zKnLkvu+K60fGmc50B/E/fBGEErGpQqAlE1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726412915; c=relaxed/simple; bh=n7Na59v+p8pOInKiHUJBGWxI+ZR57eSSkfICSv4JtyM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b/xOejf4FF9QmECRPqbRbcpWc+8MqU08GOem8/KTUVuc3laDBjRYZqlMCTYVtHjOVXFcAqfGaQ2O7Y6rkz4neRCSJFvauB6Ji5tkgB4e4sffKBYx+esxY4xoV4l1l/bWHcL7h3AyXr/uX69r9QXXEwPcvK8W26b+bjyk5T0lDBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OyzrxGF1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OyzrxGF1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8CECC4CEC6; Sun, 15 Sep 2024 15:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726412915; bh=n7Na59v+p8pOInKiHUJBGWxI+ZR57eSSkfICSv4JtyM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OyzrxGF1tNQPxW4+ykrpd0o8BLbUUdINRbOyz33Oim2Q3ZCLwe4RWK1HSbKjwMI+S 2fW85Fq5xCXF+WWkv0lZoocyosTCC+VlXPdxtKcZUnAFlmvRHF8yLZ0zRwxdyh2b0Z MxVnNHUZsaHHNUtkmHr7xwgaGLfy2iA2txJPQbePl+cnP5ZQucxNvgQuBh1yLJ8FtK RK3lejrCbh4oZCw3ALVaNcegwVKnaG+H/c7wRyFl8kq8eudjOloTQaaS7NMBJcfNbM DbQCTEkmhmEz4mqnhN5fIvCwg3at8qJKwlZY1BHvSXYr4kAe1WLr6Yc5DXQ89Byu/0 6iQKgJ1kEki9w== Date: Sun, 15 Sep 2024 17:08:28 +0200 From: Jakub Kicinski To: Jijie Shao Cc: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH V10 net-next 06/10] net: hibmcge: Implement .ndo_start_xmit function Message-ID: <20240915170828.60f866f1@kernel.org> In-Reply-To: <20240912025127.3912972-7-shaojijie@huawei.com> References: <20240912025127.3912972-1-shaojijie@huawei.com> <20240912025127.3912972-7-shaojijie@huawei.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 12 Sep 2024 10:51:23 +0800 Jijie Shao wrote: > +struct hbg_priv; > +struct hbg_ring; these are unnecessary, use as struct member automatically fwd declares > +struct hbg_buffer { > + u32 state; > + dma_addr_t state_dma; > + > + struct sk_buff *skb; > + dma_addr_t skb_dma; > + u32 skb_len; > + > + enum hbg_dir dir; > + struct hbg_ring *ring; > + struct hbg_priv *priv; > +};