Skip to content

Commit

Permalink
net/failsafe: allow subdevices to enable Rx drop
Browse files Browse the repository at this point in the history
Some drivers do not allow Rx drop to be disabled. If one subdevice
enables it by default, enable it for the failsafe ethdev as well.

Signed-off-by: Viacheslav Galaktionov <[email protected]>
  • Loading branch information
okt-galaktionov committed Nov 9, 2022
1 parent 59dc78f commit aa69f3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/failsafe/failsafe_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,8 @@ fs_dev_merge_info(struct rte_eth_dev_info *info,

info->hash_key_size = RTE_MIN(info->hash_key_size,
sinfo->hash_key_size);

info->default_rxconf.rx_drop_en |= sinfo->default_rxconf.rx_drop_en;
}

/**
Expand Down

0 comments on commit aa69f3e

Please sign in to comment.