mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
neigh: Pass neighbour entry to output ops.
This will get us closer to being able to do "neigh stuff" completely independent of the underlying dst_entry for protocols (ipv4/ipv6) that wish to do so. We will also be able to make dst entries neigh-less. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
69ecca86da
commit
8f40b161de
8 changed files with 50 additions and 45 deletions
|
|
@ -150,8 +150,8 @@ static const struct neigh_ops arp_hh_ops = {
|
|||
|
||||
static const struct neigh_ops arp_direct_ops = {
|
||||
.family = AF_INET,
|
||||
.output = dev_queue_xmit,
|
||||
.connected_output = dev_queue_xmit,
|
||||
.output = neigh_direct_output,
|
||||
.connected_output = neigh_direct_output,
|
||||
};
|
||||
|
||||
static const struct neigh_ops arp_broken_ops = {
|
||||
|
|
@ -250,7 +250,7 @@ static int arp_constructor(struct neighbour *neigh)
|
|||
if (!dev->header_ops) {
|
||||
neigh->nud_state = NUD_NOARP;
|
||||
neigh->ops = &arp_direct_ops;
|
||||
neigh->output = dev_queue_xmit;
|
||||
neigh->output = neigh_direct_output;
|
||||
} else {
|
||||
/* Good devices (checked by reading texts, but only Ethernet is
|
||||
tested)
|
||||
|
|
|
|||
Loading…
Reference in a new issue