From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 29 Nov 2011 07:18:10 +0100 From: Andrew Lunn Message-ID: <20111129061810.GG13600@lunn.ch> References: <201111290028.01655.lindner_marek@yahoo.de> <20111128184722.GC13600@lunn.ch> <201111290342.31065.lindner_marek@yahoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201111290342.31065.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [RFC] batman-adv: switch routing algorithm at runtime Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking > All functions are checked right now and all functions can be NULL. > Check the patch #2 ... This seems strange. What sort of routing protocol can you build, which has a NULL receive function? Only static routes. I would perform the check once in _register(), that there is a receive function, and never check it again. Save yourself a few cycles. There is an LWN article about these ideas. Worth a read. I will post a link later. Andrew