diff options
| author | Yishai Hadas <[email protected]> | 2015-01-25 14:59:35 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-01-25 22:43:13 +0000 |
| commit | 872bf2fb69d90e3619befee842fc26db39d8e475 (patch) | |
| tree | cd57553d6b75b48bf75a9aa6c4358fbed88e7b4a /drivers/infiniband/hw/mlx4/alias_GUID.c | |
| parent | cxgb3: re-use native hex2bin() (diff) | |
| download | kernel-872bf2fb69d90e3619befee842fc26db39d8e475.tar.gz kernel-872bf2fb69d90e3619befee842fc26db39d8e475.zip | |
net/mlx4_core: Maintain a persistent memory for mlx4 device
Maintain a persistent memory that should survive reset flow/PCI error.
This comes as a preparation for coming series to support above flows.
Signed-off-by: Yishai Hadas <[email protected]>
Signed-off-by: Or Gerlitz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/alias_GUID.c')
| -rw-r--r-- | drivers/infiniband/hw/mlx4/alias_GUID.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/alias_GUID.c b/drivers/infiniband/hw/mlx4/alias_GUID.c index 0eb141c41416..a31e031afd87 100644 --- a/drivers/infiniband/hw/mlx4/alias_GUID.c +++ b/drivers/infiniband/hw/mlx4/alias_GUID.c @@ -154,7 +154,7 @@ void mlx4_ib_notify_slaves_on_guid_change(struct mlx4_ib_dev *dev, continue; slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; - if (slave_id >= dev->dev->num_vfs + 1) + if (slave_id >= dev->dev->persist->num_vfs + 1) return; tmp_cur_ag = *(__be64 *)&p_data[i * GUID_REC_SIZE]; form_cache_ag = get_cached_alias_guid(dev, port_num, |
