All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Yongjun <yjwei@cn.fujitsu.com>
To: linux-sctp@vger.kernel.org
Subject: Re: [PATCH][RFC] Allow to use adler32 for SCTP
Date: Fri, 14 Jan 2011 01:25:47 +0000	[thread overview]
Message-ID: <4D2FA61B.60204@cn.fujitsu.com> (raw)
In-Reply-To: <4D2DC00A.8030208@freyther.de>



> Hi,
>
> with OpenBSC I have to connect to some equipment that is configured to use
> adler32 as the checksum. I wonder if something a long the lines of this patch
> is acceptable? It adds a module parameter that globally allows to use adler32
> and then there is a sockopt to enable adler32 on a per process basis. For the
> receive path I have to decode both checksums.

decode both checksums by default will cause performance lost.
Why not change this to kernel config, and disable it by default since
most people do not need this?

Other question: why not just update your box which only support
adler32 to support new crc32 checksums? Linux and Freebsd etc.
do not using adler32, but using crc32.

> I could probably just use the code to disable checksums for rx but I will need
> to generate them on tx to make the other equipment accept these.
>
> regards
> 	holger
>
> PS: While adding my field to struct sctp_sock I saw that there are quite some
> holes (on both ia32,x86_64) in the struct and that one can save 16byte by
> re-ordering. I am not sure how to and if to benchmark such a change. Does it
> make sense to re-order those?
>
> PPS: This was sent to netdev first, so sorry if people see it twice

  reply	other threads:[~2011-01-14  1:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 14:51 [PATCH][RFC] Allow to use adler32 for SCTP Holger Hans Peter Freyther
2011-01-14  1:25 ` Wei Yongjun [this message]
2011-01-14  9:00 ` Holger Hans Peter Freyther
  -- strict thread matches above, loose matches on Subject: below --
2011-01-09 21:36 Holger Hans Peter Freyther

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D2FA61B.60204@cn.fujitsu.com \
    --to=yjwei@cn.fujitsu.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.