mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 18:08:05 +02:00
platform: create id-only objects for deleting qdisc/tfilter in event_valid_msg()
It does not matter too much, but the code optimizes for deletion events. In that case, we don't require parsing the full netlink message. Instead, it's enough to parse only the ID part so that we can find the object in the cache that is to be removed removed. Fix that for qdisc/tfilter objects.
This commit is contained in:
parent
e43d1d90f3
commit
7bb6433214
1 changed files with 3 additions and 1 deletions
|
|
@ -5365,7 +5365,9 @@ event_valid_msg (NMPlatform *platform, struct nl_msg *msg, gboolean handle_event
|
|||
|
||||
if (NM_IN_SET (msghdr->nlmsg_type, RTM_DELLINK,
|
||||
RTM_DELADDR,
|
||||
RTM_DELROUTE)) {
|
||||
RTM_DELROUTE,
|
||||
RTM_DELQDISC,
|
||||
RTM_DELTFILTER)) {
|
||||
/* The event notifies about a deleted object. We don't need to initialize all
|
||||
* fields of the object. */
|
||||
is_del = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue