diff options
| author | David S. Miller <davem@davemloft.net> | 2011-07-16 20:39:57 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-07-16 20:39:57 -0400 |
| commit | 47ec132a40d788d45e2f088545dea68798034dab (patch) | |
| tree | f3089b58b4ef12cca150bdd4bf213d8a627a0035 | |
| parent | 0895b08adeb3f660cdff21990d0a9c2b59a919e7 (diff) | |
neigh: Kill neigh_ops->hh_output
It's always dev_queue_xmit().
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | include/net/neighbour.h | 1 | ||||
| -rw-r--r-- | net/atm/clip.c | 1 | ||||
| -rw-r--r-- | net/core/neighbour.c | 4 | ||||
| -rw-r--r-- | net/decnet/dn_neigh.c | 3 | ||||
| -rw-r--r-- | net/ipv4/arp.c | 4 | ||||
| -rw-r--r-- | net/ipv6/ndisc.c | 3 |
6 files changed, 2 insertions, 14 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 337da241a80f..97990ddca66c 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
| @@ -122,7 +122,6 @@ struct neigh_ops { | |||
| 122 | void (*error_report)(struct neighbour *, struct sk_buff*); | 122 | void (*error_report)(struct neighbour *, struct sk_buff*); |
| 123 | int (*output)(struct sk_buff*); | 123 | int (*output)(struct sk_buff*); |
| 124 | int (*connected_output)(struct sk_buff*); | 124 | int (*connected_output)(struct sk_buff*); |
| 125 | int (*hh_output)(struct sk_buff*); | ||
| 126 | int (*queue_xmit)(struct sk_buff*); | 125 | int (*queue_xmit)(struct sk_buff*); |
| 127 | }; | 126 | }; |
| 128 | 127 | ||
diff --git a/net/atm/clip.c b/net/atm/clip.c index 1d4be60e1390..036cd43c13a4 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
| @@ -273,7 +273,6 @@ static const struct neigh_ops clip_neigh_ops = { | |||
| 273 | .error_report = clip_neigh_error, | 273 | .error_report = clip_neigh_error, |
| 274 | .output = dev_queue_xmit, | 274 | .output = dev_queue_xmit, |
| 275 | .connected_output = dev_queue_xmit, | 275 | .connected_output = dev_queue_xmit, |
| 276 | .hh_output = dev_queue_xmit, | ||
| 277 | .queue_xmit = dev_queue_xmit, | 276 | .queue_xmit = dev_queue_xmit, |
| 278 | }; | 277 | }; |
| 279 | 278 | ||
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 83f9998f3347..c22def5ae486 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
| @@ -746,7 +746,7 @@ static void neigh_connect(struct neighbour *neigh) | |||
| 746 | 746 | ||
| 747 | hh = &neigh->hh; | 747 | hh = &neigh->hh; |
| 748 | if (hh->hh_len) | 748 | if (hh->hh_len) |
| 749 | hh->hh_output = neigh->ops->hh_output; | 749 | hh->hh_output = dev_queue_xmit; |
| 750 | } | 750 | } |
| 751 | 751 | ||
| 752 | static void neigh_periodic_work(struct work_struct *work) | 752 | static void neigh_periodic_work(struct work_struct *work) |
| @@ -1222,7 +1222,7 @@ static void neigh_hh_init(struct neighbour *n, struct dst_entry *dst) | |||
| 1222 | goto end; | 1222 | goto end; |
| 1223 | 1223 | ||
| 1224 | if (n->nud_state & NUD_CONNECTED) | 1224 | if (n->nud_state & NUD_CONNECTED) |
| 1225 | hh->hh_output = n->ops->hh_output; | 1225 | hh->hh_output = dev_queue_xmit; |
| 1226 | else | 1226 | else |
| 1227 | hh->hh_output = n->ops->output; | 1227 | hh->hh_output = n->ops->output; |
| 1228 | 1228 | ||
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index 03eb22611801..abf4de851c63 100644 --- a/net/decnet/dn_neigh.c +++ b/net/decnet/dn_neigh.c | |||
| @@ -64,7 +64,6 @@ static const struct neigh_ops dn_long_ops = { | |||
| 64 | .error_report = dn_long_error_report, | 64 | .error_report = dn_long_error_report, |
| 65 | .output = dn_long_output, | 65 | .output = dn_long_output, |
| 66 | .connected_output = dn_long_output, | 66 | .connected_output = dn_long_output, |
| 67 | .hh_output = dev_queue_xmit, | ||
| 68 | .queue_xmit = dev_queue_xmit, | 67 | .queue_xmit = dev_queue_xmit, |
| 69 | }; | 68 | }; |
| 70 | 69 | ||
| @@ -76,7 +75,6 @@ static const struct neigh_ops dn_short_ops = { | |||
| 76 | .error_report = dn_short_error_report, | 75 | .error_report = dn_short_error_report, |
| 77 | .output = dn_short_output, | 76 | .output = dn_short_output, |
| 78 | .connected_output = dn_short_output, | 77 | .connected_output = dn_short_output, |
| 79 | .hh_output = dev_queue_xmit, | ||
| 80 | .queue_xmit = dev_queue_xmit, | 78 | .queue_xmit = dev_queue_xmit, |
| 81 | }; | 79 | }; |
| 82 | 80 | ||
| @@ -88,7 +86,6 @@ static const struct neigh_ops dn_phase3_ops = { | |||
| 88 | .error_report = dn_short_error_report, /* Can use short version here */ | 86 | .error_report = dn_short_error_report, /* Can use short version here */ |
| 89 | .output = dn_phase3_output, | 87 | .output = dn_phase3_output, |
| 90 | .connected_output = dn_phase3_output, | 88 | .connected_output = dn_phase3_output, |
| 91 | .hh_output = dev_queue_xmit, | ||
| 92 | .queue_xmit = dev_queue_xmit | 89 | .queue_xmit = dev_queue_xmit |
| 93 | }; | 90 | }; |
| 94 | 91 | ||
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 3e5545675ccf..f5f0aa1cd3ac 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
| @@ -138,7 +138,6 @@ static const struct neigh_ops arp_generic_ops = { | |||
| 138 | .error_report = arp_error_report, | 138 | .error_report = arp_error_report, |
| 139 | .output = neigh_resolve_output, | 139 | .output = neigh_resolve_output, |
| 140 | .connected_output = neigh_connected_output, | 140 | .connected_output = neigh_connected_output, |
| 141 | .hh_output = dev_queue_xmit, | ||
| 142 | .queue_xmit = dev_queue_xmit, | 141 | .queue_xmit = dev_queue_xmit, |
| 143 | }; | 142 | }; |
| 144 | 143 | ||
| @@ -148,7 +147,6 @@ static const struct neigh_ops arp_hh_ops = { | |||
| 148 | .error_report = arp_error_report, | 147 | .error_report = arp_error_report, |
| 149 | .output = neigh_resolve_output, | 148 | .output = neigh_resolve_output, |
| 150 | .connected_output = neigh_resolve_output, | 149 | .connected_output = neigh_resolve_output, |
| 151 | .hh_output = dev_queue_xmit, | ||
| 152 | .queue_xmit = dev_queue_xmit, | 150 | .queue_xmit = dev_queue_xmit, |
| 153 | }; | 151 | }; |
| 154 | 152 | ||
| @@ -156,7 +154,6 @@ static const struct neigh_ops arp_direct_ops = { | |||
| 156 | .family = AF_INET, | 154 | .family = AF_INET, |
| 157 | .output = dev_queue_xmit, | 155 | .output = dev_queue_xmit, |
| 158 | .connected_output = dev_queue_xmit, | 156 | .connected_output = dev_queue_xmit, |
| 159 | .hh_output = dev_queue_xmit, | ||
| 160 | .queue_xmit = dev_queue_xmit, | 157 | .queue_xmit = dev_queue_xmit, |
| 161 | }; | 158 | }; |
| 162 | 159 | ||
| @@ -166,7 +163,6 @@ static const struct neigh_ops arp_broken_ops = { | |||
| 166 | .error_report = arp_error_report, | 163 | .error_report = arp_error_report, |
| 167 | .output = neigh_compat_output, | 164 | .output = neigh_compat_output, |
| 168 | .connected_output = neigh_compat_output, | 165 | .connected_output = neigh_compat_output, |
| 169 | .hh_output = dev_queue_xmit, | ||
| 170 | .queue_xmit = dev_queue_xmit, | 166 | .queue_xmit = dev_queue_xmit, |
| 171 | }; | 167 | }; |
| 172 | 168 | ||
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 7596f071d308..db782d2f7cc2 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
| @@ -107,7 +107,6 @@ static const struct neigh_ops ndisc_generic_ops = { | |||
| 107 | .error_report = ndisc_error_report, | 107 | .error_report = ndisc_error_report, |
| 108 | .output = neigh_resolve_output, | 108 | .output = neigh_resolve_output, |
| 109 | .connected_output = neigh_connected_output, | 109 | .connected_output = neigh_connected_output, |
| 110 | .hh_output = dev_queue_xmit, | ||
| 111 | .queue_xmit = dev_queue_xmit, | 110 | .queue_xmit = dev_queue_xmit, |
| 112 | }; | 111 | }; |
| 113 | 112 | ||
| @@ -117,7 +116,6 @@ static const struct neigh_ops ndisc_hh_ops = { | |||
| 117 | .error_report = ndisc_error_report, | 116 | .error_report = ndisc_error_report, |
| 118 | .output = neigh_resolve_output, | 117 | .output = neigh_resolve_output, |
| 119 | .connected_output = neigh_resolve_output, | 118 | .connected_output = neigh_resolve_output, |
| 120 | .hh_output = dev_queue_xmit, | ||
| 121 | .queue_xmit = dev_queue_xmit, | 119 | .queue_xmit = dev_queue_xmit, |
| 122 | }; | 120 | }; |
| 123 | 121 | ||
| @@ -126,7 +124,6 @@ static const struct neigh_ops ndisc_direct_ops = { | |||
| 126 | .family = AF_INET6, | 124 | .family = AF_INET6, |
| 127 | .output = dev_queue_xmit, | 125 | .output = dev_queue_xmit, |
| 128 | .connected_output = dev_queue_xmit, | 126 | .connected_output = dev_queue_xmit, |
| 129 | .hh_output = dev_queue_xmit, | ||
| 130 | .queue_xmit = dev_queue_xmit, | 127 | .queue_xmit = dev_queue_xmit, |
| 131 | }; | 128 | }; |
| 132 | 129 | ||
