]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix getting UDP tunnel entry
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tue, 14 Sep 2021 23:25:05 +0000 (19:25 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 14 Oct 2021 17:14:45 +0000 (10:14 -0700)
commitebc7b11beac73a3dfe59a8028d6b918179a7caa4
treee9d427e07df358bd6317fa6e671a94eaba3c4b28
parent40f41fb8e696ecb80c63254975210595c6d29d4b
ice: fix getting UDP tunnel entry

Correct parameters order in call to ice_tunnel_idx_to_entry function.

Entry in sparse port table is correct when the idx is 0. For idx 1 one
correct entry should be skipped, for idx 2 two of them should be skipped
etc. Change if condition to be true when idx is 0, which means that
previous valid entry of this tunnel type were skipped.

Fixes: 1f2cbcab8e06 ("ice: convert to new udp_tunnel infrastructure")
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_flex_pipe.c