ºìÁªLinuxÃÅ»§
Linux°ïÖú

Çë½ÌÈçºÎÔÚlinuxÄÚºËÄÚʵÏÖÊý¾ÝµÄ¸´ÖÆת·¢

·¢²¼Ê±¼ä:2007-06-04 01:08:29À´Ô´:ºìÁª×÷Õß:minben
Ô­À´µÄÏë·¨ÊÇÀûÓÃhookº¯Êý°Ñ°ü×¥ÏÂÀ´ºó£¬Í¨¹ýclone Æäskb½á¹¹ÔÙÐÞ¸ÄÀïÃæµÄÄ¿µÄmacµØÖ·È»ºóÓÃdev_queue_xmit½«cloneºóµÄÈô¸Éskb·¢Ë͵½²»Í¬µÄµØÖ·£¬ºóÀ´·¢ÏÖÕâ¸öÏë·¨ÓÐÎÊÌ⣬¾ÍÊÇÿ´ÎcloneÈ»ºódev_queue_xmitÕâ¸öskb½á¹¹ºó£¬Ëü²»ÊÇÂíÉÏ·¢ËÍÕâ¸ö°ü£¬¶øÊǷŵ½Ò»¸ö¶ÓÁÐÀÕâÑùÈôÐ޸ĵڶþ´ÎcloneµÄskbʱ¾Í»á·¢ÏÖµÚÒ»´ÎcloneµÄskbËùÒª·¢Ë͵ÄmacµØÖ·±»¸Ä±äÁË¡£¡£¡£µ±È»clone¸ÄΪcopy¾ÍûÎÊÌâÁË£¬µ«¸Ð¾õÕâÑù¿ªÏúÌ«´óÁË

ÓÐûÓа취ÿ´Îclone²¢µ÷ÓÃdev_queue_xmit£¨£©ºóÈÃËüÂíÉÏ·¢³öÈ¥ÄØ£¿»òÕßÓÐʲô±ðµÄ°ì·¨ÄØ£¿Äܲ»ÄÛ·ÂÕÕ×é²¥µÄ×ö·¨ÄØ£¿£¨¿´¹ýÏà¹ØÔ´´úÂ룬×é²¥ÊÇÓÃcloneµÄ£¬µ«ËüÓÐÒ»¸öcache¼Ç¼×鲥·ÓÉÐÅÏ¢¶øÇÒµ÷ÓõÄÊÇipmr_queue_xmit£©
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ