Re: [PATCH v3] ip-nexthop: support flush by id

2021-04-08 Thread David Ahern
On 4/5/21 7:33 PM, Chunmei Xu wrote: > since id is unique for nexthop, it is heavy to dump all nexthops. > use existing delete_nexthop to support flush by id > > Signed-off-by: Chunmei Xu > --- > ip/ipnexthop.c | 20 +++- > 1 file changed, 19 insertions(+), 1 deletion(-) > appl

Re: [PATCH v3] ip-nexthop: support flush by id

2021-04-06 Thread Ido Schimmel
On Tue, Apr 06, 2021 at 09:33:23AM +0800, Chunmei Xu wrote: > since id is unique for nexthop, it is heavy to dump all nexthops. > use existing delete_nexthop to support flush by id > > Signed-off-by: Chunmei Xu Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel Thanks

[PATCH v3] ip-nexthop: support flush by id

2021-04-05 Thread Chunmei Xu
since id is unique for nexthop, it is heavy to dump all nexthops. use existing delete_nexthop to support flush by id Signed-off-by: Chunmei Xu --- ip/ipnexthop.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/ip/ipnexthop.c b/ip/ipnexthop.c index 0263307