Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 1998 08:44:09 -0300
From:      daniel_sobral@voga.com.br
To:        mike@smith.net.au
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Device Driver
Message-ID:  <83256585.003EA128.00@papagaio.voga.com.br>

next in thread | raw e-mail | index | archive | help

> "More input?"

Ok, let me try for "more input"...

> Will you be using it to perform end-to-end encryption on sockets?

Yup.

> How about encrypting the entire contents of ethernet datagrams?

Nope. Only the contents of IP packets. Possibly the contents of UDP and TCP
packets instead (as I said, that part I am not responsible for).

> Is the output of the card complete in itself, or
> does it encrypt streams of data?

Apart from the various miscellaneous functions, which fit nicely into
ioctl, the card does stream encryption, though access to it may be
optimized by using it's 8-byte internal buffer.

> Again, that depends on how you talk to it.  Sometimes you will use the
> standard device entries (if you plan to use those semantics from
> elsewhere in the kernel), and sometimes you need other interfaces.

The problem I see with using the standard device interface is the proc*
parameter. The net functions calling the driver will be activated by
interrupts.

BTW, let me ask a question before I forget it again... :-) The driver
itself has no interrupt handler. Now, I intend to use a queue to control
the access to the card, and the queue manipulation section is critical.
These routines _may_ be called from other interrupt handlers. So, should I
spl them? At what level?

--
Daniel C. Sobral                      (8-DCS)
Daniel_Sobral@voga.com.br





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83256585.003EA128.00>