net/ice/base: fix switch rule programming for all profiles
net/ice/base: fix switch rule programming for all profiles

In switch rule programming, if the caller requested tunnel type of
ICE_SW_TUN_AND_NON_TUN, then the code would incorrectly attempt to
add a tunneled UDP port in the training packet, this would cause the
rule addition to fail. This patch does not attempt to add the UDP
port so that the rule programming will succeed.

Fixes: c3d6ac02c0c3 ("net/ice/base: update switch training packets with open ports")

Signed-off-by: Dan Nowlin <f798bfdca3b57468eeb680e07665ba0b8339fb57@intel.com>
Signed-off-by: Paul M Stillwell Jr <e9d07c711ed532f6e96975f8a0cb18bd224808b8@intel.com>
Signed-off-by: Qi Zhang <9e9e58ffa71a29bb7b87766b362515be648fcbe0@intel.com>
Acked-by: Qiming Yang <6f20802c8a43e38f9b475618bd31b5b1ac8c8656@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk