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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 29 May 2008 20:41:47 +0400
From:	Evgeniy Polyakov <johnpol@....mipt.ru>
To:	Keyur Chudgar <kchudgar@...c.com>
Cc:	David Miller <davem@...emloft.net>, kchudgar.linux@...il.com,
	netdev@...r.kernel.org
Subject: Re: Single packet receiving in multiple ring buffers

On Thu, May 29, 2008 at 09:09:30AM -0700, Keyur Chudgar (kchudgar@...c.com) wrote:
> > With jumbo frames you will waste some descriptors and some pages, but
> small-sized traffic will hit only descriptor 
> > associated with skb->data, so you will detach page from skb and submit
> it to stack, allocate new one and attach that 
> > pages to new skb. If size is too small you can allocate new small skb
> and copy data there (I recalled, it is called
> > copybreak) and submit it to stack instead of one, where DMA was
> completed.
> 
> This will be a good idea. Can you let me know how can I detach and
> attach the page from/to skb?

There is no simple function to detach page, but attaching is being done via
skb_fill_page_desc(). You can check how sky2 does it for example.


-- 
	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