Skip to contentSkip to conversation

DECnet: Only use neigh_ops for adding the link layer header

PATCH David Miller 1 participant 1 message Mar 6, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

David Miller

author maintainer Applied
#1 lore raw

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->output as the method to decided when and which link-layer header to place on a packet. DECnet has been using neigh->output to 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_output to dn_neigh_output_packet.

Applied, thanks Eric.