]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: mdb: Split source parsing to a separate function
authorIdo Schimmel <idosch@nvidia.com>
Thu, 15 Dec 2022 17:52:26 +0000 (19:52 +0200)
committerDavid Ahern <dsahern@kernel.org>
Mon, 19 Dec 2022 01:38:22 +0000 (18:38 -0700)
commitc305c76a01e1c81d8f04582dfce2fbc9194b9801
treea0c3eb590eab86cf8f73ac71bc16d6632ebfa298
parent935d942e69392bc66c837db1ce453feed8308392
bridge: mdb: Split source parsing to a separate function

Currently, the only attribute inside the 'MDBA_SET_ENTRY_ATTRS' nest is
'MDBE_ATTR_SOURCE', but subsequent patches are going to add more
attributes to the nest.

Prepare for the addition of these attributes by splitting the parsing of
individual attributes inside the nest to separate functions.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
bridge/mdb.c