]> git.proxmox.com Git - mirror_iproute2.git/commit
iplink:macvlan: Added bcqueuelen parameter
authorThomas Karlsson <thomas.karlsson@paneda.se>
Mon, 14 Dec 2020 10:42:18 +0000 (11:42 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 16 Dec 2020 04:02:07 +0000 (04:02 +0000)
commit42f5642a40a70e2ad0a10563397d6aa714299390
tree590309d1c41dd50245c2c01c41e9c38846bf40f5
parentee50fd58dc7822c16cebc13c655ca93b14edad21
iplink:macvlan: Added bcqueuelen parameter

This patch allows the user to set and retrieve the
IFLA_MACVLAN_BC_QUEUE_LEN parameter via the bcqueuelen
command line argument

This parameter controls the requested size of the queue for
broadcast and multicast packages in the macvlan driver.

If not specified, the driver default (1000) will be used.

Note: The request is per macvlan but the actually used queue
length per port is the maximum of any request to any macvlan
connected to the same port.

For this reason, the used queue length IFLA_MACVLAN_BC_QUEUE_LEN_USED
is also retrieved and displayed in order to aid in the understanding
of the setting. However, it can of course not be directly set.

Signed-off-by: Thomas Karlsson <thomas.karlsson@paneda.se>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iplink_macvlan.c
man/man8/ip-link.8.in