HomeFreeBSD

* Use newly-created nd6_grab_holdchain() function to retrieve lle

Description

  • Use newly-created nd6_grab_holdchain() function to retrieve lle hold mbuf chain instead of calling full-blown nd6_output_lle() for each packet. This simplifies both callers and nd6_output_lle() implementation.
  • Make nd6_output_lle() static and remove now-unused lle and chain arguments.
  • Rename nd6_output_flush() -> nd6_flush_holdchain() to be consistent.
  • Move all pre-send transmit hooks to newly-created nd6_output_ifp(). Now nd6_output(), nd6_output_lle() and nd6_flush_holdchain() are using it to send mbufs to if_output.
  • Remove SeND hook from nd6_na_input() because it was implemented incorrectly since the beginning (r211501):
    • it tagged initial input mbuf (m) instead of m_hold
    • tagging _all_ mbufs in holdchain seems to be wrong anyway.

Details

Provenance
melifaroAuthored on
Parents
rS276843: We don't want tests on these embedded boxes.
Branches
Unknown
Tags
Unknown

Event Timeline