Commit 36fdf8d
CKI Backport Bot
netlink: add IGMP/MLD join/leave notifications
JIRA: https://issues.redhat.com/browse/RHEL-84540
commit 2c2b61d
Author: Yuyang Huang <yuyanghuang@google.com>
Date: Wed Dec 11 17:22:41 2024 +0900
netlink: add IGMP/MLD join/leave notifications
This change introduces netlink notifications for multicast address
changes. The following features are included:
* Addition and deletion of multicast addresses are reported using
RTM_NEWMULTICAST and RTM_DELMULTICAST messages with AF_INET and
AF_INET6.
* Two new notification groups: RTNLGRP_IPV4_MCADDR and
RTNLGRP_IPV6_MCADDR are introduced for receiving these events.
This change allows user space applications (e.g., ip monitor) to
efficiently track multicast group memberships by listening for netlink
events. Previously, applications relied on inefficient polling of
procfs, introducing delays. With netlink notifications, applications
receive realtime updates on multicast group membership changes,
enabling more precise metrics collection and system monitoring.
This change also unlocks the potential for implementing a wide range
of sophisticated multicast related features in user space by allowing
applications to combine kernel provided multicast address information
with user space data and communicate decisions back to the kernel for
more fine grained control. This mechanism can be used for various
purposes, including multicast filtering, IGMP/MLD offload, and
IGMP/MLD snooping.
Cc: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Co-developed-by: Patrick Ruddy <pruddy@vyatta.att-mail.com>
Signed-off-by: Patrick Ruddy <pruddy@vyatta.att-mail.com>
Link: https://lore.kernel.org/r/20180906091056.21109-1-pruddy@vyatta.att-mail.com
Signed-off-by: Yuyang Huang <yuyanghuang@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>1 parent 5fe1165 commit 36fdf8d
File tree
6 files changed
+144
-21
lines changed- include
- linux
- net
- uapi/linux
- net
- ipv4
- ipv6
6 files changed
+144
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
91 | 108 | | |
92 | 109 | | |
93 | 110 | | |
| |||
525 | 542 | | |
526 | 543 | | |
527 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
528 | 549 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
774 | 778 | | |
775 | 779 | | |
776 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
777 | 785 | | |
778 | 786 | | |
779 | 787 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
1430 | 1432 | | |
1431 | 1433 | | |
1432 | 1434 | | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
1433 | 1492 | | |
1434 | 1493 | | |
1435 | 1494 | | |
| |||
1457 | 1516 | | |
1458 | 1517 | | |
1459 | 1518 | | |
| 1519 | + | |
| 1520 | + | |
1460 | 1521 | | |
1461 | 1522 | | |
1462 | 1523 | | |
| |||
1476 | 1537 | | |
1477 | 1538 | | |
1478 | 1539 | | |
| 1540 | + | |
1479 | 1541 | | |
1480 | 1542 | | |
1481 | 1543 | | |
| |||
1689 | 1751 | | |
1690 | 1752 | | |
1691 | 1753 | | |
| 1754 | + | |
| 1755 | + | |
1692 | 1756 | | |
1693 | 1757 | | |
1694 | 1758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5130 | 5130 | | |
5131 | 5131 | | |
5132 | 5132 | | |
5133 | | - | |
5134 | | - | |
5135 | | - | |
5136 | | - | |
5137 | | - | |
5138 | | - | |
5139 | | - | |
5140 | | - | |
5141 | | - | |
5142 | | - | |
5143 | | - | |
5144 | | - | |
5145 | | - | |
5146 | | - | |
5147 | | - | |
5148 | | - | |
5149 | 5133 | | |
5150 | 5134 | | |
5151 | 5135 | | |
| |||
5224 | 5208 | | |
5225 | 5209 | | |
5226 | 5210 | | |
5227 | | - | |
5228 | | - | |
5229 | | - | |
| 5211 | + | |
| 5212 | + | |
| 5213 | + | |
5230 | 5214 | | |
5231 | 5215 | | |
5232 | 5216 | | |
5233 | 5217 | | |
5234 | 5218 | | |
5235 | | - | |
| 5219 | + | |
| 5220 | + | |
5236 | 5221 | | |
5237 | 5222 | | |
5238 | 5223 | | |
| |||
5257 | 5242 | | |
5258 | 5243 | | |
5259 | 5244 | | |
| 5245 | + | |
5260 | 5246 | | |
5261 | 5247 | | |
5262 | 5248 | | |
| |||
5421 | 5407 | | |
5422 | 5408 | | |
5423 | 5409 | | |
| 5410 | + | |
5424 | 5411 | | |
5425 | 5412 | | |
5426 | 5413 | | |
| |||
5549 | 5536 | | |
5550 | 5537 | | |
5551 | 5538 | | |
| 5539 | + | |
5552 | 5540 | | |
5553 | 5541 | | |
5554 | 5542 | | |
| |||
5620 | 5608 | | |
5621 | 5609 | | |
5622 | 5610 | | |
| 5611 | + | |
5623 | 5612 | | |
5624 | 5613 | | |
5625 | 5614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
901 | 904 | | |
902 | 905 | | |
903 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
904 | 940 | | |
905 | 941 | | |
906 | 942 | | |
| |||
948 | 984 | | |
949 | 985 | | |
950 | 986 | | |
| 987 | + | |
951 | 988 | | |
952 | 989 | | |
953 | 990 | | |
| |||
977 | 1014 | | |
978 | 1015 | | |
979 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
980 | 1019 | | |
981 | 1020 | | |
982 | 1021 | | |
| |||
0 commit comments