netdev
[Top] [All Lists]

Re: net/sctp/sm_make_chunk.c alignment problems on parisc64

To: Sridhar Samudrala <sri@xxxxxxxxxx>
Subject: Re: net/sctp/sm_make_chunk.c alignment problems on parisc64
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Fri, 19 Sep 2003 23:39:09 -0700
Cc: acme@xxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, lksctp-developers@xxxxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.44.0309191440320.4758-100000@localhost.localdomain>
References: <20030918195525.28c17cb1.davem@redhat.com> <Pine.LNX.4.44.0309191440320.4758-100000@localhost.localdomain>
Sender: netdev-bounce@xxxxxxxxxxx
On Fri, 19 Sep 2003 15:15:53 -0700 (PDT)
Sridhar Samudrala <sri@xxxxxxxxxx> wrote:

> But unfortunately i am not able see this problem with a parisc64 cross 
> compiler 
> on i386. So it makes it hard to debug or fix it. Looks like this happens only
> when building natively on a parisc64 machine which i don't have access to.

Did you build with or without SMP enabled?

Anyways, try to work with Arnaldo to figure out the precise statement
causing the problems.

> Also while reviewing the code in sctp_pack_cookie(), i noticed a structure
> copy. Are structure copies portable across all the archictectures? Should we
> replace it with a memcpy?

Yes, structure copies are portable.

<Prev in Thread] Current Thread [Next in Thread>