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)
commit49042c220b3a31e25902b36df71b23dc10efa0b8
treeb8c373b905cf92b3b1a3efe98a82433ac6fcb195
parentc5eb179edd8a169949b1fb153ecfd04649a71c8d
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