OSDN Git Service

Merge branch 'nh-flushing'
authorDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2021 22:20:35 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2021 22:20:35 +0000 (15:20 -0700)
commitc589fa10f1ed2d963c3ceaa40005d30231a0e556
tree88e81aa6a5ae89f4deb0f71177ca939fbcc3b052
parent56aa7b21a5a7d30484ab5833641cb172356225f1
parentbf5eb67dc80a75e0756269084b087c06f0360b78
Merge branch 'nh-flushing'

Ido Schimmel says:

====================
nexthop: Support large scale nexthop flushing

Patch #1 fixes a day-one bug in the nexthop code and allows "ip nexthop
flush" to work correctly with large number of nexthops that do not fit
in a single-part dump.

Patch #2 adds a test case.

Targeting at net-next since this use case never worked, the flow is
pretty obscure and such a large number of nexthops is unlikely to be
used in any real-world scenario.

Tested with fib_nexthops.sh:

Tests passed: 219
Tests failed:   0
====================

Signed-off-by: David S. Miller <davem@davemloft.net>