From mboxrd@z Thu Jan 1 00:00:00 1970 From: Armen Kaleshian Subject: Re: Can i use dev_queue_xmit Date: Tue, 6 Apr 2004 12:55:29 -0400 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <20040406165529.GA4584@sevoog.kriation.com> References: <1080048682.7452.69.camel@one.test.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "K.Anantha Kiran" Cc: linux-c-programming@vger.kernel.org Why don't you look at the source for iptables? Or use iptables instead of writing the kernel module from scratch? Good luck! On Tue, Apr 06, 2004 at 07:50:50PM +0530, K.Anantha Kiran wrote: : : We are supposed to build a kernel module which takes packets in the : internet through one interface and forward them to another interface of : my choice based on the IP,Port feilds in the packet. : : Our module is working fine for less rate(200Mbps) of traffic.If speed is : increasing(>200Mbps), for some packets "dev_queue_xmit()" is returning NET_XMIT_DROP due to which packets are being dropped. : : Can u suggest any solution. Can u give the reason for that return value : only for high traffic.Is there any speed restiction to dev_queue_xmit() : We are using Gigbyte traffic ethrtnet cards. : : Thanks in advance, : K.AnanthaKiran : : : : - : To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in : the body of a message to majordomo@vger.kernel.org : More majordomo info at http://vger.kernel.org/majordomo-info.html