MESSAGE
DATE | 2017-06-07 |
FROM | Ruben Safir
|
SUBJECT | Subject: [Learn] Fwd: tx path circular buffer
|
From learn-bounces-at-nylxs.com Wed Jun 7 02:06:53 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 B8015163F55; Wed, 7 Jun 2017 02:06:52 -0400 (EDT) X-Original-To: learn-at-nylxs.com Delivered-To: learn-at-nylxs.com Received: from [10.0.0.62] (flatbush.mrbrklyn.com [10.0.0.62]) by mrbrklyn.com (Postfix) with ESMTP id EC938160876; Wed, 7 Jun 2017 02:06:45 -0400 (EDT) References: <20170607060333.GC2747-at-eros> To: "learn-at-nylxs.com" , Hangout From: Ruben Safir X-Forwarded-Message-Id: <20170607060333.GC2747-at-eros> Message-ID: <5657a9be-0c48-b4dd-6c16-02849522575a-at-mrbrklyn.com> Date: Wed, 7 Jun 2017 02:06:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170607060333.GC2747-at-eros> Content-Language: en-US Subject: [Learn] Fwd: tx path circular buffer X-BeenThere: learn-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list 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"
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.
I have tried to read the source for ath6kl, brcmfmac without success.
I have read Documentation/circular-buffers.txt and this seems like the solution however grep'ing drivers/net hints that this is not that common a way to solve this problem. Also I'm getting in knots with atomic_t types when copying the text document.
Before I bore you with all my non-working code, does any one please know, off the top of their heads, a driver with simple-ish / nice clean implementation that I can learn from?
thanks, Tobin.
_______________________________________________ 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
|
|