Re: [PATCH net-next, v3] selftest: Add selftest for multicast address notifications

2025-06-18 Thread Yuyang Huang
Sorry, please ignore this patch. Accidentally send the old patch again. On Wed, Jun 18, 2025 at 7:32 PM Yuyang Huang wrote: > > This commit adds a new kernel selftest to verify RTNLGRP_IPV4_MCADDR > and RTNLGRP_IPV6_MCADDR notifications. The test works by adding and > removing a dummy interf

[PATCH net-next, v3] selftest: Add selftest for multicast address notifications

2025-06-18 Thread Yuyang Huang
This commit adds a new kernel selftest to verify RTNLGRP_IPV4_MCADDR and RTNLGRP_IPV6_MCADDR notifications. The test works by adding and removing a dummy interface and then confirming that the system correctly receives join and removal notifications for the 224.0.0.1 and ff02::1 multicast addresses

Re: [PATCH net-next, v3] selftest: Add selftest for multicast address notifications

2025-06-13 Thread Yuyang Huang
Thanks for the suggestion. >Perhaps move these to lib.sh as a separate commit? >They seem generic. I am looking at the existing test cases, and it seems that each case is doing its own way of handling the end_test()/run_cmd(). It's non-trivial to unify everything into lib.sh, and it seems to be a

Re: [PATCH net-next, v3] selftest: Add selftest for multicast address notifications

2025-06-13 Thread Jakub Kicinski
On Thu, 12 Jun 2025 11:05:14 +0900 Yuyang Huang wrote: > +VERBOSE=0 > +PAUSE=no > +PAUSE_ON_FAIL=no > + > +source lib.sh > + > +# set global exit status, but never reset nonzero one. > +check_err() > +{ > + if [ $ret -eq 0 ]; then > + ret=$1 > + fi > + [ -n "$2" ] && echo "$

[PATCH net-next, v3] selftest: Add selftest for multicast address notifications

2025-06-11 Thread Yuyang Huang
This commit adds a new kernel selftest to verify RTNLGRP_IPV4_MCADDR and RTNLGRP_IPV6_MCADDR notifications. The test works by adding and removing a dummy interface and then confirming that the system correctly receives join and removal notifications for the 224.0.0.1 and ff02::1 multicast addresses