On Fri, Jan 15, 2010 at 4:50 PM, David Miller <davem@xxxxxxxxxxxxx> wrote: > From: Changli Gao <xiaosuo@xxxxxxxxx> > Date: Fri, 15 Jan 2010 10:22:03 +0800 > >> For connection based packet processing, such as netfilter, >> distributing the packets in two directions into one CPU will reduce >> cache miss, when NAT isn't used. I think the code bellow will help: >> if (addr1 > addr2) >> swap(addr1, addr2); > > You can't just do the addresses, the ports will swap too. > Yea, and it is just an example. -- Regards, Changli Gao(xiaosuo@xxxxxxxxx) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html