lkml.org 
[lkml]   [2023]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH net-next v5 3/5] net: bridge: Add netlink knobs for number / max learned FDB entries
    On Mon, Oct 16, 2023 at 03:27:22PM +0200, Johannes Nixdorf wrote:
    > The previous patch added accounting and a limit for the number of
    > dynamically learned FDB entries per bridge. However it did not provide
    > means to actually configure those bounds or read back the count. This
    > patch does that.
    >
    > Two new netlink attributes are added for the accounting and limit of
    > dynamically learned FDB entries:
    > - IFLA_BR_FDB_N_LEARNED (RO) for the number of entries accounted for
    > a single bridge.
    > - IFLA_BR_FDB_MAX_LEARNED (RW) for the configured limit of entries for
    > the bridge.
    >
    > The new attributes are used like this:
    >
    > # ip link add name br up type bridge fdb_max_learned 256
    > # ip link add name v1 up master br type veth peer v2
    > # ip link set up dev v2
    > # mausezahn -a rand -c 1024 v2
    > 0.01 seconds (90877 packets per second
    > # bridge fdb | grep -v permanent | wc -l
    > 256
    > # ip -d link show dev br
    > 13: br: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 [...]
    > [...] fdb_n_learned 256 fdb_max_learned 256
    >
    > Signed-off-by: Johannes Nixdorf <jnixdorf-oss@avm.de>

    Reviewed-by: Ido Schimmel <idosch@nvidia.com>

    \
     
     \ /
      Last update: 2023-10-17 13:07    [W:5.293 / U:0.688 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site