Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbdLEQsv (ORCPT ); Tue, 5 Dec 2017 11:48:51 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:36936 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610AbdLEQsr (ORCPT ); Tue, 5 Dec 2017 11:48:47 -0500 Date: Tue, 05 Dec 2017 11:48:46 -0500 (EST) Message-Id: <20171205.114846.832978941751793517.davem@davemloft.net> To: zumeng.chen@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, claudiu.manoil@nxp.com Subject: Re: [PATCH 1/1] gianfar: fix a flooded alignment reports because of padding issue. From: David Miller In-Reply-To: <1512357722-12124-1-git-send-email-zumeng.chen@gmail.com> References: <1512357722-12124-1-git-send-email-zumeng.chen@gmail.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 05 Dec 2017 08:48:47 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 29 From: Zumeng Chen Date: Mon, 4 Dec 2017 11:22:02 +0800 > According to LS1021A RM, the value of PAL can be set so that the start of the > IP header in the receive data buffer is aligned to a 32-bit boundary. Normally, > setting PAL = 2 provides minimal padding to ensure such alignment of the IP > header. > > However every incoming packet's 8-byte time stamp will be inserted into the > packet data buffer as padding alignment bytes when hardware time stamping is > enabled. > > So we set the padding 8+2 here to avoid the flooded alignment faults: > > root@128:~# cat /proc/cpu/alignment > User: 0 > System: 17539 (inet_gro_receive+0x114/0x2c0) > Skipped: 0 > Half: 0 > Word: 0 > DWord: 0 > Multi: 17539 > User faults: 2 (fixup) > > Also shown when exception report enablement ... > Signed-off-by: Zumeng Chen Applied.