diff options
author | melifaro <melifaro@FreeBSD.org> | 2015-08-11 09:26:11 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2015-08-11 09:26:11 +0000 |
commit | d8f92ce2cfe8b9c73a429016a0fa82c19a19230a (patch) | |
tree | 6aacce2cd02cc4b0168ccde30e8ce8827ae45bc1 /contrib/netbsd-tests/lib/libc | |
parent | 84344d1daa9b49c850b25076f2c93ed3210b0d2e (diff) | |
download | FreeBSD-src-d8f92ce2cfe8b9c73a429016a0fa82c19a19230a.zip FreeBSD-src-d8f92ce2cfe8b9c73a429016a0fa82c19a19230a.tar.gz |
Store addresses instead of sockaddrs inside llentry.
This permits us having all (not fully true yet) all the info
needed in lookup process in first 64 bytes of 'struct llentry'.
struct llentry layout:
BEFORE:
[rwlock .. state .. state .. MAC ] (lle+1) [sockaddr_in[6]]
AFTER
[ in[6]_addr MAC .. state .. rwlock ]
Currently, address part of struct llentry has only 16 bytes for the key.
However, lltable does not restrict any custom lltable consumers with long
keys use the previous approach (store key at (lle+1)).
Sponsored by: Yandex LLC
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
0 files changed, 0 insertions, 0 deletions