OSDN Git Service

net/mlx5e: Add neighbour hash table to the representors
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 2 Feb 2017 14:43:35 +0000 (16:43 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 30 Apr 2017 13:03:12 +0000 (16:03 +0300)
commit37b498ff238549b30c9e70d4e45f522fd53b8994
treef0003d2d9e090f943bd9ffd25903153abccd70da
parent033354d501862ca1f58caa1e5c5775712e1bff17
net/mlx5e: Add neighbour hash table to the representors

Add hash table to the representors which is to be used by the next patch
to save neighbours information in the driver.

In order to offload IP tunnel encapsulation rules, the driver must find
the tunnel dst neighbour according to the output device and the
destination address given by the user. The next patch will cache the
neighbors information in the driver to allow support in neigh update
flow for tunnel encap rules.

The neighbour entries are also saved in a list so we easily iterate over
them when querying statistics in order to provide 'used' feedback to the
kernel neighbour NUD core.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h