VALECTL(8)
πΈ NAME πΈ
okay so bestie, this is valectl from the VALECTL(8) manual page in the System Manager's Manual β the icon of VALE switch management π
valectl β manage VALE network switches provided by netmap β¨
π SYNOPSIS π
Here's the exact usage shape, no cap:
valectl [-g valeSSS:PPP] [-a valeSSS:interface] [-h valeSSS:interface]
[-d valeSSS:interface] [-n interface] [-r interface]
[-l valeSSS:PPP] [-l] [-p valeSSS:PPP] [-P valeSSS:PPP]
[-C spec] [-m memid]
π DESCRIPTION π
valectl manages and inspects vale(4) network switches β think attaching and detaching interfaces, creating and deleting persistent VALE ports, or listing the existing switches and their ports. π¦
In the following, valeSSS is the name of a VALE switch, while valeSSS:PPP is the name of a VALE port of valeSSS. iykyk π
When issued without options it lists all the existing switch ports together with their internal bridge number and port number. periodt β¨
π OPTIONS π
-g valeSSS:PPPβ print the number of receive rings ofvaleSSS:PPP. π-a valeSSS:interfaceβ attachinterface(which must be an existing network interface) tovaleSSSand detach it from the host stack. π₯-h valeSSS:interfaceβ attachinterface(which must be an existing network interface) tovaleSSSwhile keeping it attached to the host stack. More precisely, packets coming from the host stack and directed to the interface will go through the switch, where they can still reach the interface if the switch rules allow it. Conversely, packets coming from the interface will go through the switch and, if appropriate, will reach the host stack. π«Ά-d valeSSS:interfaceβ detachinterfacefromvaleSSS. π-n interfaceβ create a new persistent VALE port with nameinterface. The name must be different from any other network interface already present in the system. β-r interfaceβ destroy the persistent VALE port with nameinterface. π-l valeSSS:PPPβ show the internal bridge number and port number of the given switch port. π-lβ the synopsis also has this lone-lform; the page only spells out the-l valeSSS:PPPversion in detail. π-p valeSSS:PPPβ enable polling mode forvaleSSS:PPP. In polling mode, a dedicated kernel thread is spawned to handle packets received fromvaleSSS:PPPand push them into the switch. The kernel thread busy waits on the switch port rather than relying on interrupts or notifications. Polling mode can only be used on physical NICs attached to a VALE switch. π₯-P valeSSS:PPPβ disable polling mode forvaleSSS:PPP. πΈ-C x | x,y | x,y,z | x,y,z,wβ when used in conjunction with-nit supplies the number of tx and rx rings and slots. The full format with four numbers gives, in order, number of tx slots, number of rx slots, number of tx rings and number of rx rings. The form with three numbers useszfor both the number of tx and the number of rx rings. The forms with less than two numbers use the default values for the number of rings. The form with two numbers supplies the numbers of tx and rx slots. The form with only one number usesxfor both the number of tx and the number of rx slots. π§
When used in conjunction with -p only the first three forms are used. The first number may be either 0 or 1. If 0, then all interface rings will be polled by a single thread, running on the core id given by the second number (the third number, if present, must be 1). If the first number is 1, then the ring identified by the second number will be polled by the core with the same id. If a third number is given, then this is repeated for as many consecutive rings and cores. β¨
-m memidβ used in conjunction with-nsupplies the netmap memory region identifier to use together with the newly created persistent VALE port. These ports use a private memory region by default. Using this option you can let them share memory with other ports. Pass1asmemidto use the global memory region already shared by all hardware netmap ports. π
π¦ SEE ALSO π¦
netmap(4), vale(4) β go read these too, bestie π
π AUTHORS π
valectl has been written by Michio Honda at NetApp. iconic behavior, honestly π
π cute little sign-off: this page is from Debian, dated August 30, 2024, and yes β it's the VALECTL(8) manual. π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2016 Michio Honda
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms