net: use indirect calls helpers for ptype hook
authorPaolo Abeni <pabeni@redhat.com>
Fri, 3 May 2019 15:01:36 +0000 (17:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2019 17:38:04 +0000 (10:38 -0700)
commitf5737cbadb7d07c4f71fc5f073ccc7d8d8985a8f
tree9c6fc149d937c966be2681359cd3b39127e1c263
parentb52d031b8de496c39e0ba1b8cf5292ad8e4ae4fe
net: use indirect calls helpers for ptype hook

This avoids an indirect call per RX IPv6/IPv4 packet.
Note that we don't want to use the indirect calls helper for taps.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c