HomeFreeBSD

Existense of PCB route caching doesn't allow us to use new fast route

Description

Existense of PCB route caching doesn't allow us to use new fast route
lookup KPI in ip_output() like it is already used in ip_forward().
However, when there is no PCB provided we can use fast KPI, gaining
performance advantage.

Typical case when ip_output() is called without a PCB pointer is a
sendto(2) on a not connected UDP socket. In practice DNS servers do
this.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D19804

Details

Committed
glebiusMay 8 2019, 11:39 PM
Reviewer
melifaro
Differential Revision
D19804: Use fib4_lookup_nh_ext() in ip_output().
Parents
rS347374: MFC 333174: Use PCI power-mgmt to reset a device if FLR fails.
Branches
Unknown
Tags
Unknown