From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] net: ppp: use {get,put}_unaligned_be{16,32} Date: Fri, 07 Jan 2011 17:15:34 -0800 (PST) Message-ID: <20110107.171534.193718114.davem@davemloft.net> References: <1294357056-25889-1-git-send-email-xiaosuo@gmail.com> <20110107030145.GA8021@brick.ozlabs.ibm.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: paulus@samba.org, harvey.harrison@gmail.com, linux-ppp@vger.kernel.org, netdev@vger.kernel.org To: xiaosuo@gmail.com Return-path: In-Reply-To: Sender: linux-ppp-owner@vger.kernel.org List-Id: netdev.vger.kernel.org =46rom: Changli Gao Date: Sat, 8 Jan 2011 08:43:01 +0800 > On Fri, Jan 7, 2011 at 11:01 AM, Paul Mackerras wr= ote: >> On Fri, Jan 07, 2011 at 07:37:36AM +0800, Changli Gao wrote: >> >>> Signed-off-by: Changli Gao >> >> This patch description is inadequate. =A0It should tell us why you a= re >> making this change. =A0Does it result in smaller and/or faster code,= and >> if so by how much on what sort of machine? =A0Do you think it makes = the >> code clearer? =A0(I don't.) =A0Or is there some other motivation for= this? >> >=20 > Good designed APIs always make code clearer, smaller and faster. It i= s > obvious enough I think. I have to say that every time I go read the header parsing code in the PPP driver, I absolutely regret it. And Changli's patch fixes some of the readability problems.