Search Linux Wireless

Re: Linux 2.6.24-rc7

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

 




On Sat, 26 Jan 2008, David Miller wrote:
> 
> We could even move the check and the copy out of the drivers
> and into the top-level packet input.

Hallelujah! Exactly.

> That would be a double win, things would always work and not
> trap, but also drivers could still optimize cases where aspects
> of hardware behavior would allow avoiding the unaligned cases
> better on a driver-local level.

Absolutely. Even on x86 and PowerPC, even if the actual "memmove()" 
doesn't take place, a driver that *can* make the packet data naturally 
aligned will want to do so just for simple performance reasons.

But we shouldn't make up stupid rules like "network drivers *have* to 
align packets correctly", simply because such rules may not make sense to 
the driver writer. If the hardware simply cannot do it, or has some 
horrible performance behaviour when it does so, it's stupid to tell a 
driver that it has to do it.

			Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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