mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
vxlan: Add vxlan_fdb_find_uc() for FDB querying
A switchdev-capable driver that is aware of VXLAN may need to query VXLAN FDB. In the particular case of mlxsw, this functionality is limited to querying UC FDBs. Those being easier to deal with than the general case of RDST chain traversal, introduce an interface to query specifically UC FDBs: vxlan_fdb_find_uc(). Signed-off-by: Petr Machata <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
9a99735317
commit
1941f1d645
2 changed files with 52 additions and 0 deletions
|
|
@ -420,4 +420,16 @@ struct switchdev_notifier_vxlan_fdb_info {
|
|||
__be32 vni;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_VXLAN)
|
||||
int vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni,
|
||||
struct switchdev_notifier_vxlan_fdb_info *fdb_info);
|
||||
#else
|
||||
static inline int
|
||||
vxlan_fdb_find_uc(struct net_device *dev, const u8 *mac, __be32 vni,
|
||||
struct switchdev_notifier_vxlan_fdb_info *fdb_info)
|
||||
{
|
||||
return -ENOENT;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue