MESSAGE
DATE | 2017-06-07 |
FROM | Greg KH
|
SUBJECT | Re: [Learn] tx path circular buffer
|
From learn-bounces-at-nylxs.com Wed Jun 7 06:56:55 2017 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id D9F27163F55; Wed, 7 Jun 2017 06:56:54 -0400 (EDT) X-Original-To: learn-at-www.mrbrklyn.com Delivered-To: learn-at-www.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id 42898163F54; Wed, 7 Jun 2017 06:56:52 -0400 (EDT) Resent-From: Ruben Safir Resent-Date: Wed, 7 Jun 2017 06:56:51 -0400 Resent-Message-ID: <20170607105651.GA23744-at-www.mrbrklyn.com> Resent-To: learn-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from shelob.surriel.com (unknown [96.67.55.147]) by mrbrklyn.com (Postfix) with ESMTP id 960AD160876 for ; Wed, 7 Jun 2017 04:49:11 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.63) (envelope-from ) id 1dIWe2-0003Od-Mt; Wed, 07 Jun 2017 04:48:50 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by shelob.surriel.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1dIWdq-0003OT-Iu for kernelnewbies-at-kernelnewbies.org; Wed, 07 Jun 2017 04:48:38 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9131E2088E; Wed, 7 Jun 2017 04:48:37 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 07 Jun 2017 04:48:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=d+js4zM0ov924bAnba UiQ3zgCoiVn+HhKoRWEA7CDs0=; b=IVM77coIrc+0FJbuW7MabfbwwVZE8rPGM+ w/nf4hh2D7oLYd2bmlVaOhkNgYie8ysq4FbD0es1C+NNwr5IAxRG91YzhLfV2yLt VUB0WoN2HKEeg/a4wuVdtmxlM3ewMW1eTob48u5rHUNJFnIzW0osp/XvGlpXvscK 40RifeoFTvI7I0CRhr7SSnhI4J3VwBDjAwX7LzTFGD9Aq9jA8fofoZgfEMc0heAO 1Vws3LGQiUJX6MlcTpBtrhJBtfMfW/mM0tmaekSN7t5HytEiwhsRQILXzwxWp8R7 P+VB2k98DjJ9CtkWyQmpw1CaI5u/gaY9r5hrFIGZ1ouvI6Wo7F3A== X-ME-Sender: X-Sasl-enc: TjH0UbnKOoAw3++OEdyEzrfX45CShfL84dUqOcESmW4C 1496825317 Received: from localhost (lfbn-1-12060-104.w90-92.abo.wanadoo.fr [90.92.122.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 06AFF24922; Wed, 7 Jun 2017 04:48:36 -0400 (EDT) Date: Wed, 7 Jun 2017 10:48:33 +0200 From: Greg KH To: "Tobin C. Harding" Message-ID: <20170607084833.GA13755-at-kroah.com> References: <20170607060333.GC2747-at-eros> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170607060333.GC2747-at-eros> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: kernelnewbies-at-kernelnewbies.org X-Mailman-Version: 2.1.9 Precedence: list Cc: kernelnewbies-at-kernelnewbies.org Subject: Re: [Learn] tx path circular buffer X-BeenThere: learn-at-nylxs.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: learn-bounces-at-nylxs.com Sender: "Learn"
On Wed, Jun 07, 2017 at 04:03:33PM +1000, Tobin C. Harding wrote: > Hi, > > I am attempting to implement a circular buffer for the tx path of a > networking driver. From my understanding this is something that is > very common, yet I am struggling to find a clear way to do it.
Have you looked at include/linux/kfifo.h?
_______________________________________________ Kernelnewbies mailing list Kernelnewbies-at-kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies _______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
|
|