arp: decompose is_garp logic into a separate function
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 18 May 2017 19:41:19 +0000 (12:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:26:45 +0000 (13:26 -0400)
commit6fd05633bdafc0ae6ec0d55e61af10780d4d3530
tree831a02bc8d919ba4db70d0f5a35179dadddcf0f6
parent34eb5fe07831458cf8238d54c1fc847dedeaf68c
arp: decompose is_garp logic into a separate function

The code is quite involving already to earn a separate function for
itself. If anything, it helps arp_process readability.

Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/arp.c