diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-11-15 15:34:57 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-11-15 15:34:57 +0000 |
commit | 0962779fc8a719f816322d645370ef7810325043 (patch) | |
tree | 58209ea0a62f6fe4ff52e40962325a1716f820df /sys/dev | |
parent | 86ae353066e692bce701fc2d2b6ae6251e51969b (diff) |
in ice(4), ensure that vsi->max_frame_size gets set
dlg@ advised me that our drivers should always configure the largest
frame size supported by hardware
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_ice.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_ice.c b/sys/dev/pci/if_ice.c index c7a9b530c02..530b7b73e29 100644 --- a/sys/dev/pci/if_ice.c +++ b/sys/dev/pci/if_ice.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ice.c,v 1.5 2024/11/14 09:39:52 stsp Exp $ */ +/* $OpenBSD: if_ice.c,v 1.6 2024/11/15 15:34:56 stsp Exp $ */ /* Copyright (c) 2024, Intel Corporation * All rights reserved. @@ -15193,6 +15193,8 @@ void ice_setup_vsi_common(struct ice_softc *sc, struct ice_vsi *vsi, enum ice_vsi_type type, int idx, bool dynamic) { + struct ice_hw *hw = &sc->hw; + /* Store important values in VSI struct */ vsi->type = type; vsi->sc = sc; @@ -15208,6 +15210,7 @@ ice_setup_vsi_common(struct ice_softc *sc, struct ice_vsi *vsi, ice_add_vsi_tunables(vsi, sc->vsi_sysctls); #endif vsi->mbuf_sz = MCLBYTES + ETHER_ALIGN; + vsi->max_frame_size = hw->port_info->phy.link_info.max_frame_size; } /** |