#85 single-copy 8139too tx

closed-accepted
3
2001-10-26
2001-06-10
Jeff Garzik
No

Date: Sun, 10 Jun 2001 16:58:57 +0200
From: Manfred Spraul <manfred@colorfullife.com>
To: netdev@oss.sgi.com
Subject: Q: (ab)using zerocopy for drivers with

Several cheap busmaster nics only accept tx buffers
that are 32-bit aligned.

Currently they memcpy into transfer buffers. What about
replacing that memcpy with csum_copy_partial_nocheck
and enabling NETIF_F_{SG,HW_CSUM}?

I've attached a beta patch against the 8139too driver.

szc_copy_csum() isn't driver specific, perhaps move it
to linux/net/core/skbuff.c?

--
Manfred

Discussion

  • Manfred Spraul

    Manfred Spraul - 2001-06-17

    Logged In: YES
    user_id=127784

    updated patch based on davem's proposals

     
  • Manfred Spraul

    Manfred Spraul - 2001-06-19

    Logged In: YES
    user_id=127784

    another update, test when to copy moved out of
    net/core/skbuff.c:
    nics that can hw csum with constrains (e.g. only <= 3 frags
    etc) could use the function for packets they can't handle in
    hw.

     
  • Manfred Spraul

    Manfred Spraul - 2001-06-19

    generic part, vs 2.4.5-ac15

     
  • Manfred Spraul

    Manfred Spraul - 2001-06-19

    8139 sample, against 0.9.17

     
  • Jeff Garzik

    Jeff Garzik - 2001-10-26
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks