make mpls_input take a struct ifnet *ifp argument.
authordlg <dlg@openbsd.org>
Tue, 9 Jan 2018 06:24:14 +0000 (06:24 +0000)
committerdlg <dlg@openbsd.org>
Tue, 9 Jan 2018 06:24:14 +0000 (06:24 +0000)
commit5c53b9324545b7febab2dcf52402199d72b231d3
tree545d56affd3b3cd1a0e042e6c0658d79c4422714
parente70b5d68e0350bcf3756f0260eeb49034a4b1d65
make mpls_input take a struct ifnet *ifp argument.

this makes it like all our other protocol family input functions.

mpls_input always looks up the interface the mbuf was received on,
but it's always called by code that already has a reference to that
interface anyway. the result of this is a few less if_get/if_put
calls.

ok mpi@ bluhm@ visa@ claudio@
sys/net/if.c
sys/net/if_ethersubr.c
sys/netinet/ip_ether.c
sys/netinet/ip_gre.c
sys/netmpls/mpls.h
sys/netmpls/mpls_input.c