]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ixgbe: fix large MTU request from VF
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 20 May 2021 18:18:35 +0000 (11:18 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:00 +0000 (19:23 +0200)
commit2951e81429054314f9c4176cda3c9cc61d2b9d3f
treebc13beeeaaec0a0e8bd0351e4c8694a91d5c9c52
parent2b06249a92398c0be01b364b4135fca46a6dd117
ixgbe: fix large MTU request from VF

BugLink: https://bugs.launchpad.net/bugs/1931896
[ Upstream commit 63e39d29b3da02e901349f6cd71159818a4737a6 ]

Check that the MTU value requested by the VF is in the supported
range of MTUs before attempting to set the VF large packet enable,
otherwise reject the request. This also avoids unnecessary
register updates in the case of the 82599 controller.

Fixes: 872844ddb9e4 ("ixgbe: Enable jumbo frames support w/ SR-IOV")
Co-developed-by: Piotr Skajewski <piotrx.skajewski@intel.com>
Signed-off-by: Piotr Skajewski <piotrx.skajewski@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Co-developed-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c