]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
i40e: Fix display error code in dmesg
authorGrzegorz Szczurek <grzegorzx.szczurek@intel.com>
Fri, 29 Oct 2021 09:26:01 +0000 (11:26 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:43:02 +0000 (18:43 +0100)
commitde6f36ef3df6b7cdd2c58d1a85242fd4d1706509
treead0bab493618a5b031a97f36d580ed03567377f4
parente446020d7734a9710c2604ba11fbf199a910808f
i40e: Fix display error code in dmesg

BugLink: https://bugs.launchpad.net/bugs/1954834
[ Upstream commit 5aff430d4e33a0b48a6b3d5beb06f79da23f9916 ]

Fix misleading display error in dmesg if tc filter return fail.
Only i40e status error code should be converted to string, not linux
error code. Otherwise, we return false information about the error.

Fixes: 2f4b411a3d67 ("i40e: Enable cloud filters via tc-flower")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Dave Switzer <david.switzer@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_main.c