On Wed, Jun 3, 2015, at 21:58, Tom Herbert wrote:
> +static u32 hashrnd __read_mostly;
> +static __always_inline void ila_init_secret(void)
> +{
> + net_get_random_once(&hashrnd, sizeof(hashrnd));
> +}
> +
> +static inline unsigned int ila_hash(u64 id)
> +{
> + u32 *words = (u32 *)&id;
On 06/03/15 at 12:58pm, Tom Herbert wrote:
> +static struct genl_family ila_nl_family = {
> + .id = GENL_ID_GENERATE,
> + .hdrsize= 0,
> + .name = ILA_GENL_NAME,
> + .version= ILA_GENL_VERSION,
> + .maxattr= ILA_ATTR_MAX,
> + .ne
Adding new module name ila. This implements ILA tanslation. A netlink
interface is used to configure identifier to lacator mappings. Two
functions are exported to attempt to perform a translation on input
or output path.
Signed-off-by: Tom Herbert
---
include/net/ila.h | 7 +
net/ipv6/Kconfig