HomeFreeBSD

Store addresses instead of sockaddrs inside llentry.

Description

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

Details

Provenance
melifaroAuthored on
Parents
rS286623: Remove extra lock, that IMO only creates potential problems now.
Branches
Unknown
Tags
Unknown