]> git.baikalelectronics.ru Git - kernel.git/commit
vrf: track associations between VRF devices and tables
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Fri, 19 Jun 2020 22:54:44 +0000 (00:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jun 2020 00:22:22 +0000 (17:22 -0700)
commit548546829020c66aafc64c3a338554566dea6d92
tree1e6e3bd23a3a0c657dbb2295cf45da788a709274
parent090a08e0665d49b0724054442f3ccd4954135abf
vrf: track associations between VRF devices and tables

Add the data structures and the processing logic to keep track of the
associations between VRF devices and routing tables.
When a VRF is instantiated, it needs to refer to a given routing table.
For each table, we explicitly keep track of the existing VRFs that refer to
the table.

Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c