diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2015-07-30 17:34:23 +0300 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-09-30 11:13:10 +0200 |
commit | 36a2ea3b6de1e751a9563333a7b697098ee85195 (patch) | |
tree | 2846e19aa6974333d88d9e9eed4ca510569b13d1 /net/lapb/lapb_in.c | |
parent | d59a6097eb633280452bb656bd440ec83b42bc58 (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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions