Search Linux Wireless

Re: zd1211rw (2.6.26 sparc64): unaligned access (zd_mac_rx)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2008-11-29 at 19:59 +1100, Shaddy Baddah wrote:

> net/mac80211/tx.c:1304:		if (memcmp(odev->dev_addr, hdr->addr4, 
> ETH_ALEN) != 0)
> 
> I would have thought it would use compare_ether_addr() if we could 
> safely assume alignment.

You're looking at the TX path, that's irrelevant :)

>  In any case, say that alignment was always the 
> intention... then can't we just use memcmp() as a hack (not being 
> derogatory. Just that it would turn into a hack in deference to using 
> compare_ether_addr()) consistent with hacks like the above? Even in the 
> interim until a program to iron out alignment is set in place?

No, the IP stack assumes alignment. Besides, zd1211 actually enforces
the alignment before passing the skb off to mac80211.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux