On Fri, 2007-21-09 at 17:25 +0800, John Ye wrote: > David, > > Thanks for your reply. I understand it's not worth to do. > > I have made it a loadable module to fulfill the function. it mainly for busy > NAT gateway server with SMP to speed up. >
John, It was a little hard to read your code; however, it does seems to me like will cause a massive amount of packet reordering to the end hosts using you as the gateway especially when it is receiving a lot of packets/second. You have a queue per CPU that connects your bottom and top half and several CPUs that may service a single NIC in your bottom half. one cpu in either bottom/top half has to be slightly loaded and you loose the ordering where incoming doesnt match outgoing packet order. cheers, jamal - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html