mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Query flow table capabilities according to the correct capability bit
for infiniband. Sponsored by: Mellanox Technologies MFC after: 1 week
This commit is contained in:
parent
adea303c2a
commit
627ef61aab
1 changed files with 5 additions and 1 deletions
|
|
@ -167,7 +167,11 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev)
|
|||
return err;
|
||||
}
|
||||
|
||||
if (MLX5_CAP_GEN(dev, nic_flow_table)) {
|
||||
if ((MLX5_CAP_GEN(dev, port_type) ==
|
||||
MLX5_CMD_HCA_CAP_PORT_TYPE_ETHERNET &&
|
||||
MLX5_CAP_GEN(dev, nic_flow_table)) ||
|
||||
(MLX5_CAP_GEN(dev, port_type) == MLX5_CMD_HCA_CAP_PORT_TYPE_IB &&
|
||||
MLX5_CAP_GEN(dev, ipoib_enhanced_offloads))) {
|
||||
err = mlx5_core_get_caps(dev, MLX5_CAP_FLOW_TABLE,
|
||||
HCA_CAP_OPMOD_GET_CUR);
|
||||
if (err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue