summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bgmac.h
diff options
context:
space:
mode:
authorJon Mason <jon.mason@broadcom.com>2017-02-28 21:50:59 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-07 04:17:47 +0300
commit02083c3aeda7b5fab49920b7fd9277b2c9ec50a9 (patch)
treeeaba8ede78f1a05ddc3ea53423ee00c1d73eb2c8 /drivers/net/ethernet/broadcom/bgmac.h
parent452349c3235252aaccaf30cc75402827d43b72d4 (diff)
downloadlinux-02083c3aeda7b5fab49920b7fd9277b2c9ec50a9.tar.xz
net: ethernet: bgmac: use #defines for MAX size
The maximum frame size is really just the standard ethernet frame size and FCS. So use those existing defines to make the code a little more beautiful. Signed-off-by: Jon Mason <jon.mason@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bgmac.h')
-rw-r--r--drivers/net/ethernet/broadcom/bgmac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.h b/drivers/net/ethernet/broadcom/bgmac.h
index 6d1c6ff1ed96..a75ed3538e5c 100644
--- a/drivers/net/ethernet/broadcom/bgmac.h
+++ b/drivers/net/ethernet/broadcom/bgmac.h
@@ -402,7 +402,7 @@
#define BGMAC_WEIGHT 64
-#define ETHER_MAX_LEN 1518
+#define ETHER_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
/* Feature Flags */
#define BGMAC_FEAT_TX_MASK_SETUP BIT(0)