diff options
| author | 2021-09-14 19:25:05 -0400 | |
|---|---|---|
| committer | 2021-10-14 10:14:45 -0700 | |
| commit | e4c2efa1393c6f1fbfabf91d1d83fcb4ae691ccb (patch) | |
| tree | e9d427e07df358bd6317fa6e671a94eaba3c4b28 /drivers/net/ethernet/intel/ice/ice_devlink.c | |
| parent | ice: Avoid crash from unnecessary IDA free (diff) | |
| download | linux-dev-e4c2efa1393c6f1fbfabf91d1d83fcb4ae691ccb.tar.xz linux-dev-e4c2efa1393c6f1fbfabf91d1d83fcb4ae691ccb.zip | |
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: b20e6c17c468 ("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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_devlink.c')
0 files changed, 0 insertions, 0 deletions
