public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NETIF_F_(SG|FRAGLIST|HIGHDMA) docs anywhere?
@ 2001-12-29  7:16 Daniel Stodden
  2001-12-29 19:16 ` kuznet
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Stodden @ 2001-12-29  7:16 UTC (permalink / raw)
  To: Linux Kernel

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]


hi.

software-only network device, currently implementing none of the
dev->features flags.

the driver transmits packets via pci dma to other processors residing on
a shared PCI bus segment. so i guess supporting at least scatter/gather
should give some performance improvements in order to get rid of
skb_linearize() on xmit? since transmission is done completely by the
local cpu, all of F_SG/FRAGLIST/HIGHDMA look relatively easy to
implemement to me. 

my major problem is test cases and getting the picture behind these
structures. is there any documentation around on the
skb_shinfo(skb)->frags and skb_shinfo(skb)->frag_list stuff? i've spend
quite some time now trying to figure out exactly under which
circumstances which of both applies. not too successful i must admit :)

frag_list seems to be the list involved with keeping track of ip
fragmentation. so dev->hard_start_xmit() with frag_list set would only
happen on routers or when??

when is nr_frags>0? i've found some postings indicating sendfile(2) will
benefit here. is this the only case? need some test code..

any hint appreciated,
dns

-- 
___________________________________________________________________________
 mailto:stodden@in.tum.de


[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: NETIF_F_(SG|FRAGLIST|HIGHDMA) docs anywhere?
@ 2001-12-29 11:14 Manfred Spraul
  0 siblings, 0 replies; 3+ messages in thread
From: Manfred Spraul @ 2001-12-29 11:14 UTC (permalink / raw)
  To: Daniel Stodden; +Cc: linux-kernel

> my major problem is test cases and getting the picture behind these
> structures.

Check skb_copy_and_csum_dev, used by the 8139too and via-rhine
network drivers: that's a software-only implementation of the NETIF_F_
flags.

Note that the kernel never uses scatter-gather without hardware
checksumming: concurrent sendfile()+write() would create packets
with invalid checksums.

--
    Manfred



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-29 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-29  7:16 NETIF_F_(SG|FRAGLIST|HIGHDMA) docs anywhere? Daniel Stodden
2001-12-29 19:16 ` kuznet
  -- strict thread matches above, loose matches on Subject: below --
2001-12-29 11:14 Manfred Spraul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox