Skip to content

Commit

Permalink
net: ethernet: bgmac: use #defines for MAX size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jon Mason authored and davem330 committed Mar 7, 2017
1 parent 452349c commit 02083c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/bgmac.h
Expand Up @@ -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)
Expand Down

0 comments on commit 02083c3

Please sign in to comment.