dhcp: Reduce socket creation/bind latency

When creating a PF_PACKET socket with subsequent bind() call - both using
the same protocol argument - passing the protocol to socket() is
redundant and omitting it can save some latency. This should drop the
cost of the subsequent bind() to almost zero, see [1] for details.

Reference:
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=902fefb82ef72a50c78cb4a20cc954b037a98d1c

3 files changed