]> git.proxmox.com Git - ovs.git/commitdiff
datapath: Add dellink op to ip6gre and ip6erspan tap ops
authorGreg Rose <gvrose8192@gmail.com>
Wed, 9 May 2018 22:04:45 +0000 (15:04 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 22 May 2018 03:33:29 +0000 (20:33 -0700)
Fix an oversight in the ip6gre_tap_ops and ip6erspan_tap_ops in
which the .dellink field was not initialized leading to bugs
when trying to remove and re-add those type of ports.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: William Tu <u9012063@gmail.com>
datapath/linux/compat/ip6_gre.c

index 23b1c831e554d202b24a64bab2a426d4cf24d9a4..1e2f46a38cff9ca39874b89172414c7423852632 100644 (file)
@@ -2324,6 +2324,7 @@ static struct rtnl_link_ops ip6gre_tap_ops __read_mostly = {
        .validate       = ip6gre_tap_validate,
        .newlink        = ip6gre_newlink,
        .changelink     = ip6gre_changelink,
+       .dellink        = ip6gre_dellink,
        .get_size       = ip6gre_get_size,
        .fill_info      = ip6gre_fill_info,
 #ifdef HAVE_GET_LINK_NET
@@ -2340,6 +2341,7 @@ static struct rtnl_link_ops ip6erspan_tap_ops __read_mostly = {
        .validate       = ip6erspan_tap_validate,
        .newlink        = ip6gre_newlink,
        .changelink     = ip6gre_changelink,
+       .dellink        = ip6gre_dellink,
        .get_size       = ip6gre_get_size,
        .fill_info      = ip6gre_fill_info,
 #ifdef HAVE_GET_LINK_NET