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_lif.h | |
parent | 4787dd582dbde0b7f29eb3dbe59df3da1b350925 (diff) |
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_lif.h')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_lif.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.h b/drivers/net/ethernet/pensando/ionic/ionic_lif.h index ed126dd74e01..949f96dc9cd8 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.h +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.h @@ -184,6 +184,7 @@ struct ionic_lif { u16 lif_type; unsigned int nucast; + union ionic_lif_identity *identity; struct ionic_lif_info *info; dma_addr_t info_pa; u32 info_sz; |