net/ice/base: fix DCF switch rule
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 23 Apr 2020 13:07:04 +0000 (21:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:26 +0000 (15:54 +0200)
commita7b645debc2fe20c3ecb2ef5cb94c40ae49f59d3
tree36a2897270328e43bab300c233b16e1626fc0026
parentada64daa1a5b5745263b4f265f5b927194219e74
net/ice/base: fix DCF switch rule

1. ln_en bit should not be turned on, since we only support Rx VEB.
2. lan_en bit need to be turned on for a DCF switch rule, otherwise
   any Tx packet that hit on a rule will be dropped.

Fixes: fed0c5ca5f19 ("net/ice/base: support programming a new switch recipe")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_switch.c
drivers/net/ice/ice_switch_filter.c