Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-14 11:43:02 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-14 11:43:03 +0100
commit1bc8b4057ee7ea53f60a966be00c75e194a2c1c4 (patch)
tree7aa303511ad23b90a1f1d337ed0ef9a9b18adb8e
parentbf1255f5fa390df392ead2867671cdb5faab0b03 (diff)
gianfar: fix a flooded alignment reports because of padding
issue (bsc#1051510). suse-commit: 6d53afccd24ed9a73c7aeffa05fe86d641dafd53
-rw-r--r--drivers/net/ethernet/freescale/gianfar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c
index bc6c70ec4ea4..9f56d11e7392 100644
--- a/drivers/net/ethernet/freescale/gianfar.c
+++ b/drivers/net/ethernet/freescale/gianfar.c
@@ -1378,9 +1378,11 @@ static int gfar_probe(struct platform_device *ofdev)
gfar_init_addr_hash_table(priv);
- /* Insert receive time stamps into padding alignment bytes */
+ /* Insert receive time stamps into padding alignment bytes, and
+ * plus 2 bytes padding to ensure the cpu alignment.
+ */
if (priv->device_flags & FSL_GIANFAR_DEV_HAS_TIMER)
- priv->padding = 8;
+ priv->padding = 8 + DEFAULT_PADDING;
if (dev->features & NETIF_F_IP_CSUM ||
priv->device_flags & FSL_GIANFAR_DEV_HAS_TIMER)