aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-08 19:17:55 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-08 19:17:55 -0500
commit8d13a2a9fb3e5e3f68e9d3ec0de3c8fcfa56a224 (patch)
treefee1865c2fbfe8fbb67e8aed97fd8df18254d777
parente7b66bdc02592f5573ade667e4d68ac6e7b0f9e1 (diff)
net: Kill NETEVENT_PMTU_UPDATE.
Nobody actually does anything in response to the event, so just kill it off. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/cxgb3/cxgb3_offload.c2
-rw-r--r--drivers/net/cxgb4/cxgb4_main.c1
-rw-r--r--include/net/netevent.h1
-rw-r--r--net/ipv4/route.c1
-rw-r--r--net/ipv6/route.c1
5 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c
index ef02aa68c926..7ea94b5205f8 100644
--- a/drivers/net/cxgb3/cxgb3_offload.c
+++ b/drivers/net/cxgb3/cxgb3_offload.c
@@ -967,8 +967,6 @@ static int nb_callback(struct notifier_block *self, unsigned long event,
967 cxgb_neigh_update((struct neighbour *)ctx); 967 cxgb_neigh_update((struct neighbour *)ctx);
968 break; 968 break;
969 } 969 }
970 case (NETEVENT_PMTU_UPDATE):
971 break;
972 case (NETEVENT_REDIRECT):{ 970 case (NETEVENT_REDIRECT):{
973 struct netevent_redirect *nr = ctx; 971 struct netevent_redirect *nr = ctx;
974 cxgb_redirect(nr->old, nr->new); 972 cxgb_redirect(nr->old, nr->new);
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c
index ec35d458102c..5352c8a23f4d 100644
--- a/drivers/net/cxgb4/cxgb4_main.c
+++ b/drivers/net/cxgb4/cxgb4_main.c
@@ -2471,7 +2471,6 @@ static int netevent_cb(struct notifier_block *nb, unsigned long event,
2471 case NETEVENT_NEIGH_UPDATE: 2471 case NETEVENT_NEIGH_UPDATE:
2472 check_neigh_update(data); 2472 check_neigh_update(data);
2473 break; 2473 break;
2474 case NETEVENT_PMTU_UPDATE:
2475 case NETEVENT_REDIRECT: 2474 case NETEVENT_REDIRECT:
2476 default: 2475 default:
2477 break; 2476 break;
diff --git a/include/net/netevent.h b/include/net/netevent.h
index e82b7bab3ff3..22b239c17eaa 100644
--- a/include/net/netevent.h
+++ b/include/net/netevent.h
@@ -21,7 +21,6 @@ struct netevent_redirect {
21 21
22enum netevent_notif_type { 22enum netevent_notif_type {
23 NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */ 23 NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */
24 NETEVENT_PMTU_UPDATE, /* arg is struct dst_entry ptr */
25 NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */ 24 NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */
26}; 25};
27 26
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 2e225dafc4f8..0455af851751 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1762,7 +1762,6 @@ static void ip_rt_update_pmtu(struct dst_entry *dst, u32 mtu)
1762 } 1762 }
1763 dst_metric_set(dst, RTAX_MTU, mtu); 1763 dst_metric_set(dst, RTAX_MTU, mtu);
1764 dst_set_expires(dst, ip_rt_mtu_expires); 1764 dst_set_expires(dst, ip_rt_mtu_expires);
1765 call_netevent_notifiers(NETEVENT_PMTU_UPDATE, dst);
1766 } 1765 }
1767} 1766}
1768 1767
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 0a63d44e6f48..12ec83d48806 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -965,7 +965,6 @@ static void ip6_rt_update_pmtu(struct dst_entry *dst, u32 mtu)
965 dst_metric_set(dst, RTAX_FEATURES, features); 965 dst_metric_set(dst, RTAX_FEATURES, features);
966 } 966 }
967 dst_metric_set(dst, RTAX_MTU, mtu); 967 dst_metric_set(dst, RTAX_MTU, mtu);
968 call_netevent_notifiers(NETEVENT_PMTU_UPDATE, dst);
969 } 968 }
970} 969}
971 970