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)
commitc8baec385737074dad2f792267baa2c134d94ba6
tree1e6e3bd23a3a0c657dbb2295cf45da788a709274
parent49042c220b3a31e25902b36df71b23dc10efa0b8
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