aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/pensando/ionic/ionic_dev.h
diff options
context:
space:
mode:
authorShannon Nelson <snelson@pensando.io>2020-07-21 13:34:04 -0700
committerDavid S. Miller <davem@davemloft.net>2020-07-21 18:36:34 -0700
commit4b03b27349c03b72a084b2484623a744565bc399 (patch)
tree7508c29f91b4d2b51ef610e0ac64441470b814bc /drivers/net/ethernet/pensando/ionic/ionic_dev.h
parentbareudp: Reverted support to enable & disable rx metadata collection (diff)
downloadlinux-dev-4b03b27349c03b72a084b2484623a744565bc399.tar.xz
linux-dev-4b03b27349c03b72a084b2484623a744565bc399.zip
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.h2
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