]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_core: Disable P_Key Violation Traps
authorHåkon Bugge <Haakon.Bugge@oracle.com>
Thu, 4 Oct 2018 11:04:38 +0000 (13:04 +0200)
committerBrian Maly <brian.maly@oracle.com>
Fri, 11 Jan 2019 18:15:38 +0000 (13:15 -0500)
commitca4da9d5e9d460f583414b94ed68f9ca953eecc5
treee047dc56dc0fbd871981cf39108e1302fe9365bd
parent0a1367a626848da88e5ca58bc145312cc3efc67a
mlx4_core: Disable P_Key Violation Traps

Exadata virt edition, actively using IB partitions, is exposed to
excessive P_Key Violation Traps being sent to the SM. This is close to
a DoS attack. In addition, the OpenSM logs are flooded with these
messages, hiding potential other log messages deemed important to
investigate customer issues.

In fw version 2.35.6312, the traps are disabled, still counting the
P-Key Violations.

This commit will conditionally disable the P_Key Violation Traps
subject to fw version.

Orabug: 27693633

Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
---

v1 -> v2:
   * Incorporated review comments form jch
   * Made the disabling dependent on fw version

Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/mellanox/mlx4/fw.c