summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/descs.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-07-10 07:04:21 +0200
committerDavid S. Miller <davem@davemloft.net>2019-07-11 23:30:07 +0200
commitaa4c0c9091b0bb4cb261bbe0718d17c2834c4690 (patch)
tree5a7aa9bcd93eda4f4078a1c79f25200921551bf5 /drivers/net/ethernet/stmicro/stmmac/descs.h
parentnet: ethernet: mediatek: Fix misuses of GENMASK macro (diff)
downloadlinux-aa4c0c9091b0bb4cb261bbe0718d17c2834c4690.tar.xz
linux-aa4c0c9091b0bb4cb261bbe0718d17c2834c4690.zip
net: stmmac: Fix misuses of GENMASK macro
Arguments are supposed to be ordered high then low. Fixes: 293e4365a1ad ("stmmac: change descriptor layout") Fixes: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i") Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/descs.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/descs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/descs.h b/drivers/net/ethernet/stmicro/stmmac/descs.h
index 10429b05f932..9f0b9a9e63b3 100644
--- a/drivers/net/ethernet/stmicro/stmmac/descs.h
+++ b/drivers/net/ethernet/stmicro/stmmac/descs.h
@@ -123,7 +123,7 @@
#define ETDES1_BUFFER2_SIZE_SHIFT 16
/* Extended Receive descriptor definitions */
-#define ERDES4_IP_PAYLOAD_TYPE_MASK GENMASK(2, 6)
+#define ERDES4_IP_PAYLOAD_TYPE_MASK GENMASK(6, 2)
#define ERDES4_IP_HDR_ERR BIT(3)
#define ERDES4_IP_PAYLOAD_ERR BIT(4)
#define ERDES4_IP_CSUM_BYPASSED BIT(5)