]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-identical-routes-handling'
authorDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:32:14 +0000 (11:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:32:14 +0000 (11:32 -0500)
commitfa1b336f8980b9608fcf451ca2e7723f347452d9
tree3ecaed1a3b73f1b8f20dca868b5d3c923c3d2435
parentdb2be61a732f5b77630a792e9e82478dd15b7de9
parenta8ca1959cd1d9921575530c17a999ab52f79f541
Merge branch 'mlxsw-identical-routes-handling'

Jiri Pirko says:

====================
mlxsw: Identical routes handling

Ido says:

The kernel can store several FIB aliases that share the same prefix and
length. These aliases can differ in other parameters such as TOS and
metric, which are taken into account during lookup.

Offloading devices might not have the same flexibility, allowing only a
single route with the same prefix and length to be reflected. mlxsw is
one such device.

This patchset aims to correctly handle this situation in the mlxsw
driver. The first four patches introduce small changes in the IPv4 FIB
code, so that listeners of the FIB notification chain will be able to
correctly handle identical routes.

The last three patches build on top of previous work and introduce the
necessary changes in the mlxsw driver. The biggest change is the
introduction of a FIB node, where identical routes are chained, instead
of a primitive reference counting. This is explained in detail in the
fifth patch.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>