Skip to content

Commit 02083c3

Browse files
Jon Masondavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 452349c commit 02083c3

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bgmac.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402

403403
#define BGMAC_WEIGHT 64
404404

405-
#define ETHER_MAX_LEN 1518
405+
#define ETHER_MAX_LEN (ETH_FRAME_LEN + ETH_FCS_LEN)
406406

407407
/* Feature Flags */
408408
#define BGMAC_FEAT_TX_MASK_SETUP BIT(0)

0 commit comments

Comments
 (0)