Re: [RFC] Port of DfBSDs new IP Checksum Code

From: Gordon Bergling (gbergling_at_0xfce3.net)
Date: 08/06/05

  • Next message: Tilman Linneweh: "IPv6 LOR"
    Date: Sat, 06 Aug 2005 17:33:54 +0200
    To: Bruce M Simpson <bms@spc.org>
    
    

    Hi Bruce,

    Bruce M Simpson wrote:

    >On Sat, Aug 06, 2005 at 01:43:29PM +0200, Gordon Bergling wrote:
    >
    >
    >>I have ported the new IP Checksum Code from DragonflyBSD to FreeBSD.
    >>I have a patch available at
    >>http://generic.0xfce3.net/freebsd/ipchecksum/20050805-ipchecksum.patch
    >>
    >>
    >
    >There are inline i386 instructions in a machine-independent header; is this
    >intentional? Also the asm_ones32() code seems to exist only for i386.
    >
    >
    I can't say something about the internals of the rework of checksum
    code. I have the commit messages on the hand,
    but I can't find something related.

    >Without support for other platforms, and some cleanup, I don't think that
    >the patch can be committed as is, sadly.
    >
    >
    As far as I understand the commit messages [1 - 3] correctly the new
    code should be machine independent.
    What cleanup do you mean?

    >I do like the general idea of rewriting in_cksum() to take advantage of
    >branch prediction logic in modern microprocessors, however.
    >
    >
    I am willing to spend more time on this and, if anyone could point me to
    the right direction regarding the next steps
    to get this into the tree.

    regards,

        Gordon

    [1] http://leaf.dragonflybsd.org/mailarchive/commits/2004-02/msg00187.html
    [2] http://leaf.dragonflybsd.org/mailarchive/commits/2004-02/msg00198.html
    [3] http://leaf.dragonflybsd.org/mailarchive/commits/2004-02/msg00200.html
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Tilman Linneweh: "IPv6 LOR"

    Relevant Pages

    • Re: Take 2: new IP Checksum Code from DragonFlyBSD
      ... a few month ago I ported DragonFlyBSD's IP checksum code to FreeBSD. ... This patch modifies the i386, ... new implementation is machine indepement, ...
      (freebsd-current)
    • Take 2: new IP Checksum Code from DragonFlyBSD
      ... a few month ago I ported DragonFlyBSD's IP checksum code to FreeBSD. ... This patch modifies the i386, ... new implementation is machine indepement, ...
      (freebsd-current)
    • Re: [RFC] Port of DfBSDs new IP Checksum Code
      ... > I have ported the new IP Checksum Code from DragonflyBSD to FreeBSD. ... There are inline i386 instructions in a machine-independent header; ... the patch can be committed as is, ...
      (freebsd-net)
    • IP Checksum code from DragonFly BSD
      ... Almost a year ago a port of DragonFly's BSD IP checksum code was made: ... kernel with Intel's C was interesting: ... working patches get lost in the mail archives! ... Perhaps someone with good net-fu would consider studying the patch and commit ...
      (freebsd-net)
    • Re: [discuss] Re: x86_64: 2.6.14-rc4 swiotlb broken
      ... > Linus would you apply this for 2.6.14? ... This is the patch which works for ... commit messages and the sign-off, and people who have issues with it ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)