]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
i40e: Fix correct max_pkt_size on VF RX queue
authorEryk Rybak <eryk.roch.rybak@intel.com>
Thu, 21 Jan 2021 16:17:22 +0000 (16:17 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:43:01 +0000 (18:43 +0100)
commitb3439eb58f127afe18602bd0a864ba16c5cb498d
tree2696b6bcce8ae191e5755a998390522bea95cc73
parent5e1db8c5ad5127b1299e57a8425318192015dc1e
i40e: Fix correct max_pkt_size on VF RX queue

BugLink: https://bugs.launchpad.net/bugs/1954834
[ Upstream commit 6afbd7b3c53cb7417189f476e99d431daccb85b0 ]

Setting VLAN port increasing RX queue max_pkt_size
by 4 bytes to take VLAN tag into account.
Trigger the VF reset when setting port VLAN for
VF to renegotiate its capabilities and reinitialize.

Fixes: ba4e003d29c1 ("i40e: don't hold spinlock while resetting VF")
Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Eryk Rybak <eryk.roch.rybak@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c