]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Merge branch 'main' into next
authorDavid Ahern <dsahern@gmail.com>
Mon, 12 Oct 2020 02:11:09 +0000 (20:11 -0600)
committerDavid Ahern <dsahern@gmail.com>
Mon, 12 Oct 2020 02:11:09 +0000 (20:11 -0600)
Signed-off-by: David Ahern <dsahern@gmail.com>
Makefile
ip/ipaddress.c
ip/iplink_ipoib.c
ip/ipntable.c
man/man8/ip-link.8.in

index cadda235863df39f829b4109f48486bb5356a72e..5b040415a12bbf124a1998806bf8c69a749f164e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@ LDLIBS += $(LIBNETLINK)
 all: config.mk
        @set -e; \
        for i in $(SUBDIRS); \
-       do echo; echo $$i; $(MAKE) $(MFLAGS) -C $$i; done
+       do echo; echo $$i; $(MAKE) -C $$i; done
 
 .PHONY: clean clobber distclean check cscope version
 
@@ -101,11 +101,11 @@ version:
 
 clean:
        @for i in $(SUBDIRS) testsuite; \
-       do $(MAKE) $(MFLAGS) -C $$i clean; done
+       do $(MAKE) -C $$i clean; done
 
 clobber:
        touch config.mk
-       $(MAKE) $(MFLAGS) clean
+       $(MAKE) clean
        rm -f config.mk cscope.*
 
 distclean: clobber
index e69938b452bd5fe9e797f3c5e61b90a27b9ebd8c..571346b15cc358db7315cbdde4ff3dc45eeafdfc 100644 (file)
@@ -1285,8 +1285,8 @@ static const struct ifa_flag_data_t {
        { .name = "tentative",          .mask = IFA_F_TENTATIVE,        .readonly = true,       .v6only = true},
        { .name = "permanent",          .mask = IFA_F_PERMANENT,        .readonly = true,       .v6only = true},
        { .name = "mngtmpaddr",         .mask = IFA_F_MANAGETEMPADDR,   .readonly = false,      .v6only = true},
-       { .name = "noprefixroute",      .mask = IFA_F_NOPREFIXROUTE,    .readonly = false,      .v6only = true},
-       { .name = "autojoin",           .mask = IFA_F_MCAUTOJOIN,       .readonly = false,      .v6only = true},
+       { .name = "noprefixroute",      .mask = IFA_F_NOPREFIXROUTE,    .readonly = false,      .v6only = false},
+       { .name = "autojoin",           .mask = IFA_F_MCAUTOJOIN,       .readonly = false,      .v6only = false},
        { .name = "stable-privacy",     .mask = IFA_F_STABLE_PRIVACY,   .readonly = true,       .v6only = true},
 };
 
index 05dba3503373a4b3dec3971f6c6f4542d2dff911..b730c5335020cf1a843ff8b9e4a3cc6630a89b8a 100644 (file)
@@ -99,7 +99,7 @@ static void ipoib_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                snprintf(b1, sizeof(b1), "%#.4x", pkey);
                print_string(PRINT_JSON, "key", NULL, b1);
        } else {
-               fprintf(f, "pkey  %#.4x ", pkey);
+               fprintf(f, "pkey %#.4x ", pkey);
        }
 
        if (!tb[IFLA_IPOIB_MODE] ||
@@ -112,7 +112,7 @@ static void ipoib_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                mode == IPOIB_MODE_DATAGRAM ? "datagram" :
                mode == IPOIB_MODE_CONNECTED ? "connected" : "unknown";
 
-       print_string(PRINT_ANY, "mode", "mode  %s ", mode_str);
+       print_string(PRINT_ANY, "mode", "mode %s ", mode_str);
 
        if (!tb[IFLA_IPOIB_UMCAST] ||
            RTA_PAYLOAD(tb[IFLA_IPOIB_UMCAST]) < sizeof(__u16))
@@ -126,7 +126,7 @@ static void ipoib_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                snprintf(b1, sizeof(b1), "%.4x", umcast);
                print_string(PRINT_JSON, "umcast", NULL, b1);
        } else {
-               fprintf(f, "umcast  %.4x ", umcast);
+               fprintf(f, "umcast %.4x ", umcast);
        }
 }
 
index ddee4905df088e306296ce77e0410672bea37423..b5b06a3b06fad31a0967247b45f74f7841fd1117 100644 (file)
@@ -517,6 +517,11 @@ static void print_ndtstats(const struct ndt_stats *ndts)
        print_u64(PRINT_ANY, "forced_gc_runs", "forced_gc_runs %llu ",
                   ndts->ndts_forced_gc_runs);
 
+       print_string(PRINT_FP, NULL, "%s    ", _SL_);
+
+       print_u64(PRINT_ANY, "table_fulls", "table_fulls %llu ",
+                 ndts->ndts_table_fulls);
+
        print_nl();
 }
 
index 4acb5d47a8546d691c671488b19dc6e117d592b0..1eb76655fc3df8bed873d2d04148b6e52a66e75e 100644 (file)
@@ -1919,6 +1919,28 @@ change the
 .B MULTICAST
 flag on the device.
 
+.TP
+.BR "allmulticast on " or " allmulticast off"
+change the
+.B ALLMULTI
+flag on the device. When enabled, instructs network driver to retrieve all
+multicast packets from the network to the kernel for further processing.
+
+.TP
+.BR "promisc on " or " promisc off"
+change the
+.B PROMISC
+flag on the device. When enabled, activates promiscuous operation of the
+network device.
+
+.TP
+.BR "trailers on " or " trailers off"
+change the
+.B NOTRAILERS
+flag on the device,
+.B NOT
+used by the Linux and exists for BSD compatibility.
+
 .TP
 .BR "protodown on " or " protodown off"
 change the