Re: [PATCH RFC] ipvs: add genetlink cmd to dump all services and destinations

2020-11-03 Thread Julian Anastasov
Hello, On Tue, 3 Nov 2020, Cezar Sá Espinola wrote: > > And now what happens if all dests can not fit in a packet? > > We should start next packet with the same svc? And then > > user space should merge the dests when multiple packets > > start with same service? > > My (maybe n

Re: [PATCH RFC] ipvs: add genetlink cmd to dump all services and destinations

2020-11-03 Thread Cezar Sá Espinola
Hi, > > + if (ctx->idx_svc == ctx->start_svc && ctx->last_svc != svc) > > + return 0; > > + > > + if (ctx->idx_svc > ctx->start_svc) { > > + if (ip_vs_genl_dump_service(skb, svc, cb) < 0) { > > + ctx->idx_svc--; > > + return -

Re: [PATCH RFC] ipvs: add genetlink cmd to dump all services and destinations

2020-11-02 Thread Julian Anastasov
Hello, On Fri, 30 Oct 2020, Cezar Sa Espinola wrote: > A common operation for userspace applications managing ipvs is to dump > all services and all destinations and then sort out what needs to be > done. Previously this could only be accomplished by issuing 1 netlink > IPVS_CMD_GET_SER

[PATCH RFC] ipvs: add genetlink cmd to dump all services and destinations

2020-10-30 Thread Cezar Sa Espinola
A common operation for userspace applications managing ipvs is to dump all services and all destinations and then sort out what needs to be done. Previously this could only be accomplished by issuing 1 netlink IPVS_CMD_GET_SERVICE dump command followed by N IPVS_CMD_GET_DEST dump commands. For a dy