diff options
author | Kalesh AP <kalesh.purayil@emulex.com> | 2014-09-02 09:56:53 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-02 12:46:00 -0700 |
commit | 0d3f5ccec907bcfb4f5d4941d762dc2f89b2d24d (patch) | |
tree | 0c45ab7354be2d89b5be495faee6956ab10b2fff /drivers/net/ethernet/emulex/benet/be.h | |
parent | 3fb8cb801a9393888c09bea38d3e9ca360221b66 (diff) | |
download | linux-0d3f5ccec907bcfb4f5d4941d762dc2f89b2d24d.tar.gz linux-0d3f5ccec907bcfb4f5d4941d762dc2f89b2d24d.tar.bz2 linux-0d3f5ccec907bcfb4f5d4941d762dc2f89b2d24d.zip |
be2net: define BE_MAX_MTU
This patch defines a new macro BE_MAX_MTU to make the code in be_change_mtu()
more readable.
Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 069bdda00c55..5ccfce7d616d 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -86,6 +86,8 @@ static inline char *nic_name(struct pci_dev *pdev) #define BE_MAX_JUMBO_FRAME_SIZE 9018 #define BE_MIN_MTU 256 +#define BE_MAX_MTU (BE_MAX_JUMBO_FRAME_SIZE - \ + (ETH_HLEN + ETH_FCS_LEN)) #define BE_NUM_VLANS_SUPPORTED 64 #define BE_MAX_EQD 128u |