]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacef5604dc5e3c02d2a87cbe9b1c8daaf8ecc90b
treef0003d2d9e090f943bd9ffd25903153abccd70da
parent6a1ae804f1346a4b0c05a10eb7ee70e73254d6da
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