{
    "mode": "man",
    "parameter": "dcb-buffer",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/dcb-buffer/8/json",
    "generated": "2026-05-30T07:07:38Z",
    "synopsis": "dcb [ OPTIONS ] buffer { COMMAND | help }\ndcb buffer show dev DEV [ prio-buffer ] [ buffer-size ] [ total-size ]\ndcb buffer set dev DEV [ prio-buffer PRIO-MAP ] [ buffer-size SIZE-MAP ]\nPRIO-MAP := [ PRIO-MAP ] PRIO-MAPPING\nPRIO-MAPPING := { PRIO | all }:BUFFER\nSIZE-MAP := [ SIZE-MAP ] SIZE-MAPPING\nSIZE-MAPPING := { BUFFER | all }:SIZE\nPRIO := { 0 .. 7 }\nBUFFER := { 0 .. 7 }\nSIZE := { INTEGER | INTEGERK | INTEGERM | ... }",
    "sections": {
        "NAME": {
            "content": "dcb-buffer - show / manipulate port buffer settings of the DCB (Data Center Bridging) subsys‐\ntem\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dcb [ OPTIONS ] buffer { COMMAND | help }\n\n\ndcb buffer show dev DEV [ prio-buffer ] [ buffer-size ] [ total-size ]\n\ndcb buffer set dev DEV [ prio-buffer PRIO-MAP ] [ buffer-size SIZE-MAP ]\n\nPRIO-MAP := [ PRIO-MAP ] PRIO-MAPPING\n\nPRIO-MAPPING := { PRIO | all }:BUFFER\n\nSIZE-MAP := [ SIZE-MAP ] SIZE-MAPPING\n\nSIZE-MAPPING := { BUFFER | all }:SIZE\n\nPRIO := { 0 .. 7 }\n\nBUFFER := { 0 .. 7 }\n\nSIZE := { INTEGER | INTEGERK | INTEGERM | ... }\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "dcb buffer is used to configure assignment of traffic to port buffers based on traffic prior‐\nity, and sizes of those buffers. It can be also used to inspect the current configuration, as\nwell as total device memory that the port buffers take.\n\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "For read-write parameters, the following describes only the write direction, i.e. as used\nwith the set command. For the show command, the parameter name is to be used as a simple key‐\nword without further arguments. This instructs the tool to show the value of a given parame‐\nter. When no parameters are given, the tool shows the complete buffer configuration.\n\n",
            "subsections": [
                {
                    "name": "total-size",
                    "content": "A read-only property that shows the total device memory taken up by port buffers. This\nmight be more than a simple sum of individual buffer sizes if there are any hidden or\ninternal buffers.\n\n\nprio-buffer PRIO-MAP\nPRIO-MAP uses the array parameter syntax, see dcb(8) for details. Keys are priorities,\nvalues are buffer indices. For each priority sets a buffer where traffic with that\npriority is directed to.\n\n\nbuffer-size SIZE-MAP\nSIZE-MAP uses the array parameter syntax, see dcb(8) for details. Keys are buffer in‐\ndices, values are sizes of that buffer in bytes.  The sizes can use the notation docu‐\nmented in section PARAMETERS at tc(8).  Note that the size requested by the tool can\nbe rounded or capped by the driver to satisfy the requirements of the device.\n\n"
                },
                {
                    "name": "EXAMPLE & USAGE",
                    "content": "Configure the priomap in a one-to-one fashion:\n\n\n# dcb buffer set dev eth0 prio-buffer 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7\n\nSet sizes of all buffers to 10KB, except for buffer 6, which will have the size 1MB:\n\n\n# dcb buffer set dev eth0 buffer-size all:10K 6:1M\n\nShow what was set:\n\n\n# dcb buffer show dev eth0\nprio-buffer 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7\nbuffer-size 0:10Kb 1:10Kb 2:10Kb 3:10Kb 4:10Kb 5:10Kb 6:1Mb 7:10Kb\ntotal-size 1222Kb\n\n"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "Exit status is 0 if command was successful or a positive integer upon failure.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "dcb(8)\n\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Report any bugs to the Network Developers mailing list <netdev@vger.kernel.org> where the de‐\nvelopment and maintenance is primarily done.  You do not have to be subscribed to the list to\nsend a message there.\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Petr Machata <me@pmachata.org>\n\n\n\niproute2                                  12 November 2020                             DCB-BUFFER(8)",
            "subsections": []
        }
    },
    "summary": "dcb-buffer - show / manipulate port buffer settings of the DCB (Data Center Bridging) subsys‐ tem",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "dcb",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/dcb/8/json"
        }
    ]
}