| To: | Andrew Morton <akpm@xxxxxxxx> |
|---|---|
| Subject: | Re: [Lse-tech] Re: A common layer for Accounting packages |
| From: | Evgeniy Polyakov <johnpol@xxxxxxxxxxx> |
| Date: | Mon, 28 Feb 2005 11:04:36 +0300 |
| Cc: | Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxx>, kaigai@xxxxxxxxxxxxx, marcelo.tosatti@xxxxxxxxxxxx, davem@xxxxxxxxxx, jlan@xxxxxxx, lse-tech@xxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, elsa-devel@xxxxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <20050227233943.6cb89226.akpm@osdl.org> |
| Organization: | MIPT |
| References: | <42168D9E.1010900@sgi.com> <20050218171610.757ba9c9.akpm@osdl.org> <421993A2.4020308@ak.jp.nec.com> <421B955A.9060000@sgi.com> <421C2B99.2040600@ak.jp.nec.com> <421CEC38.7010008@sgi.com> <421EB299.4010906@ak.jp.nec.com> <20050224212839.7953167c.akpm@osdl.org> <20050227094949.GA22439@logos.cnet> <4221E548.4000008@ak.jp.nec.com> <20050227140355.GA23055@logos.cnet> <42227AEA.6050002@ak.jp.nec.com> <1109575236.8549.14.camel@frecb000711.frec.bull.fr> <20050227233943.6cb89226.akpm@osdl.org> |
| Reply-to: | johnpol@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Sun, 2005-02-27 at 23:39 -0800, Andrew Morton wrote:
> Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxx> wrote:
> >
> > Ok the protocol is maybe too "basic" but with this mechanism the user
> > space application that uses the fork connector can start and stop the
> > send of messages. This implementation needs somme improvements because
> > currently, if two application are using the fork connector one can
> > enable it and the other don't know if it is enable or not, but the idea
> > is here I think.
>
> Yes. But this problem can be solved in userspace, with a little library
> function and a bit of locking.
>
> IOW: use the library to enable/disable the fork connector rather than
> directly doing syscalls.
>
> It has the problem that if a client of that library crashes, the counter
> gets out of whack, but really, it's not all _that_ important, and to handle
> this properly in-kernel each client would need an open fd against some
> object so we can do the close-on-exit thing properly. You'd need to create
> a separate netlink socket for the purpose.
Why dont just extend protocol a bit?
Add header after cn_msg, which will have get/set field and that is all.
Properly using seq/ack fields userspace can avoid locks.
--
Evgeniy Polyakov
Crash is better than data corruption -- Arthur Grabowski
|
| Previous by Date: | questions about ipsec-tools-0.4 and linux kernel 2.6, Emilio Calicchio |
|---|---|
| Next by Date: | Re: pppoe and receive checksum offload, Alexey Kuznetsov |
| Previous by Thread: | Re: [Lse-tech] Re: A common layer for Accounting packages, Andrew Morton |
| Next by Thread: | Re: [Lse-tech] Re: A common layer for Accounting packages, jamal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |