]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Add 'control' trap type
authorIdo Schimmel <idosch@mellanox.com>
Sun, 7 Jun 2020 08:36:46 +0000 (11:36 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 11 Jun 2020 16:51:10 +0000 (09:51 -0700)
commitfd71244a2086036bdb1b44a8b2b8905ec2d4f100
tree643d7bde349af5c8b559e2c17b8268d9b1a4c711
parent12fafa27c7b306e6c397e858f4d5a8159500f659
devlink: Add 'control' trap type

This type is used for traps that trap control packets such as ARP
request and IGMP query to the CPU.

Example:

# devlink -jp trap show netdevsim/netdevsim10 trap igmp_v1_report
{
    "trap": {
        "netdevsim/netdevsim10": [ {
                "name": "igmp_v1_report",
                "type": "control",
                "generic": true,
                "action": "trap",
                "group": "mc_snooping"
            } ]
    }
}

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c