Skip to content

Commit

Permalink
net/ice: initialize parser for double VLAN
Browse files Browse the repository at this point in the history
[ upstream commit 6e753d777ffc540b81e53d4ef2315a805347460e ]

Double Vlan mode need to be configured for parser
Otherwise parser result will not be consistent with hardware.

Fixes: 531d255 ("net/ice: refactor parser usage")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Tested-by: Zhichao Zeng <zhichaox.zeng@intel.com>
  • Loading branch information
qzhan16 authored and kevintraynor committed Jul 11, 2023
1 parent 634cd44 commit 1c5b0a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/ice/ice_generic_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,11 @@ ice_flow_init(struct ice_adapter *ad)
if (ice_parser_create(&ad->hw, &ad->psr) != ICE_SUCCESS)
PMD_INIT_LOG(WARNING, "Failed to initialize DDP parser, raw packet filter will not be supported");

if (ice_is_dvm_ena(&ad->hw))
ice_parser_dvm_set(ad->psr, true);
else
ice_parser_dvm_set(ad->psr, false);

RTE_TAILQ_FOREACH_SAFE(engine, &engine_list, node, temp) {
if (engine->init == NULL) {
PMD_INIT_LOG(ERR, "Invalid engine type (%d)",
Expand Down

0 comments on commit 1c5b0a0

Please sign in to comment.