kernel_samsung_a53x/drivers/net/ethernet/intel/i40e
Ivan Vecera 63df932ece i40e: Fix unexpected MFS warning message
[ Upstream commit 7d9f22b3d3ef379ed05bd3f3e2de83dfa8da8258 ]

Commit 3a2c6ced90e1 ("i40e: Add a check to see if MFS is set") added
a warning message that reports unexpected size of port's MFS (max
frame size) value. This message use for the port number local
variable 'i' that is wrong.
In i40e_probe() this 'i' variable is used only to iterate VSIs
to find FDIR VSI:

<code>
...
/* if FDIR VSI was set up, start it now */
        for (i = 0; i < pf->num_alloc_vsi; i++) {
                if (pf->vsi[i] && pf->vsi[i]->type == I40E_VSI_FDIR) {
                        i40e_vsi_open(pf->vsi[i]);
                        break;
                }
        }
...
</code>

So the warning message use for the port number index of FDIR VSI
if this exists or pf->num_alloc_vsi if not.

Fix the message by using 'pf->hw.port' for the port number.

Fixes: 3a2c6ced90e1 ("i40e: Add a check to see if MFS is set")
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:39 +01:00
..
i40e.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_adminq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_adminq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_adminq_cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_alloc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_client.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_common.c i40e: prevent crash on probe if hw registers have invalid values 2024-11-08 11:26:10 +01:00
i40e_dcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_dcb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_dcb_nl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_ddp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_devids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_diag.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_hmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_hmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_lan_hmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_lan_hmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_main.c i40e: Fix unexpected MFS warning message 2024-11-18 12:11:39 +01:00
i40e_nvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_osdep.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_prototype.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_register.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_status.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_txrx.c i40e: Fix wrong check for I40E_TXR_FLAGS_WB_ON_ITR 2024-11-18 10:58:30 +01:00
i40e_txrx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_txrx_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_type.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_virtchnl_pf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_virtchnl_pf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_xsk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e_xsk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00