]> git.itanic.dy.fi Git - linux-stable/commit
vxlan: mdb: Factor out a helper for remote entry size calculation
authorIdo Schimmel <idosch@nvidia.com>
Wed, 25 Oct 2023 12:30:13 +0000 (15:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2023 09:51:41 +0000 (10:51 +0100)
commit14c32a46d992412bc276b3365a0c3e5b8b1af9f2
tree6618b42d2decc111d14d544c9c70dc473bae5071
parentff97d2a956a142bc0383f52560dd46e003c216dd
vxlan: mdb: Factor out a helper for remote entry size calculation

Currently, netlink notifications are sent for individual remote entries
and not for the entire MDB entry itself.

Subsequent patches are going to add MDB get support which will require
the VXLAN driver to reply with an entire MDB entry.

Therefore, as a preparation, factor out a helper to calculate the size
of an individual remote entry. When determining the size of the reply
this helper will be invoked for each remote entry in the MDB entry.

No functional changes intended.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan/vxlan_mdb.c