From mboxrd@z Thu Jan 1 00:00:00 1970 From: Changli Gao Subject: Re: [PATCH net-next-2.6] net: Xmit Packet Steering (XPS) Date: Fri, 20 Nov 2009 13:50:42 +0800 Message-ID: <412e6f7f0911192150t112dec76gdb0de5f7e004b420@mail.gmail.com> References: <4B05D8DC.7020907@gmail.com> <412e6f7f0911191812uf0abc61w2f0d44f4d71bd55@mail.gmail.com> <4B0621FC.6060004@gmail.com> <412e6f7f0911192111jbc8b237sc619a54510219336@mail.gmail.com> <4B0627FA.3060103@gmail.com> <412e6f7f0911192134m24beca36m1887513513f130b8@mail.gmail.com> <4B062C51.8090100@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "David S. Miller" , Tom Herbert , Linux Netdev List To: Eric Dumazet Return-path: Received: from mail-pw0-f42.google.com ([209.85.160.42]:61856 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750728AbZKTFug convert rfc822-to-8bit (ORCPT ); Fri, 20 Nov 2009 00:50:36 -0500 Received: by pwi3 with SMTP id 3so1889334pwi.21 for ; Thu, 19 Nov 2009 21:50:42 -0800 (PST) In-Reply-To: <4B062C51.8090100@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Nov 20, 2009 at 1:42 PM, Eric Dumazet = wrote: > Changli Gao a =C3=A9crit : >> On Fri, Nov 20, 2009 at 1:24 PM, Eric Dumazet wrote: >>> Changli Gao a =C3=A9crit : >>> >>> Please re-read my patch, you misunderstood it, or I dont get you. >> >> I think I didn't misunderstand it. If local socket only sends packet= s, >> which don't need replies from receiver, so new NIC RX IRQ, and NET_R= X >> softirq won't be triggered. Who will call xps_flush() to free the >> memory used by locally generated packets? >> > > Changli, when we transmit a skb on NIC, NIC is supposed to have a TX = completion > call back, to free this skb. > > These completion calls are running from net_rx_action(), if driver is= NAPI enabled. > > Only NAPI enabled drivers are allowed to use XPS infrastructure. > > I sent 100.000.000 packets in my pktgen+tg3 tests, without receiving = a single packet > in return, I can tell you all packets were correctly freed :) > > Oh, I am so sorry. It seems I missed sth. I need to review the new NAPI. Thanks for your patience and help. --=20 Regards=EF=BC=8C Changli Gao(xiaosuo@gmail.com)