linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] register_inet6addr_notifier
@ 2001-08-01 18:41 Utz Bacher
  0 siblings, 0 replies; 4+ messages in thread
From: Utz Bacher @ 2001-08-01 18:41 UTC (permalink / raw)
  To: Alexey Kuznetsov; +Cc: linux-kernel


Hi Alexey,

> Very interesting. I am very curious, what kind of "offload" is possible
> with current stack are possible. Even if you know addresses. :-)

it's the same kind of offload we use in IPv4 -- we set the
net_device->flags to IFF_NOARP and can then talk IP to the card. That
means,
the card does ARP and the tasks of hard_header etc. itself. We register
ourselves to get informed as soon as an IP address has been added/removed
and can tell that information to the card. As soon as the card knows about
the IP addresses of the device in the stack, it can respond to ARP queries
of other nodes.

Now hardware header generation and ARP don't cost a lot of performance, but
this whole story gets in particular interesting, as an S/390 can share a
single card between partitions on the same physical box (and that's very
common; obvious by looking at the price tag of the card :-). The card
peeks into incoming packets and according to the destination address, it
passes the packets on to the right partition(s).

We have the problem, that we won't be informed about any address changes
in IPv6 other than somehow polling for them.
(un)register_inet6addr_notifier would help us here.

> What's about the patch... Do you understand that currently
> it is impossible to call notifiers for adding/deletion of each IPv6
address
> in an intelligible context? Not seeing uses of such notifiers,
> it is difficult to approve such feature because of danger of misuse
> now and even worse misuse in (near) future, when context will change.

Yes, we are fully aware, that we cannot call the notifier functions
ourselves
resp. cannot expect any useful result by doing so. We are only interested
in
being always up to date wrt. IP addresses.

Regards,
Utz

Linux for S/390 and zSeries
:wq


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] register_inet6addr_notifier
  2001-07-31 19:03 Utz Bacher
  2001-08-01 23:06 ` Alexey Kuznetsov
@ 2001-08-03  9:32 ` David S. Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David S. Miller @ 2001-08-03  9:32 UTC (permalink / raw)
  To: Utz Bacher; +Cc: linux-kernel


Utz Bacher writes:
 > attached is a patch which introduces
 > * register_inet6addr_notifier
 > * unregister_inet6addr_notifier
 > 
 > and exports
 > 
 > * EXPORT_SYMBOL(ndisc_mc_map);
 > * EXPORT_SYMBOL(register_inet6addr_notifier);
 > * EXPORT_SYMBOL(unregister_inet6addr_notifier);

It seems reasonable, applied.

Thanks.

Later,
David S. Miller
davem@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] register_inet6addr_notifier
  2001-07-31 19:03 Utz Bacher
@ 2001-08-01 23:06 ` Alexey Kuznetsov
  2001-08-03  9:32 ` David S. Miller
  1 sibling, 0 replies; 4+ messages in thread
From: Alexey Kuznetsov @ 2001-08-01 23:06 UTC (permalink / raw)
  To: Utz Bacher; +Cc: linux-kernel

Hello!

> attached is a patch which introduces
> * register_inet6addr_notifier
> * unregister_inet6addr_notifier

Nice. But where is a use of this? [For reason of the question, see below]. 


> cards which provide IP offload capabilities and therfore require knowledge
> of IP addresses.

Very interesting. I am very curious, what kind of "offload" is possible
with current stack are possible. Even if you know addresses. :-)


What's about the patch... Do you understand that currently
it is impossible to call notifiers for adding/deletion of each IPv6 address
in an intelligible context? Not seeing uses of such notifiers,
it is difficult to approve such feature because of danger of misuse
now and even worse misuse in (near) future, when context will change.

Alexey

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] register_inet6addr_notifier
@ 2001-07-31 19:03 Utz Bacher
  2001-08-01 23:06 ` Alexey Kuznetsov
  2001-08-03  9:32 ` David S. Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Utz Bacher @ 2001-07-31 19:03 UTC (permalink / raw)
  To: davem; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

Hi Dave,

attached is a patch which introduces
* register_inet6addr_notifier
* unregister_inet6addr_notifier

and exports

* EXPORT_SYMBOL(ndisc_mc_map);
* EXPORT_SYMBOL(register_inet6addr_notifier);
* EXPORT_SYMBOL(unregister_inet6addr_notifier);

Purpose of this patch is to give drivers the possibility of learning, what
IP addresses are set in the stack. This is done for IPv4 in
net/ipv4/dev_inet.c, but is missing for IPv6. The feature is exploited by
cards which provide IP offload capabilities and therfore require knowledge
of IP addresses. ndisc_mc_map is also required for the IP-MAC handling of
those cards.

Could you please apply this, if there are no objections or otherwise tell
me, what needs to be done to get that knowledge otherwise?
(See attached file: register_inet6addr_notifier.diff.gz)

(sorry for the attachment, but my mail client would scramble the patch in
plain text :-(

Thanks,
Utz

Linux for S/390 and zSeries
:wq

[-- Attachment #2: register_inet6addr_notifier.diff.gz --]
[-- Type: application/octet-stream, Size: 1023 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-03  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-01 18:41 [PATCH] register_inet6addr_notifier Utz Bacher
  -- strict thread matches above, loose matches on Subject: below --
2001-07-31 19:03 Utz Bacher
2001-08-01 23:06 ` Alexey Kuznetsov
2001-08-03  9:32 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).