{
    "mode": "man",
    "parameter": "tc-matchall",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/tc-matchall/8/json",
    "generated": "2026-10-06T04:20:05Z",
    "synopsis": "tc filter ... matchall [ skipsw | skiphw  ] [ action ACTIONSPEC ] [ classid CLASSID ]",
    "sections": {
        "NAME": {
            "content": "matchall - traffic control filter that matches every packet\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "tc filter ... matchall [ skipsw | skiphw  ] [ action ACTIONSPEC ] [ classid CLASSID ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  matchall filter allows one to classify every packet that flows on the port and run a ac‐\ntion on it.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "action ACTIONSPEC\nApply an action from the generic actions framework on matching packets.\n\nclassid CLASSID\nPush matching packets into the class identified by CLASSID.\n",
            "subsections": [
                {
                    "name": "skip_sw",
                    "content": "Do not process filter by software. If hardware has no offload support for this filter,\nor TC offload is not enabled for the interface, operation will fail.\n"
                },
                {
                    "name": "skip_hw",
                    "content": "Do not process filter by hardware.\n"
                }
            ]
        },
        "EXAMPLES": {
            "content": "To create ingress mirroring from port eth1 to port eth2:\n\ntc qdisc  add dev eth1 handle ffff: ingress\ntc filter add dev eth1 parent ffff:           \\\nmatchall skipsw                      \\\naction mirred egress mirror           \\\ndev eth2\n\nThe first command creates an ingress qdisc with handle ffff: on device eth1 where the  second\ncommand attaches a matchall filters on it that mirrors the packets to device eth2.\n\nTo create egress mirroring from port eth1 to port eth2:\n\ntc qdisc add dev eth1 handle 1: root prio\ntc filter add dev eth1 parent 1:               \\\nmatchall skipsw                       \\\naction mirred egress mirror            \\\ndev eth2\n\nThe  first command creates an egress qdisc with handle 1: that replaces the root qdisc on de‐\nvice eth1 where the second command attaches a matchall filters on it that mirrors the packets\nto device eth2.\n\nTo sample one of every 100 packets flowing into interface eth0 to psample group 12:\n\ntc qdisc add dev eth0 handle ffff: ingress\ntc filter add dev eth0 parent ffff: matchall \\\naction sample rate 100 group 12\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "tc(8),\n\niproute2                                     21 Oct 2015               Match-all classifier in tc(8)",
            "subsections": []
        }
    },
    "summary": "matchall - traffic control filter that matches every packet",
    "flags": [],
    "examples": [
        "To create ingress mirroring from port eth1 to port eth2:",
        "tc qdisc  add dev eth1 handle ffff: ingress",
        "tc filter add dev eth1 parent ffff:           \\",
        "matchall skipsw                      \\",
        "action mirred egress mirror           \\",
        "dev eth2",
        "The first command creates an ingress qdisc with handle ffff: on device eth1 where the  second",
        "command attaches a matchall filters on it that mirrors the packets to device eth2.",
        "To create egress mirroring from port eth1 to port eth2:",
        "tc qdisc add dev eth1 handle 1: root prio",
        "tc filter add dev eth1 parent 1:               \\",
        "matchall skipsw                       \\",
        "action mirred egress mirror            \\",
        "dev eth2",
        "The  first command creates an egress qdisc with handle 1: that replaces the root qdisc on de‐",
        "vice eth1 where the second command attaches a matchall filters on it that mirrors the packets",
        "to device eth2.",
        "To sample one of every 100 packets flowing into interface eth0 to psample group 12:",
        "tc qdisc add dev eth0 handle ffff: ingress",
        "tc filter add dev eth0 parent ffff: matchall \\",
        "action sample rate 100 group 12"
    ],
    "see_also": [
        {
            "name": "tc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tc/8/json"
        },
        {
            "name": "tc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tc/8/json"
        }
    ]
}