DECnet: Only use neigh_ops for adding the link layer header
Subsystems (2)
From: [email protected] (Eric W. Biederman)
Date: Wed, 04 Mar 2015 10:16:43 -0600
Quoted 15 lines
Other users users of the neighbour table use
neigh->outputas the method to decided when and which link-layer header to place on a packet. DECnet has been usingneigh->outputto decide which DECnet headers to place on a packet depending which neighbour the packet is destined for.The DECnet usage isn't totally wrong but it can run into problems if the neighbour output function is run for a second time as the teql driver and the bridge netfilter code can do.
Therefore to avoid pathologic problems later down the line and make the neighbour code easier to understand by refactoring the decnet output code to only use a neighbour method to add a link layer header to a packet.
Quoted 4 lines
This is done by moving the neigbhour operations lookup from
dn_to_neigh_outputtodn_neigh_output_packet.Signed-off-by "Eric W. Biederman" <[email protected]>
Applied, thanks Eric.