commit | 091f36fbe3f3d09adf3191d63ca8352e0f3e5024 | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Wed Apr 12 11:26:12 2017 +0200 |
committer | Daniel Wagner <wagi@monom.org> | Mon Apr 17 21:26:18 2017 +0200 |
tree | 68940a2d87f6d605a7adfd654720187923803260 | |
parent | 4b76a15cfb9f5f735bced9706936ee6591b7ed66 [diff] |
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