* Netlink allocation for iSCSI and others
@ 2005-08-08 20:47 David S. Miller
2005-08-08 21:19 ` Patrick McHardy
0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2005-08-08 20:47 UTC (permalink / raw)
To: netdev; +Cc: James.Bottomley, itn780, linux-scsi, hch, kaber, akpm
Ok, here is what I'm going to do for 2.6.13 and in the longer
term.
First, we can give the current NETLINK_ARPD value to iSCSI
as it is unused since before I can even remember.
Second, ROUTE6 and TAPBASE we can kill from the header file
as both are unused as well.
In the longer term, Patrick is right in that there is no
connection between MAX_LINKS and NPROTO as I had claimed.
So we can increase MAX_LINKS to 256 and that's what I think I will do
for 2.6.14 unless there is a very serious objection. The tables sized
by MAX_LINKS in af_netlink.c are dynamically allocated, and the only
linear iterations over MAX_LINKS are for the netlink socket procfs
seq-file dumper, so it's not a performance issue either.
So, for 2.6.13 I'm going to push the following to Linus so that
everyone gets what they need for the time being.
[NETLINK]: Allocate and kill some netlink numbers.
NETLINK_ARPD is unused, allocate it to the Open-iSCSI folks.
NETLINK_ROUTE6 and NETLINK_TAPBASE are no longer used, delete
them.
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -12,15 +12,13 @@
#define NETLINK_NFLOG 5 /* netfilter/iptables ULOG */
#define NETLINK_XFRM 6 /* ipsec */
#define NETLINK_SELINUX 7 /* SELinux event notifications */
-#define NETLINK_ARPD 8
+#define NETLINK_ISCSI 8 /* Open-iSCSI */
#define NETLINK_AUDIT 9 /* auditing */
#define NETLINK_FIB_LOOKUP 10
-#define NETLINK_ROUTE6 11 /* af_inet6 route comm channel */
#define NETLINK_NETFILTER 12 /* netfilter subsystem */
#define NETLINK_IP6_FW 13
#define NETLINK_DNRTMSG 14 /* DECnet routing messages */
#define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */
-#define NETLINK_TAPBASE 16 /* 16 to 31 are ethertap */
#define MAX_LINKS 32
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Netlink allocation for iSCSI and others
2005-08-08 20:47 Netlink allocation for iSCSI and others David S. Miller
@ 2005-08-08 21:19 ` Patrick McHardy
2005-08-08 21:21 ` David S. Miller
0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2005-08-08 21:19 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, James.Bottomley, itn780, linux-scsi, hch, akpm
David S. Miller wrote:
> So we can increase MAX_LINKS to 256 and that's what I think I will do
> for 2.6.14 unless there is a very serious objection. The tables sized
> by MAX_LINKS in af_netlink.c are dynamically allocated, and the only
> linear iterations over MAX_LINKS are for the netlink socket procfs
> seq-file dumper, so it's not a performance issue either.
I think we should increase it when allocating new numbers to save the
unused memory for the larger nltable and additional pid hashes.
Userspace shouldn't care if we change it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Netlink allocation for iSCSI and others
2005-08-08 21:19 ` Patrick McHardy
@ 2005-08-08 21:21 ` David S. Miller
0 siblings, 0 replies; 3+ messages in thread
From: David S. Miller @ 2005-08-08 21:21 UTC (permalink / raw)
To: kaber; +Cc: netdev, James.Bottomley, itn780, linux-scsi, hch, akpm
From: Patrick McHardy <kaber@trash.net>
Date: Mon, 08 Aug 2005 23:19:37 +0200
> David S. Miller wrote:
> > So we can increase MAX_LINKS to 256 and that's what I think I will do
> > for 2.6.14 unless there is a very serious objection. The tables sized
> > by MAX_LINKS in af_netlink.c are dynamically allocated, and the only
> > linear iterations over MAX_LINKS are for the netlink socket procfs
> > seq-file dumper, so it's not a performance issue either.
>
> I think we should increase it when allocating new numbers to save the
> unused memory for the larger nltable and additional pid hashes.
> Userspace shouldn't care if we change it.
Agreed. So we have 17 netlink numbers to allocate at this
point, and that should be good for a while.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-08 21:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 20:47 Netlink allocation for iSCSI and others David S. Miller
2005-08-08 21:19 ` Patrick McHardy
2005-08-08 21:21 ` 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).