]> git.itanic.dy.fi Git - linux-stable/commit
i40e: Fix adding ADQ filter to TC0
authorGrzegorz Szczurek <grzegorzx.szczurek@intel.com>
Fri, 29 Apr 2022 12:27:08 +0000 (14:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jun 2022 12:27:58 +0000 (14:27 +0200)
commit83f0ed21f9297d67f3d06f31f0fbc20f1d9982ff
treeba624bfa94728c0ec8981cd66bf7c8f445047f79
parent937fcbb55a1e48a6422e87e8f49422c92265f102
i40e: Fix adding ADQ filter to TC0

[ Upstream commit c3238d36c3a2be0a29a9d848d6c51e1b14be6692 ]

Procedure of configure tc flower filters erroneously allows to create
filters on TC0 where unfiltered packets are also directed by default.
Issue was caused by insufficient checks of hw_tc parameter specifying
the hardware traffic class to pass matching packets to.

Fix checking hw_tc parameter which blocks creation of filters on TC0.

Fixes: 2f4b411a3d67 ("i40e: Enable cloud filters via tc-flower")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_main.c