Message ID | 1375103935-24242-1-git-send-email-tmricht@linux.vnet.ibm.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
On Mon, 29 Jul 2013 15:18:55 +0200 Thomas Richter <tmricht@linux.vnet.ibm.com> wrote: > Add support for the bridge fdb replace command to replace an > existing entry in the vxlan device driver forwarding data base. > The entry is identified with its unicast mac address and its > corresponding remote destination information is updated. > > This is useful for virtual machine migration and replaces the > bridge fdb del and bridge fdb add commands. > > It follows the same interface as ip neigh replace commands. > > Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com> > --- > bridge/fdb.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > Please resubmit with proper subject so it gets picked up by patchwork and can be merged into iproute -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- a/bridge/fdb.c 2013-07-10 07:52:18.000000000 +0200 +++ b/bridge/fdb.c 2013-07-29 13:48:33.253679281 +0200 @@ -30,7 +30,7 @@ static void usage(void) { - fprintf(stderr, "Usage: bridge fdb { add | append | del } ADDR dev DEV {self|master} [ temp ]\n" + fprintf(stderr, "Usage: bridge fdb { add | append | del | replace } ADDR dev DEV {self|master} [ temp ]\n" " [router] [ dst IPADDR] [ vlan VID ]\n" " [ port PORT] [ vni VNI ] [via DEV]\n"); fprintf(stderr, " bridge fdb {show} [ dev DEV ]\n"); @@ -334,6 +334,8 @@ return fdb_modify(RTM_NEWNEIGH, NLM_F_CREATE|NLM_F_EXCL, argc-1, argv+1); if (matches(*argv, "append") == 0) return fdb_modify(RTM_NEWNEIGH, NLM_F_CREATE|NLM_F_APPEND, argc-1, argv+1); + if (matches(*argv, "replace") == 0) + return fdb_modify(RTM_NEWNEIGH, NLM_F_CREATE|NLM_F_REPLACE, argc-1, argv+1); if (matches(*argv, "delete") == 0) return fdb_modify(RTM_DELNEIGH, 0, argc-1, argv+1); if (matches(*argv, "show") == 0 ||
Add support for the bridge fdb replace command to replace an existing entry in the vxlan device driver forwarding data base. The entry is identified with its unicast mac address and its corresponding remote destination information is updated. This is useful for virtual machine migration and replaces the bridge fdb del and bridge fdb add commands. It follows the same interface as ip neigh replace commands. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com> --- bridge/fdb.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html