diff options
author | Shannon Nelson <snelson@pensando.io> | 2020-07-21 13:34:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-21 18:36:34 -0700 |
commit | 4b03b27349c03b72a084b2484623a744565bc399 (patch) | |
tree | 7508c29f91b4d2b51ef610e0ac64441470b814bc /drivers/net/ethernet/pensando/ionic/ionic_dev.h | |
parent | 4787dd582dbde0b7f29eb3dbe59df3da1b350925 (diff) | |
download | linux-4b03b27349c03b72a084b2484623a744565bc399.tar.bz2 |
ionic: get MTU from lif identity
Change from using hardcoded MTU limits and instead use the
firmware defined limits. The value from the LIF attributes is
the frame size, so we take off the header size to convert to
MTU size.
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pensando/ionic/ionic_dev.h')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_dev.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_dev.h b/drivers/net/ethernet/pensando/ionic/ionic_dev.h index 525434f10025..d5cba502abca 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_dev.h +++ b/drivers/net/ethernet/pensando/ionic/ionic_dev.h @@ -10,8 +10,6 @@ #include "ionic_if.h" #include "ionic_regs.h" -#define IONIC_MIN_MTU ETH_MIN_MTU -#define IONIC_MAX_MTU 9194 #define IONIC_MAX_TX_DESC 8192 #define IONIC_MAX_RX_DESC 16384 #define IONIC_MIN_TXRX_DESC 16 |