]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r281765:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 May 2015 19:34:59 +0000 (19:34 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 May 2015 19:34:59 +0000 (19:34 +0000)
commit9420dd1bae7dee1a22cdc2733e9f2e8442a77fb5
tree94053df0828811eaf7e127bc94c68127104ebad5
parent78c8de19e05864b237e92e94d61a9478739795bf
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/9@282428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/bpf.c