devlink: Add packet traps for 802.1X operation
authorIdo Schimmel <idosch@nvidia.com>
Tue, 8 Nov 2022 10:47:10 +0000 (11:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Nov 2022 03:06:14 +0000 (19:06 -0800)
commit2640a82bbc08393c846c7b55178079bb8ca31a8c
tree9caccc81b982d5b61726d62e338413cc586fb2bc
parent9c0ca02bace4837d123e1a5a30f6f44dbdc5fb92
devlink: Add packet traps for 802.1X operation

Add packet traps for 802.1X operation. The "eapol" control trap is used
to trap EAPOL packets and is required for the correct operation of the
control plane. The "locked_port" drop trap can be enabled to gain
visibility into packets that were dropped by the device due to the
locked bridge port check.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/devlink/devlink-trap.rst
include/net/devlink.h
net/core/devlink.c