* MKISS DRIVER PATCH - for layer 3 longword alignment in m68000
@ 2005-04-24 20:40 Sriram Chadalavada
2005-04-25 15:56 ` M Taylor
2005-04-26 13:33 ` M Taylor
0 siblings, 2 replies; 5+ messages in thread
From: Sriram Chadalavada @ 2005-04-24 20:40 UTC (permalink / raw)
To: Linux-Hams
Hi Mr. Albas,
I am porting AX25 applications/tools to Arcturus
Networks uCdimm (Motorola MC68VZ328) as part of my
masters project (www.engr.ku.edu/~kutesat).
I tried to get TCP/IP applications(uClinux) such as
FTP, SSH working over an AX.25 link but faced kernel
panics due to memory alignment issues in the mkiss
driver, whenever (ICMP, TCP) packets were received
on the relevant 'kiss' interface.
In consultation with David McCollough
(Snapgear/cyberguard.com), I have come up with a
patch(see attachment) to solve the above problem in
architectures such as m68000 where alignment issues
are not handled in hardware.
The solution lies in increasing skbuf size by 1 and
aligning the layer 3 header by using
skb_reserve(skb,1). This approach has been used in
several ethernet drivers to make them work on these
architectures.
This change is not yet a part of the mkiss driver
(2.6.11 kernel). PLease let me know if my patch can
be incorporated into your driver code. The patched
driver works on both x86 and m68000.
Kindly reply soon and let me know if you have any
questions.
Thank you,
Sriram C.
(University of Kansas, USA)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: MKISS DRIVER PATCH - for layer 3 longword alignment in m68000
2005-04-24 20:40 MKISS DRIVER PATCH - for layer 3 longword alignment in m68000 Sriram Chadalavada
@ 2005-04-25 15:56 ` M Taylor
2005-04-26 13:33 ` M Taylor
1 sibling, 0 replies; 5+ messages in thread
From: M Taylor @ 2005-04-25 15:56 UTC (permalink / raw)
To: Sriram Chadalavada; +Cc: Linux-Hams
On Sun, Apr 24, 2005 at 01:40:43PM -0700, Sriram Chadalavada wrote:
>
> In consultation with David McCollough
> (Snapgear/cyberguard.com), I have come up with a
> patch(see attachment) to solve the above problem in
> architectures such as m68000 where alignment issues
> are not handled in hardware.
>
> The solution lies in increasing skbuf size by 1 and
> aligning the layer 3 header by using
> skb_reserve(skb,1). This approach has been used in
> several ethernet drivers to make them work on these
> architectures.
I'm sorry, but it looks like the attachment wasn't included or
was stripped off, could you please send it again or feel free
to mail it to me, and I will make it available on my webserver.
-ve3tix
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MKISS DRIVER PATCH - for layer 3 longword alignment in m68000
2005-04-24 20:40 MKISS DRIVER PATCH - for layer 3 longword alignment in m68000 Sriram Chadalavada
2005-04-25 15:56 ` M Taylor
@ 2005-04-26 13:33 ` M Taylor
2005-04-26 14:05 ` Jeroen Vreeken
1 sibling, 1 reply; 5+ messages in thread
From: M Taylor @ 2005-04-26 13:33 UTC (permalink / raw)
Cc: Linux-Hams
On Sun, Apr 24, 2005 at 01:40:43PM -0700, Sriram Chadalavada wrote:
> FTP, SSH working over an AX.25 link but faced kernel
> panics due to memory alignment issues in the mkiss
> driver, whenever (ICMP, TCP) packets were received
> on the relevant 'kiss' interface.
>
> In consultation with David McCollough
> (Snapgear/cyberguard.com), I have come up with a
> patch(see attachment) to solve the above problem in
> architectures such as m68000 where alignment issues
> are not handled in hardware.
http://www.privacy.nb.ca/~mctylr/uClinux/mkiss-skb-align.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MKISS DRIVER PATCH - for layer 3 longword alignment in m68000
2005-04-26 13:33 ` M Taylor
@ 2005-04-26 14:05 ` Jeroen Vreeken
0 siblings, 0 replies; 5+ messages in thread
From: Jeroen Vreeken @ 2005-04-26 14:05 UTC (permalink / raw)
To: M Taylor; +Cc: Linux-Hams
M Taylor wrote:
>On Sun, Apr 24, 2005 at 01:40:43PM -0700, Sriram Chadalavada wrote:
>
>
>> FTP, SSH working over an AX.25 link but faced kernel
>> panics due to memory alignment issues in the mkiss
>> driver, whenever (ICMP, TCP) packets were received
>> on the relevant 'kiss' interface.
>>
>> In consultation with David McCollough
>> (Snapgear/cyberguard.com), I have come up with a
>> patch(see attachment) to solve the above problem in
>> architectures such as m68000 where alignment issues
>> are not handled in hardware.
>>
>>
>
>http://www.privacy.nb.ca/~mctylr/uClinux/mkiss-skb-align.patch
>
>
It looks ok, but there are some unneeded whitespace changes in your patch...
And on a personal note I like comments in C style more than the C++
style you use. /* ... */ instead of // ...
But that might be just me :)
Jeroen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MKISS DRIVER PATCH - for layer 3 longword alignment in m68000
@ 2005-05-02 19:07 Sriram Chadalavada
0 siblings, 0 replies; 5+ messages in thread
From: Sriram Chadalavada @ 2005-05-02 19:07 UTC (permalink / raw)
To: Linux-Hams
Mr. Taylor,
Thanks for posting the patch.
Jeroen,
The whitespace changes are indeed not necessary. I
should have perhaps got rid of them.
Cheers,
Sriram
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-05-02 19:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-24 20:40 MKISS DRIVER PATCH - for layer 3 longword alignment in m68000 Sriram Chadalavada
2005-04-25 15:56 ` M Taylor
2005-04-26 13:33 ` M Taylor
2005-04-26 14:05 ` Jeroen Vreeken
-- strict thread matches above, loose matches on Subject: below --
2005-05-02 19:07 Sriram Chadalavada
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.