All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: "Sirotkin, Alexander" <demiurg@ti.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: network driver that uses skb destructor
Date: Mon, 29 Dec 2003 14:10:39 -0500	[thread overview]
Message-ID: <3FF07C2F.6080408@pobox.com> (raw)
In-Reply-To: <3FF05C27.5030706@ti.com>

Sirotkin, Alexander wrote:
> I would like to write a network driver that uses DMA and manages it's 
> own memory.
> 
> The most common approach (in RX) seem to be to allocate the memory for 
> DMA transfer using dev_alloc_skb(), get the HW DMA engine to transfer 
> the packet into this skb buffer and later free it using dev_kfree_skb().
> 
> For various reasons (mainly to support legacy source code) I would like 
> to allocate and free the buffer using my own functions. Theoretically, I 
> could get away by using skb->destructor.


This won't work, since you cannot chain skb destructors...

	Jeff




      parent reply	other threads:[~2003-12-29 19:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-29 16:53 network driver that uses skb destructor Sirotkin, Alexander
2003-12-29 17:24 ` Muli Ben-Yehuda
2003-12-30  9:13   ` Adrian Cox
2003-12-30  9:36     ` Muli Ben-Yehuda
2004-01-01 19:09     ` [RFC/PATCH] skb destructor chaining [was Re: network driver that uses skb destructor] Muli Ben-Yehuda
2003-12-30  9:48   ` network driver that uses skb destructor Duncan Sands
2003-12-30 15:02     ` [Linux-ATM-General] " chas williams
2003-12-29 19:10 ` Jeff Garzik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FF07C2F.6080408@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=demiurg@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.