diff options
| author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2015-07-30 17:34:23 +0300 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-08-26 20:02:13 +0200 |
| commit | d980a87bd912bf97ff94ff3c24895b5341febed5 (patch) | |
| tree | f25bc72971b826b415de7b9812fbfa9910112749 /fs/hfs | |
| parent | 4ea610aecfbf35a13103662caa144cb9c413bf8d (diff) | |
IB/mlx4: Forbid using sysfs to change RoCE pkeys
commit 2b135db3e81301d0452e6aa107349abe67b097d6 upstream.
The pkey mapping for RoCE must remain the default mapping:
VFs:
virtual index 0 = mapped to real index 0 (0xFFFF)
All others indices: mapped to a real pkey index containing an
invalid pkey.
PF:
virtual index i = real index i.
Don't allow users to change these mappings using files found in
sysfs.
Fixes: c1e7e466120b ('IB/mlx4: Add iov directory in sysfs under the ib device')
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions
