habanalabs/gaudi: add NIC security configuration
authorOded Gabbay <ogabbay@kernel.org>
Mon, 2 Nov 2020 19:09:33 +0000 (21:09 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:29 +0000 (10:47 +0200)
commit11dcb8c712354709b9d9aa6d6d0880217d008e99
treeaa457ba273533560ee13d86733f2185141534321
parentb3a9c0bd2f1847e637147b7175fe7d99d28bef33
habanalabs/gaudi: add NIC security configuration

Configure the security properties of the NIC IP. This is to prevent the
user process from doing something with the NIC that he shouldn't do. e.g.
crash the server, steal data, etc.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi_security.c