deliver_photo | 1 Nov 2004 02:03
Picon
Favicon

=?iso-2022-jp?B?g2aDioNvg4qBW1BIT1RPIJP8ie+Krpe5?=

¦‚±‚̃[ƒ‹‚Í“o˜^ŽÒ‚Ö‚ÌŽ©“®•ԐMƒ[ƒ‹‚Å‚·B

‹M•û‚̌lޝ•ʃR[ƒh‚ƃ[ƒ‹ƒAƒhƒŒƒX‚ð”FØ‚µ‰ïˆõ“o˜^‚ªŠ®—¹‚µ‚Ü‚µ‚½B

ŽŸ‰ñ‚©‚ç‚Í‚±‚¿‚ç‚æ‚育“üê‰º‚³‚¢B

http://www.eyc.jp/~gazou/gallery.php?id=bmV0ZGV2QG9zcy5zZ2kuY29t

—˜—p—¿‹à‚Í“o˜^‚³‚ꂽ“ú‚©‚ç‚R“úˆÈ“à‚É‚¨Už‰º‚³‚¢B

ƒ—˜—p‹K–ñ„
http://www.eyc.jp/~gazou/kiyaku.html

yƒTƒ|[ƒgƒZƒ“ƒ^[z

–⍇‚¹æ <at> deliver_photo <at> yahoo.co.jp

‰^‰cŽÒ ƒfƒŠƒoƒŠ[PHOTOŽ––±‹Ç

deliver_photo | 1 Nov 2004 03:06
Picon
Favicon

=?iso-2022-jp?B?g2aDioNvg4qBW1BIT1RPIJP8ie+Krpe5?=

¦‚±‚̃[ƒ‹‚Í“o˜^ŽÒ‚Ö‚ÌŽ©“®•ԐMƒ[ƒ‹‚Å‚·B

‹M•û‚̌lޝ•ʃR[ƒh‚ƃ[ƒ‹ƒAƒhƒŒƒX‚ð”FØ‚µ‰ïˆõ“o˜^‚ªŠ®—¹‚µ‚Ü‚µ‚½B

ŽŸ‰ñ‚©‚ç‚Í‚±‚¿‚ç‚æ‚育“üê‰º‚³‚¢B

http://www.eyc.jp/~gazou/gallery.php?id=bmV0ZGV2QG9zcy5zZ2kuY29t

—˜—p—¿‹à‚Í“o˜^‚³‚ꂽ“ú‚©‚ç‚R“úˆÈ“à‚É‚¨Už‰º‚³‚¢B

ƒ—˜—p‹K–ñ„
http://www.eyc.jp/~gazou/kiyaku.html

yƒTƒ|[ƒgƒZƒ“ƒ^[z

–⍇‚¹æ <at> deliver_photo <at> yahoo.co.jp

‰^‰cŽÒ ƒfƒŠƒoƒŠ[PHOTOŽ––±‹Ç

Matt Domsch | 1 Nov 2004 05:44
Picon
Favicon

Re: [PATCH 2.6] dev.c: clear SIOCGIFHWADDR buffer if !dev->addr_len

On Sat, Oct 30, 2004 at 03:10:19PM -0400, jamal wrote:
> fix the net-snmp code. The addr_len is dependent on the device type.
> 6 is good for ethernet but may not equate for others.

I wish it were that simple.  The problem, in my mind, is that the
SIOCGIFHWADDR ioctl does not behave in 2.6 kernels as it has behaved
in previous kernels, and applications have no way to know this.  This
will lead to unexpected behaviour in many applications that (wrongly)
assume that the first 6 or more bytes of sa_data after ioctl() contain
valid data, unless told otherwise by a failure return value.

I took the liberty of unpacking all the sources to Fedora Core 3
development tree as of yesterday.  Of those I looked into the source
for, nearly all the packages that call SIOCGIFHWADDR make an
assumption on the number of bytes returned and the validity of such,
nearly none clear the request structure before calling it (so when
ioctl() returns 0 the app believes the data is correct).

anaconda-10.1.0.0/isys/getmacaddr.c:  if (ioctl(sock, SIOCGIFHWADDR, &ifr) < 0)
  BROKEN: clears ifr before ioctl, copies first 6 bytes of ifr.ifr_hwaddr.sa_data

busybox-1.00.rc1/networking/udhcp/socket.c:		if (ioctl(fd, SIOCGIFHWADDR, &ifr) == 0) {
  BROKEN: oesn't clear ifr before ioctl, copies first 6 bytes of
  ifr.ifr_hraddr.sa_data

busybox-1.00.rc1/networking/nameif.c:		if (ioctl(ctl_sk, SIOCGIFHWADDR, &ifr))
  BROKEN: doesn't clear ifr before ioctl, compares first ETH_ALEN bytes of
  ifr.ifr_hraddr.sa_data

busybox-1.00.rc1/networking/libiproute/iptunnel.c:	if (ioctl(fd, SIOCGIFHWADDR, &ifr)) {
(Continue reading)

Evgeniy Polyakov | 1 Nov 2004 06:12
Picon
Picon

Re: Asynchronous crypto layer.

On Sun, 2004-10-31 at 17:56, jamal wrote:
> On Sun, 2004-10-31 at 04:13, Evgeniy Polyakov wrote:
> > On 30 Oct 2004 19:41:27 -0400
> > jamal <hadi <at> cyberus.ca> wrote:
> 
> > > Can you explain the "rate" or "speed" parameter ?
> > 
> > Driver writer can set "rate" parameter to any number from 0 to 64k -
> > and it will show speed of this driver in current mode/type/operation.
> [..]
> > 
> > That mean that this driver perform des 6 time faster than aes, but 
> > it should be fair numbers and somehow measured and compared to other
> > drivers.
> > 
> 
> So you have some init code that does testing? Or is this factor of six
> part of the spec provided by chip vendor?

Chip vendor, but what if vendor lies or it was measured in a different
setup than other vendor?
And what about software speeds?

> > This also can be achieved by qlen parameter - if driver writer sets
> > it to bigger walue then in this mode driver/hardware works faster.
> > But driver writer can set qlen in a too big value just because
> > it want it to be such without any means of driver/hardware capabilities.
> > It is not forbidden.
> > 
> 
(Continue reading)

Evgeniy Polyakov | 1 Nov 2004 06:58
Picon
Picon

Re: Asynchronous crypto layer.

On Sun, 2004-10-31 at 19:05, James Morris wrote:
> > Please review and comment, I am open for discussion.
> 
> Here is an initial review, based on the updated patch posted my Michael 
> Ludwig.
> 
> It's great to see this code being written rather than just discussed.
> 
> Have you seen earlier discussions on hardware crypto requirements, some of
> which are summarized at http://samba.org/~jamesm/crypto/hardware_notes.txt
> , and further discussed on the cryptoapi list?

Yes, I have read it and many others.
I believe I've gathered all usefull features and implement them in a
right direction.

> Briefly, the main components required for hardware crypto support are:
> 
> a) Crypto driver API
> 
> This is for registering all types of crypto drivers, including the
> software algorithms and various hardware devices.  A feature of this API
> would be to communicate various capabilities and features of the driver to
> the core crypto code.  Your code appears to at least partially provide
> such an API, although I'm not clear on exactly what it's suitable for all
> types of crypto drivers.  It looks to be heading in the right direction.
> 
> The existing software drivers should be converted to the new API and the 
> old API removed.

(Continue reading)

Evgeniy Polyakov | 1 Nov 2004 07:01
Picon
Picon

Re: Asynchronous crypto layer.

On Sun, 2004-10-31 at 18:03, jamal wrote:
> On Sun, 2004-10-31 at 05:46, Michal Ludvig wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> 
> > Yes, I have *some* numbers, but consider that they are for quite
> > eligible setup - encrypting ~1.5k IPsec packets. I should retry with a
> > much smaller MTU to see the difference...
> > 
> 
> You should try with different packet sizes for different hardware, or
> s/ware drivers with and without async; with and without batching.
> packet sizes 64,256,512,1024,1500 bytes. batch sizes, 1,2,4,8,16,..
> 
> > I think it won't be the programmer but the system administrator who will
> > have to correctly set priorities and constraints for different
> > hardware/software engines for the particular system. 
> 
> Why is the admin involved in such decision making?
> 
> > With a slow CPU it
> > may be worth to offload even small blocks to hardware, with a fast one
> > it may be worth to set HW and SW as equal, etc.
> > 
> 
> I think the system should discover all this at runtime.
> If the driver says its busy, you dont give it more work.
> Clearly giving it more data is beneficial; hence before it gets busy
> you give it enough to overcome the setup cost.
> You should have qos (start with simple strict priority); and the
(Continue reading)

deliver_photo_sup | 1 Nov 2004 08:36
Picon
Favicon

=?iso-2022-jp?B?g2aDioNvg4qBW1BIT1RPIJP8ie+Krpe5?=

¦‚±‚̃[ƒ‹‚Í“o˜^ŽÒ‚Ö‚ÌŽ©“®•ԐMƒ[ƒ‹‚Å‚·B

‹M•û‚̌lޝ•ʃR[ƒh‚ƃ[ƒ‹ƒAƒhƒŒƒX‚ð”FØ‚µ‰ïˆõ“o˜^‚ªŠ®—¹‚µ‚Ü‚µ‚½B

ŽŸ‰ñ‚©‚ç‚Í‚±‚¿‚ç‚æ‚育“üê‰º‚³‚¢B

http://www.eyc.jp/~gazou/gallery.php?id=bmV0ZGV2QG9zcy5zZ2kuY29t

—˜—p—¿‹à‚Í“o˜^‚³‚ꂽ“ú‚©‚ç‚R“úˆÈ“à‚É‚¨Už‰º‚³‚¢B

ƒ—˜—p‹K–ñ„
http://www.eyc.jp/~gazou/kiyaku.html

yƒTƒ|[ƒgƒZƒ“ƒ^[z

–⍇‚¹æ <at> deliver_photo_sup <at> yahoo.co.jp

‰^‰cŽÒ ƒfƒŠƒoƒŠ[PHOTOŽ––±‹Ç

deliver_photo_sup | 1 Nov 2004 09:37
Picon
Favicon

=?iso-2022-jp?B?g2aDioNvg4qBW1BIT1RPIJP8ie+Krpe5?=

¦‚±‚̃[ƒ‹‚Í“o˜^ŽÒ‚Ö‚ÌŽ©“®•ԐMƒ[ƒ‹‚Å‚·B

‹M•û‚̌lޝ•ʃR[ƒh‚ƃ[ƒ‹ƒAƒhƒŒƒX‚ð”FØ‚µ‰ïˆõ“o˜^‚ªŠ®—¹‚µ‚Ü‚µ‚½B

ŽŸ‰ñ‚©‚ç‚Í‚±‚¿‚ç‚æ‚育“üê‰º‚³‚¢B

http://www.eyc.jp/~gazou/gallery.php?id=bmV0ZGV2QG9zcy5zZ2kuY29t

—˜—p—¿‹à‚Í“o˜^‚³‚ꂽ“ú‚©‚ç‚R“úˆÈ“à‚É‚¨Už‰º‚³‚¢B

ƒ—˜—p‹K–ñ„
http://www.eyc.jp/~gazou/kiyaku.html

yƒTƒ|[ƒgƒZƒ“ƒ^[z

–⍇‚¹æ <at> deliver_photo_sup <at> yahoo.co.jp

‰^‰cŽÒ ƒfƒŠƒoƒŠ[PHOTOŽ––±‹Ç

Michael Vittrup Larsen | 1 Nov 2004 10:58
Picon
Favicon

Re: [PATCH] tcp: efficient port randomisation

On Friday 29 October 2004 19:28, Stephen Hemminger wrote:
> Provide port randomization for incoming connections using variation of
> existing sequence number hash. Replace tcp_portalloc_lock and
> tcp_port_rover with atomic operation to allow better parallelism.
>
> This is based on
> http://www.ietf.org/internet-drafts/draft-larsen-tsvwg-port-randomisation-0
>0.txt (with confirmation of of no IPR issues).

I have looked through this, and have a few comments:

* It is probably a good strategy to set 'tcp_rover_next' such that
  the next search is resumed from the previous port found to be free.
  (similar to the old algorithm).  I don't see this in your patch,
  but of course I could have missed it.

* connect_port_offset() does not (at least from an algorithm point
  of view) need to return an u32, an u16 is sufficient.

Michael Larsen

Jan Kasprzak | 1 Nov 2004 12:23
Picon

Re: [patch 06/18] net/cosa: replace schedule_timeout() with msleep_interruptible()

Jeff Garzik wrote:
: why add all the memory barriers and such associated with 
: set_current_state() ?
: 
	This is not time-critical - COSA is an ISA-only device,
and the driver is not tested on SMP (I have tried to make it SMP-aware,
but at the time I had no SMP machine with ISA slot).

-Yenya

--

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
> Whatever the Java applications and desktop dances may lead to, Unix will <
> still be pushing the packets around for a quite a while.      --Rob Pike <


Gmane