Re: Route cache performance under stress

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

 



   From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@wide.ad.jp>
   Date: Mon, 09 Jun 2003 19:40:46 +0900 (JST)
   
   Ok, how about this?

The memset_tail thing is unnecessary, and better to put the
non-zero objects at the beginning then you can go.

	 memset(dst->${FIRST_ZERO_MEMBER}, 0,
	        ops->entry_size -
		offsetof(struct dst_entry, ${FIRST_ZERO_MEMBER}));

But even _THIS_ is stupid.  All this initialization really should
move to caller.  We can provide a "dst_init()" helper for protocols
that don't want to bother optimizing this.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux