net: Kill NETEVENT_PMTU_UPDATE.
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2011 00:17:55 +0000 (16:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2011 00:17:55 +0000 (16:17 -0800)
Nobody actually does anything in response to the event,
so just kill it off.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/cxgb3_offload.c
drivers/net/cxgb4/cxgb4_main.c
include/net/netevent.h
net/ipv4/route.c
net/ipv6/route.c

index ef02aa68c9261dd7889975ed4a75c379f52cf196..7ea94b5205f88e71942f702dcf3cc1dc62fcf8e6 100644 (file)
@@ -967,8 +967,6 @@ static int nb_callback(struct notifier_block *self, unsigned long event,
                cxgb_neigh_update((struct neighbour *)ctx);
                break;
        }
-       case (NETEVENT_PMTU_UPDATE):
-               break;
        case (NETEVENT_REDIRECT):{
                struct netevent_redirect *nr = ctx;
                cxgb_redirect(nr->old, nr->new);
index ec35d458102c797ea7f19cf6fcacb9bff88aa408..5352c8a23f4da1fc4cfdd9a08df6d40fd886b89c 100644 (file)
@@ -2471,7 +2471,6 @@ static int netevent_cb(struct notifier_block *nb, unsigned long event,
        case NETEVENT_NEIGH_UPDATE:
                check_neigh_update(data);
                break;
-       case NETEVENT_PMTU_UPDATE:
        case NETEVENT_REDIRECT:
        default:
                break;
index e82b7bab3ff355bfe85bb6a0f8504ff3a4ea54d7..22b239c17eaa4509cd24a19146dd5676ff5b989a 100644 (file)
@@ -21,7 +21,6 @@ struct netevent_redirect {
 
 enum netevent_notif_type {
        NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */
-       NETEVENT_PMTU_UPDATE,      /* arg is struct dst_entry ptr */
        NETEVENT_REDIRECT,         /* arg is struct netevent_redirect ptr */
 };
 
index 2e225dafc4f8cb7e8be545d6fe07cc68f5ff64b0..0455af85175191518fa15ee311a022caa193ea6d 100644 (file)
@@ -1762,7 +1762,6 @@ static void ip_rt_update_pmtu(struct dst_entry *dst, u32 mtu)
                }
                dst_metric_set(dst, RTAX_MTU, mtu);
                dst_set_expires(dst, ip_rt_mtu_expires);
-               call_netevent_notifiers(NETEVENT_PMTU_UPDATE, dst);
        }
 }
 
index 0a63d44e6f485f6139bc8a99a906f3cc854a938b..12ec83d48806ed5820c7cba62939ab20ab12155c 100644 (file)
@@ -965,7 +965,6 @@ static void ip6_rt_update_pmtu(struct dst_entry *dst, u32 mtu)
                        dst_metric_set(dst, RTAX_FEATURES, features);
                }
                dst_metric_set(dst, RTAX_MTU, mtu);
-               call_netevent_notifiers(NETEVENT_PMTU_UPDATE, dst);
        }
 }