On Mon, Jun 8, 2026 at 4:55 AM Adrian Moreno via dev <
[email protected]> wrote:

> Netdev flags are queried multiple times per poll loop. Sending a GETLINK
> command for each can be very inefficient if there is RTNL lock
> contention.
>
> Cache the result of the query as we do with other netdev attributes.
>
> Therefore, "netdev_get_flags" no longer fully populates the full
> internal netdev state. It only updates the flags, if needed.
>
> While testing, "insert_ipdev__()" was flagged as (incorrectly)
> relying on the old behavior, so this patch also makes sure the
> netdev's seq is cached only after the relevant internal fields
> have been fully updated.
>
> Signed-off-by: Adrian Moreno <[email protected]>
> ---


Acked-by: Mike Pattrick <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to