]> git.baikalelectronics.ru Git - kernel.git/commit
l3mdev: add infrastructure for table to VRF mapping
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Fri, 19 Jun 2020 22:54:43 +0000 (00:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jun 2020 00:22:22 +0000 (17:22 -0700)
commit090a08e0665d49b0724054442f3ccd4954135abf
treeb8c373b905cf92b3b1a3efe98a82433ac6fcb195
parent4fa9578ded181a9d54fa892b63c6994bc83fbfc1
l3mdev: add infrastructure for table to VRF mapping

Add infrastructure to l3mdev (the core code for Layer 3 master devices) in
order to find out the corresponding VRF device for a given table id.
Therefore, the l3mdev implementations:
 - can register a callback that returns the device index of the l3mdev
   associated with a given table id;
 - can offer the lookup function (table to VRF device).

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