lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080522184906.GA32582@2ka.mipt.ru>
Date:	Thu, 22 May 2008 22:49:07 +0400
From:	Evgeniy Polyakov <johnpol@....mipt.ru>
To:	Keyur Chudgar <kchudgar@...c.com>
Cc:	Keyur Chudgar <kchudgar.linux@...il.com>, netdev@...r.kernel.org
Subject: Re: Single packet receiving in multiple ring buffers

On Thu, May 22, 2008 at 11:27:27AM -0700, Keyur Chudgar (kchudgar@...c.com) wrote:
> > better attach a page to each hardware descriptor and put pages from
> each part into single skb via skb_fill_page_desc().
> This is a good idea. But I can see, if I do this, then what I have in
> skb is only fraglist containing the data, and
> skb->data doesn't have anything. If this is the case, then the stack or
> anybody else would not be able to use
> the macros work on data pointer, like skb->push, pull, put, and even the
> header pointers like h, nh, mac etc.
> Can you please give some thoughts about this?

You have to copy part of the data (up to and including transport headers)
into skb->data.
Or you can dma part of the packet into skb->data and part into attached
pages, which reside in skb_shinfo(skb)->frags (seupt via skb_fill_page_desc())

-- 
	Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ