summaryrefslogtreecommitdiffstats
path: root/scripts/gfp-translate
diff options
context:
space:
mode:
authorIhar Hrachyshka <ihrachys@redhat.com>2017-05-18 21:41:20 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-21 19:26:45 +0200
commitd9ef2e7bf99f59179b89d5c1c4d5b4919375daee (patch)
treee74202e0a4b22c1fc7d41b435c1fab43fab48ed2 /scripts/gfp-translate
parentarp: decompose is_garp logic into a separate function (diff)
downloadlinux-d9ef2e7bf99f59179b89d5c1c4d5b4919375daee.tar.xz
linux-d9ef2e7bf99f59179b89d5c1c4d5b4919375daee.zip
arp: postpone addr_type calculation to as late as possible
The addr_type retrieval can be costly, so it's worth trying to avoid its calculation as much as possible. This patch makes it calculated only for gratuitous ARP packets. This is especially important since later we may want to move is_garp calculation outside of arp_accept block, at which point the costly operation will be executed for all setups. The patch is the result of a discussion in net-dev: http://marc.info/?l=linux-netdev&m=149506354216994 Suggested-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gfp-translate')
0 files changed, 0 insertions, 0 deletions