]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r281765:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 May 2015 19:33:51 +0000 (19:33 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 May 2015 19:33:51 +0000 (19:33 +0000)
commitfd387cb66a615a3a93e2de30065fd13c1da7488d
tree5b7671cb6cb413e213a46dbda0e919b71155561d
parent9bb2aeb62fc25a86ddf9fcda119640f461a47068
MFC r281765:
Activate write-only optimization if bpf device opened with O_WRONLY.

dhclient opens bpf as write-only to send packets. It never reads received
packets from that descriptor, but processing them in kernel takes time.
Especially much time takes packet timestamping on systems with expensive
timecounter, such as bhyve guest, where network speed dropped in half.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@282427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/bpf.c