Skip to content

Commit

Permalink
param: Add additional key 'options' for interfaces
Browse files Browse the repository at this point in the history
The key 'options' specifies if server should spawn/kill listning sockets
in event of add/dropped ip addresses on specified interface.

Signed-off-by: Vinit Agnihotri <[email protected]>
Reviewed-by: Martin Schwenke <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
vagnihotri-ddn authored and Martin Schwenke committed Apr 16, 2024
1 parent 916fabe commit 9fcb62c
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions docs-xml/smbdotconf/base/interfaces.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
</para>

<para>
Known keys are speed, capability, and if_index. Speed is specified in
bits per second. Known capabilities are RSS and RDMA. The
Known keys are speed, capability, if_index and options. Speed
is specified in bits per second. Known capabilities are RSS and RDMA. The
if_index should be used with care: the values must not coincide with
indexes used by the kernel.
Note that these options are mainly intended for testing and
Expand All @@ -62,6 +62,24 @@
The specified values overwrite the auto-detected values.
</para>

<para>
The possible values for options are
&quot;dynamic&quot; and &quot;nodynamic&quot;.
Use this option in combination with setting
<smbconfoption name="bind interfaces only"/>
Use the &quot;dynamic&quot; to have smbd open/close listening sockets on the
interface, when IP addresses are added to or removed from the interface.
Use the &quot;nodynamic&quot; option to ignore any ip add/remove events for
interface.
Please note that when an IP address is removed, connections to that IP address
are also terminated (traditional behaviour has been to keep the TCP flow alive).
</para>

<para>
Note that dynamically opening/closing listening sockets is only available on some
operating systems (currently Linux).
</para>

<para>
The first two example below configures three network interfaces corresponding
to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10.
Expand All @@ -82,6 +100,7 @@
<value type="example">&quot;lo;speed=1000000000&quot; &quot;eth0;capability=RSS&quot;</value>
<value type="example">&quot;lo;speed=1000000000&quot; , &quot;eth0;capability=RSS&quot;</value>
<value type="example">&quot;eth0;capability=RSS&quot; , &quot;rdma1;capability=RDMA&quot; ; &quot;rdma2;capability=RSS,capability=RDMA&quot;</value>
<value type="example">&quot;eth0;options=dynamic&quot;</value>

<value type="default"/>
</samba:parameter>

0 comments on commit 9fcb62c

Please sign in to comment.