Commit f8d3e0d
committed
Merge branch 'nexthop-nexthop-dump-fixes'
Ido Schimmel says:
====================
nexthop: Nexthop dump fixes
Patches #1 and STMicroelectronics#3 fix two problems related to nexthops and nexthop
buckets dump, respectively. Patch STMicroelectronics#2 is a preparation for the third
patch.
The pattern described in these patches of splitting the NLMSG_DONE to a
separate response is prevalent in other rtnetlink dump callbacks. I
don't know if it's because I'm missing something or if this was done
intentionally to ensure the message is delivered to user space. After
commit 0642840 ("af_netlink: ensure that NLMSG_DONE never fails in
dumps") this is no longer necessary and I can improve these dump
callbacks assuming this analysis is correct.
No regressions in existing tests:
# ./fib_nexthops.sh
[...]
Tests passed: 230
Tests failed: 0
====================
Link: https://lore.kernel.org/r/20230808075233.3337922-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>2 files changed
Lines changed: 17 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3221 | 3221 | | |
3222 | 3222 | | |
3223 | 3223 | | |
3224 | | - | |
3225 | | - | |
| 3224 | + | |
3226 | 3225 | | |
3227 | 3226 | | |
3228 | | - | |
3229 | | - | |
3230 | | - | |
3231 | 3227 | | |
3232 | 3228 | | |
3233 | 3229 | | |
| |||
3367 | 3363 | | |
3368 | 3364 | | |
3369 | 3365 | | |
| 3366 | + | |
3370 | 3367 | | |
3371 | 3368 | | |
3372 | 3369 | | |
3373 | 3370 | | |
3374 | | - | |
3375 | | - | |
3376 | | - | |
3377 | | - | |
3378 | | - | |
| 3371 | + | |
| 3372 | + | |
3379 | 3373 | | |
3380 | 3374 | | |
3381 | 3375 | | |
3382 | | - | |
| 3376 | + | |
3383 | 3377 | | |
3384 | | - | |
3385 | | - | |
3386 | | - | |
3387 | | - | |
3388 | | - | |
| 3378 | + | |
3389 | 3379 | | |
3390 | 3380 | | |
3391 | 3381 | | |
| |||
3434 | 3424 | | |
3435 | 3425 | | |
3436 | 3426 | | |
3437 | | - | |
3438 | | - | |
| 3427 | + | |
3439 | 3428 | | |
3440 | 3429 | | |
3441 | | - | |
3442 | | - | |
3443 | | - | |
3444 | 3430 | | |
3445 | 3431 | | |
3446 | 3432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
1984 | 1989 | | |
1985 | 1990 | | |
1986 | 1991 | | |
| |||
2201 | 2206 | | |
2202 | 2207 | | |
2203 | 2208 | | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
2204 | 2214 | | |
2205 | 2215 | | |
2206 | 2216 | | |
| |||
0 commit comments