Blame SOURCES/0021-doc-ebtables-nft.8-Adjust-for-missing-atomic-options.patch

087bff
From f73416517ac7bb6868ff4c0199fcd4327c9dffa5 Mon Sep 17 00:00:00 2001
087bff
From: Phil Sutter <phil@nwl.cc>
087bff
Date: Wed, 28 Jul 2021 17:53:53 +0200
087bff
Subject: [PATCH] doc: ebtables-nft.8: Adjust for missing atomic-options
087bff
087bff
Drop any reference to them (and the environment variable) but list them
087bff
in BUGS section hinting at ebtables-save and -restore tools.
087bff
087bff
Fixes: 1939cbc25e6f5 ("doc: Adjust ebtables man page")
087bff
Signed-off-by: Phil Sutter <phil@nwl.cc>
087bff
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
087bff
(cherry picked from commit 765bf04ecc228783cb88c810c85bc0c769579c39)
087bff
---
087bff
 iptables/ebtables-nft.8 | 64 ++++++-----------------------------------
087bff
 1 file changed, 8 insertions(+), 56 deletions(-)
087bff
087bff
diff --git a/iptables/ebtables-nft.8 b/iptables/ebtables-nft.8
087bff
index 5bdc0bb8a939e..85f6738d7d1aa 100644
087bff
--- a/iptables/ebtables-nft.8
087bff
+++ b/iptables/ebtables-nft.8
087bff
@@ -44,12 +44,6 @@ ebtables \- Ethernet bridge frame table administration (nft-based)
087bff
 .br
087bff
 .BR "ebtables " [ -t " table ] " --init-table
087bff
 .br
087bff
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-commit
087bff
-.br
087bff
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-init
087bff
-.br
087bff
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-save
087bff
-.br
087bff
 
087bff
 .SH DESCRIPTION
087bff
 .PP
087bff
@@ -162,11 +156,9 @@ a table, the commands apply to the default filter table.
087bff
 Only one command may be used on the command line at a time, except when
087bff
 the commands
087bff
 .BR -L " and " -Z
087bff
-are combined, the commands
087bff
+are combined or the commands
087bff
 .BR -N " and " -P
087bff
-are combined, or when
087bff
-.B --atomic-file
087bff
-is used.
087bff
+are combined.
087bff
 .TP
087bff
 .B "-A, --append"
087bff
 Append a rule to the end of the selected chain.
087bff
@@ -326,39 +318,6 @@ of the ebtables kernel table.
087bff
 .TP
087bff
 .B "--init-table"
087bff
 Replace the current table data by the initial table data.
087bff
-.TP
087bff
-.B "--atomic-init"
087bff
-Copy the kernel's initial data of the table to the specified
087bff
-file. This can be used as the first action, after which rules are added
087bff
-to the file. The file can be specified using the
087bff
-.B --atomic-file
087bff
-command or through the
087bff
-.IR EBTABLES_ATOMIC_FILE " environment variable."
087bff
-.TP
087bff
-.B "--atomic-save"
087bff
-Copy the kernel's current data of the table to the specified
087bff
-file. This can be used as the first action, after which rules are added
087bff
-to the file. The file can be specified using the
087bff
-.B --atomic-file
087bff
-command or through the
087bff
-.IR EBTABLES_ATOMIC_FILE " environment variable."
087bff
-.TP
087bff
-.B "--atomic-commit"
087bff
-Replace the kernel table data with the data contained in the specified
087bff
-file. This is a useful command that allows you to load all your rules of a
087bff
-certain table into the kernel at once, saving the kernel a lot of precious
087bff
-time and allowing atomic updates of the tables. The file which contains
087bff
-the table data is constructed by using either the
087bff
-.B "--atomic-init"
087bff
-or the
087bff
-.B "--atomic-save"
087bff
-command to generate a starting file. After that, using the
087bff
-.B "--atomic-file"
087bff
-command when constructing rules or setting the
087bff
-.IR EBTABLES_ATOMIC_FILE " environment variable"
087bff
-allows you to extend the file and build the complete table before
087bff
-committing it to the kernel. This command can be very useful in boot scripts
087bff
-to populate the ebtables tables in a fast way.
087bff
 .SS MISCELLANOUS COMMANDS
087bff
 .TP
087bff
 .B "-V, --version"
087bff
@@ -384,16 +343,6 @@ a target extension (see
087bff
 .BR "TARGET EXTENSIONS" ")"
087bff
 or a user-defined chain name.
087bff
 .TP
087bff
-.B --atomic-file "\fIfile\fP"
087bff
-Let the command operate on the specified
087bff
-.IR file .
087bff
-The data of the table to
087bff
-operate on will be extracted from the file and the result of the operation
087bff
-will be saved back into the file. If specified, this option should come
087bff
-before the command specification. An alternative that should be preferred,
087bff
-is setting the
087bff
-.IR EBTABLES_ATOMIC_FILE " environment variable."
087bff
-.TP
087bff
 .B -M, --modprobe "\fIprogram\fP"
087bff
 When talking to the kernel, use this
087bff
 .I program
087bff
@@ -1113,8 +1062,6 @@ arp message and the hardware address length in the arp header is 6 bytes.
087bff
 .br
087bff
 .SH FILES
087bff
 .I /etc/ethertypes
087bff
-.SH ENVIRONMENT VARIABLES
087bff
-.I EBTABLES_ATOMIC_FILE
087bff
 .SH MAILINGLISTS
087bff
 .BR "" "See " http://netfilter.org/mailinglists.html
087bff
 .SH BUGS
087bff
@@ -1122,7 +1069,12 @@ The version of ebtables this man page ships with does not support the
087bff
 .B broute
087bff
 table. Also there is no support for
087bff
 .B string
087bff
-match. And finally, this list is probably not complete.
087bff
+match. Further, support for atomic-options
087bff
+.RB ( --atomic-file ", " --atomic-init ", " --atomic-save ", " --atomic-commit )
087bff
+has not been implemented, although
087bff
+.BR ebtables-save " and " ebtables-restore
087bff
+might replace them entirely given the inherent atomicity of nftables.
087bff
+Finally, this list is probably not complete.
087bff
 .SH SEE ALSO
087bff
 .BR xtables-nft "(8), " iptables "(8), " ip "(8), " nft (8)
087bff
 .PP
087bff
-- 
087bff
2.33.0
087bff