13 years ago[NETFILTER]: nfnetlink_queue: fix typo in error message
Patrick McHardy [Tue, 22 Aug 2006 07:32:47 +0000]
[NETFILTER]: nfnetlink_queue: fix typo in error message

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: ctnetlink: remove impossible events tests for updates
Pablo Neira Ayuso [Tue, 22 Aug 2006 07:32:23 +0000]
[NETFILTER]: ctnetlink: remove impossible events tests for updates

IPCT_HELPER and IPCT_NATINFO bits are never set on updates.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: ctnetlink: check for listeners before sending expectation events
Pablo Neira Ayuso [Tue, 22 Aug 2006 07:32:05 +0000]
[NETFILTER]: ctnetlink: check for listeners before sending expectation events

This patch uses nfnetlink_has_listeners to check for listeners in
userspace.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: ctnetlink: dump connection mark
Pablo Neira Ayuso [Tue, 22 Aug 2006 07:31:49 +0000]
[NETFILTER]: ctnetlink: dump connection mark

ctnetlink dumps the mark iif the event mark happened

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: conntrack: introduce connection mark event
Pablo Neira Ayuso [Tue, 22 Aug 2006 07:31:24 +0000]
[NETFILTER]: conntrack: introduce connection mark event

This patch introduces the mark event. ctnetlink can use this to know if
the mark needs to be dumped.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: ipt_recent: add module parameter for changing ownership of /proc/net...
Daniel De Graaf [Tue, 22 Aug 2006 07:30:55 +0000]
[NETFILTER]: ipt_recent: add module parameter for changing ownership of /proc/net/ipt_recent/*

Signed-off-by: Daniel De Graaf <danield@iastate.edu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: x_tables: replace IPv4 DSCP target by address family independent version
Yasuyuki Kozakai [Tue, 22 Aug 2006 07:30:26 +0000]
[NETFILTER]: x_tables: replace IPv4 DSCP target by address family independent version

This replaces IPv4 DSCP target by address family independent version.
This also
- utilizes dsfield.h to get/mangle DS field in IPv4/IPv6 header
- fixes Kconfig help text.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: x_tables: replace IPv4 dscp match by address family independent version
Yasuyuki Kozakai [Tue, 22 Aug 2006 07:29:37 +0000]
[NETFILTER]: x_tables: replace IPv4 dscp match by address family independent version

This replaces IPv4 dscp match by address family independent version.
This also
- utilizes dsfield.h to get the DS field in IPv4/IPv6 header, and
- checks for the DSCP value from user space.
- fixes Kconfig help text.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[TG3]: Convert the pci_device_id table to PCI_DEVICE()
Henrik Kretzschmar [Tue, 22 Aug 2006 07:28:33 +0000]
[TG3]: Convert the pci_device_id table to PCI_DEVICE()

Convert the pci_device_ids to PCI_DEVICE() macro.  Saves 1.5k in the
sourcefile.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[SCTP]: Use the flags value that is passed as an arg to sctp_accept.
Sridhar Samudrala [Tue, 22 Aug 2006 07:24:09 +0000]
[SCTP]: Use the flags value that is passed as an arg to sctp_accept.

No need to do multiple dereferences - sk->sk_socket->file->f_flags

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[SCTP]: Fix IPv6 address flag setting when doing peel-off/accept.
Vladislav Yasevich [Tue, 22 Aug 2006 07:23:13 +0000]
[SCTP]: Fix IPv6 address flag setting when doing peel-off/accept.

During accept/peeloff we try to copy the list of bound addresses from
the original endpoint to the new one. However, we forgot to set the flag
to say that IPv6 is allowed on the new endpoint.

Signed-off-by: Vladislav Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[SCTP]: Cleanup nomem handling in the state functions.
Vladislav Yasevich [Tue, 22 Aug 2006 07:19:51 +0000]
[SCTP]: Cleanup nomem handling in the state functions.

This patch cleans up the "nomem" conditions that may occur during the
processing by the state machine functions. In most cases we delay adding
side-effect commands until all memory allocations are done.

Signed-off-by: Vladislav Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[SCTP]: Extend /proc/net/sctp/snmp to provide more statistics.
Sridhar Samudrala [Tue, 22 Aug 2006 07:15:33 +0000]
[SCTP]: Extend /proc/net/sctp/snmp to provide more statistics.

This patch adds more statistics info under /proc/net/sctp/snmp
that should be useful for debugging. The additional events that
are counted now include timer expirations, retransmits, packet
and data chunk discards.

The Data chunk discards include all the cases where a data chunk
is discarded including high tsn, bad stream, dup tsn and the most
useful one(out of receive buffer/rwnd).

Also moved the SCTP MIB data structures from the generic include
directories to include/sctp/sctp.h.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Fixup ip6_del_rt() call for new args.
David S. Miller [Tue, 22 Aug 2006 07:13:07 +0000]
[IPV6]: Fixup ip6_del_rt() call for new args.

Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] route: Convert GETROUTE to use new netlink api
Thomas Graf [Tue, 22 Aug 2006 07:01:47 +0000]
[IPv6] route: Convert GETROUTE to use new netlink api

Fixes various unvalidated netlink attributes causing memory
corruptions when left empty by userspace applications.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] route: Convert FIB6 dumping to use new netlink api
Thomas Graf [Tue, 22 Aug 2006 07:01:27 +0000]
[IPv6] route: Convert FIB6 dumping to use new netlink api

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] route: FIB6 configuration using struct fib6_config
Thomas Graf [Tue, 22 Aug 2006 07:01:08 +0000]
[IPv6] route: FIB6 configuration using struct fib6_config

Replaces the struct in6_rtmsg based interface orignating from
the ioctl interface with a struct fib6_config based on. Allows
changing the interface without breaking the ioctl interface
and avoids passing on tons of parameters.

The recently introduced struct nl_info is used to pass on
netlink authorship information for notifications.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] route: Simplify ip6_ins_rt()
Thomas Graf [Tue, 22 Aug 2006 07:00:45 +0000]
[IPv6] route: Simplify ip6_ins_rt()

Provide a simple ip6_ins_rt() for the majority of users and
an alternative for the exception via netlink. Avoids code
obfuscation.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] route: Simplify ip6_del_rt()
Thomas Graf [Tue, 22 Aug 2006 07:00:21 +0000]
[IPv6] route: Simplify ip6_del_rt()

Provide a simple ip6_del_rt() for the majority of users and
an alternative for the exception via netlink. Avoids code
obfuscation.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[PKT_SCHED]: Kill pkt_act.h inlining.
David S. Miller [Tue, 22 Aug 2006 06:54:55 +0000]
[PKT_SCHED]: Kill pkt_act.h inlining.

This was simply making templates of functions and mostly causing a lot
of code duplication in the classifier action modules.

We solve this more cleanly by having a common "struct tcf_common" that
hash worker functions contained once in act_api.c can work with.

Callers work with real action objects that have the common struct
plus their module specific struct members.  You go from a common
object to the higher level one using a "to_foo()" macro which makes
use of container_of() to do the dirty work.

This also kills off act_generic.h which was only used by act_simple.c
and keeping it around was more work than the it's value.

Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[ETH]: indentation and cleanup
Stephen Hemminger [Fri, 18 Aug 2006 01:20:18 +0000]
[ETH]: indentation and cleanup

Run ethernet support through Lindent and fix up.
Applies after docbook comments patch

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[ETH]: docbook comments
Stephen Hemminger [Fri, 18 Aug 2006 01:18:53 +0000]
[ETH]: docbook comments

Add docbook style comments to ethernet support.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET] neighbour: reduce exports
Stephen Hemminger [Fri, 18 Aug 2006 01:17:37 +0000]
[NET] neighbour: reduce exports

There are several symbols only used by rtnetlink and since it can
not be a module, there is no reason to export them.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv4]: Convert route get to new netlink api
Thomas Graf [Fri, 18 Aug 2006 01:15:44 +0000]
[IPv4]: Convert route get to new netlink api

Fixes various unvalidated netlink attributes causing memory
corruptions when left empty by userspace applications.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv4]: Convert FIB dumping to use new netlink api
Thomas Graf [Fri, 18 Aug 2006 01:15:17 +0000]
[IPv4]: Convert FIB dumping to use new netlink api

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv4]: FIB configuration using struct fib_config
Thomas Graf [Fri, 18 Aug 2006 01:14:52 +0000]
[IPv4]: FIB configuration using struct fib_config

Introduces struct fib_config replacing the ugly struct kern_rta
prone to ordering issues. Avoids creating faked netlink messages
for auto generated routes or requests via ioctl.

A new interface net/nexthop.h is added to help navigate through
nexthop configuration arrays.

A new struct nl_info will be used to carry the necessary netlink
information to be used for notifications later on.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET/IPV4/IPV6]: Change some sysctl variables to __read_mostly
Brian Haley [Fri, 22 Sep 2006 21:15:41 +0000]
[NET/IPV4/IPV6]: Change some sysctl variables to __read_mostly

Change net/core, ipv4 and ipv6 sysctl variables to __read_mostly.

Couldn't actually measure any performance increase while testing (.3%
I consider noise), but seems like the right thing to do.

Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[RTNETLINK]: Unexport rtnl socket
Thomas Graf [Tue, 15 Aug 2006 07:37:29 +0000]
[RTNETLINK]: Unexport rtnl socket

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET] link: Convert notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:37:09 +0000]
[NET] link: Convert notifications to use rtnl_notify()

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[WIRELESS]: Convert notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:36:49 +0000]
[WIRELESS]: Convert notifications to use rtnl_notify()

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[BRIDGE]: Convert notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:36:28 +0000]
[BRIDGE]: Convert notifications to use rtnl_notify()

Fixes a wrong use of current->pid as netlink pid.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] prefix: Convert prefix notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:36:07 +0000]
[IPv6] prefix: Convert prefix notifications to use rtnl_notify()

Fixes a wrong use of current->pid as netlink pid.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] link: Convert link notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:35:47 +0000]
[IPv6] link: Convert link notifications to use rtnl_notify()

Fixes a wrong use of current->pid as netlink pid.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] route: Convert route notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:35:24 +0000]
[IPv6] route: Convert route notifications to use rtnl_notify()

Fixes a wrong use of current->pid as netlink pid.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv6] address: Convert address notification to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:35:02 +0000]
[IPv6] address: Convert address notification to use rtnl_notify()

Fixes a wrong use of current->pid as netlink pid.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv4] route: Convert route notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:34:17 +0000]
[IPv4] route: Convert route notifications to use rtnl_notify()

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPv4] address: Convert address notification to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:33:59 +0000]
[IPv4] address: Convert address notification to use rtnl_notify()

Adds support for NLM_F_ECHO allowing applications to easly
see which address have been deleted, added, or promoted.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[DECNET]: Convert DECnet notifications to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:33:35 +0000]
[DECNET]: Convert DECnet notifications to use rtnl_notify()

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Convert neighbour notifications ot use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:33:14 +0000]
[NEIGH]: Convert neighbour notifications ot use rtnl_notify()

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET] fib_rules: Convert fib rule notification to use rtnl_notify()
Thomas Graf [Tue, 15 Aug 2006 07:32:48 +0000]
[NET] fib_rules: Convert fib rule notification to use rtnl_notify()

Adds support for NLM_F_ECHO to simplify the process of identifying
inserted rules with an auto generated priority.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[RTNETLINK]: Add rtnetlink notification interface
Thomas Graf [Tue, 15 Aug 2006 07:31:41 +0000]
[RTNETLINK]: Add rtnetlink notification interface

Adds rtnl_notify() to send rtnetlink notification messages and
rtnl_set_sk_err() to report notification errors as socket
errors in order to indicate the need of a resync due to loss
of events.

nlmsg_report() is added to properly document the meaning of
NLM_F_ECHO.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETLINK]: Add notification message sending interface
Thomas Graf [Tue, 15 Aug 2006 07:31:06 +0000]
[NETLINK]: Add notification message sending interface

Adds nlmsg_notify() implementing proper notification logic. The
message is multicasted to all listeners in the group. The
applications the requests orignates from can request a unicast
back report in which case said socket will be excluded from the
multicast to avoid duplicated notifications.

nlmsg_multicast() is extended to take allocation flags to
allow notification in atomic contexts.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[RTNETLINK]: Use rtnl_unicast() for rtnetlink unicasts
Thomas Graf [Tue, 15 Aug 2006 07:30:25 +0000]
[RTNETLINK]: Use rtnl_unicast() for rtnetlink unicasts

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6] udp: Fix type in previous change.
David S. Miller [Tue, 15 Aug 2006 07:15:41 +0000]
[IPV6] udp: Fix type in previous change.

UDPv6 stats are UDP6_foo not UDP_foo.

Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[ARCNET]: SoHard PCI support
Stphane Witzmann [Tue, 15 Aug 2006 07:09:17 +0000]
[ARCNET]: SoHard PCI support

Add support for a SoHard PCI ARCnet card.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IRDA]: Replace hard-coded dev_self[] array sizes with ARRAY_SIZE()
Bjorn Helgaas [Tue, 15 Aug 2006 07:05:38 +0000]
[IRDA]: Replace hard-coded dev_self[] array sizes with ARRAY_SIZE()

Several IR drivers used "for (i = 0; i < 4; i++)" to walk their
dev_self[] table.  Better to use ARRAY_SIZE().  And fix ali-ircc so it
won't run off the end if we find too many adapters.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[SELINUX]: security/selinux/hooks.c: Make 4 functions static.
Adrian Bunk [Tue, 15 Aug 2006 07:03:53 +0000]
[SELINUX]: security/selinux/hooks.c: Make 4 functions static.

This patch makes four needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: Make unused signal code go away so nobody copies its brokenness
Alan Cox [Tue, 15 Aug 2006 07:01:05 +0000]
[NETFILTER]: Make unused signal code go away so nobody copies its brokenness

This code is wrong on so many levels, please lose it so it isn't
replicated anywhere else.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Add UDP_MIB_{SND,RCV}BUFERRORS handling.
David S. Miller [Tue, 15 Aug 2006 07:00:09 +0000]
[IPV6]: Add UDP_MIB_{SND,RCV}BUFERRORS handling.

Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV4]: add the UdpSndbufErrors and UdpRcvbufErrors MIBs
Martin Bligh [Tue, 15 Aug 2006 06:57:10 +0000]
[IPV4]: add the UdpSndbufErrors and UdpRcvbufErrors MIBs

Signed-off-by: Martin Bligh <mbligh@google.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>

13 years ago[DECNET]: cleanups
Adrian Bunk [Tue, 15 Aug 2006 06:55:20 +0000]
[DECNET]: cleanups

- make the following needlessly global functions static:
  - dn_fib.c: dn_fib_sync_down()
  - dn_fib.c: dn_fib_sync_up()
  - dn_rules.c: dn_fib_rule_action()
- remove the following unneeded prototype:
  - dn_fib.c: dn_cache_dump()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[TG3]: Constify firmware structs
Andreas Mohr [Tue, 15 Aug 2006 06:54:30 +0000]
[TG3]: Constify firmware structs

Constify largish areas of firmware data in Tigon3 ethernet driver.

non-const:

lsmod:
tg3                   101404  0

objdump -x:
.rodata 000003e8
.data 00004a0c

ls -l:
-rw-r--r-- 1 root root 114404 2006-08-19 21:36 drivers/net/tg3.ko

const:

lsmod:
tg3                   101404  0

objdump -x:
.rodata 000042c8
.data 00000b4c

ls -l:
-rw-r--r-- 1 root root 114532 2006-08-19 21:06 drivers/net/tg3.ko

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6] ip6_fib.c: make code static
Adrian Bunk [Tue, 15 Aug 2006 06:49:16 +0000]
[IPV6] ip6_fib.c: make code static

Make the following needlessly global code static:
- fib6_walker_lock
- struct fib6_walker_list
- fib6_walk_continue()
- fib6_walk()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[DECNET] Fix to decnet rules compare function
Steven Whitehouse [Fri, 11 Aug 2006 23:44:18 +0000]
[DECNET] Fix to decnet rules compare function

Here is a fix to the DECnet rules compare function where we used 32bit
values rather than 16bit values. Spotted by Patrick McHardy.

Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[DECNET] Fix to multiple tables routing
Steven Whitehouse [Fri, 11 Aug 2006 23:43:41 +0000]
[DECNET] Fix to multiple tables routing

Here is a fix to Patrick McHardy's increase number of routing tables
patch for DECnet. I did just test this and it appears to be working
fine with this patch.

Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET] netdev: Check name length
Stephen Hemminger [Wed, 30 Aug 2006 00:06:13 +0000]
[NET] netdev: Check name length

Some improvements to robust name interface.  These API's are safe
now by convention, but it is worth providing some safety checks
against future bugs.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[HTB]: rbtree cleanup
Stephen Hemminger [Fri, 11 Aug 2006 06:36:01 +0000]
[HTB]: rbtree cleanup

Add code to initialize rb tree nodes, and check for double deletion.
This is not a real fix, but I can make it trap sometimes and may
be a bandaid for: http://bugzilla.kernel.org/show_bug.cgi?id=6681

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[HTB]: Use hlist for hash lists.
Stephen Hemminger [Fri, 11 Aug 2006 06:35:38 +0000]
[HTB]: Use hlist for hash lists.

Use hlist instead of list for the hash list. This saves
space, and we can check for double delete better.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[HTB]: Lindent
Stephen Hemminger [Fri, 11 Aug 2006 06:35:16 +0000]
[HTB]: Lindent

Code was a mess in terms of indentation.  Run through Lindent
script, and cleanup the damage. Also, don't use, vim magic
comment, and substitute inline for __inline__.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[HTB]: HTB_HYSTERESIS cleanup
Stephen Hemminger [Fri, 11 Aug 2006 06:34:02 +0000]
[HTB]: HTB_HYSTERESIS cleanup

Change the conditional compilation around HTB_HYSTERSIS
since code was splitting mid expression.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[HTB]: Remove lock macro.
Stephen Hemminger [Fri, 11 Aug 2006 06:33:16 +0000]
[HTB]: Remove lock macro.

Get rid of the macro's being used to obscure the locking.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[HTB]: Remove broken debug code.
Stephen Hemminger [Fri, 11 Aug 2006 06:31:08 +0000]
[HTB]: Remove broken debug code.

The HTB network scheduler had debug code that wouldn't compile
and confused and obfuscated the code, remove it.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: Increate RT_TABLE_MAX to 2^32
Patrick McHardy [Fri, 11 Aug 2006 06:12:34 +0000]
[NET]: Increate RT_TABLE_MAX to 2^32

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[DECNET]: Increase number of possible routing tables to 2^32
Patrick McHardy [Fri, 11 Aug 2006 06:11:47 +0000]
[DECNET]: Increase number of possible routing tables to 2^32

Increase the number of possible routing tables to 2^32 by replacing the
fixed sized array of pointers by a hash table and replacing iterations
over all possible table IDs by hash table walking.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Increase number of possible routing tables to 2^32
Patrick McHardy [Fri, 11 Aug 2006 06:11:17 +0000]
[IPV6]: Increase number of possible routing tables to 2^32

Increase number of possible routing tables to 2^32 by replacing iterations
over all possible table IDs by hash table walking.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV4]: Increase number of possible routing tables to 2^32
Patrick McHardy [Fri, 11 Aug 2006 06:10:46 +0000]
[IPV4]: Increase number of possible routing tables to 2^32

Increase the number of possible routing tables to 2^32 by replacing the
fixed sized array of pointers by a hash table and replacing iterations
over all possible table IDs by hash table walking.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: Introduce RTA_TABLE/FRA_TABLE attributes
Patrick McHardy [Fri, 11 Aug 2006 06:09:48 +0000]
[NET]: Introduce RTA_TABLE/FRA_TABLE attributes

Introduce RTA_TABLE route attribute and FRA_TABLE routing rule attribute
to hold 32 bit routing table IDs. Usespace compatibility is provided by
continuing to accept and send the rtm_table field, but because of its
limited size it can only carry the low 8 bits of the table ID. This
implies that if larger IDs are used, _all_ userspace programs using them
need to use RTA_TABLE.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: Use u32 for routing table IDs
Patrick McHardy [Fri, 11 Aug 2006 06:08:33 +0000]
[NET]: Use u32 for routing table IDs

Use u32 for routing table IDs in net/ipv4 and net/decnet in preparation of
support for a larger number of routing tables. net/ipv6 already uses u32
everywhere and needs no further changes. No functional changes are made by
this patch.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGHBOUR]: Use ALIGN() macro.
Stephen Hemminger [Fri, 11 Aug 2006 06:03:23 +0000]
[NEIGHBOUR]: Use ALIGN() macro.

Rather than opencoding the mask, it looks better to use ALIGN()
macro from kernel.h.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: Kill double initialization in sock_alloc_inode.
David S. Miller [Thu, 10 Aug 2006 07:22:41 +0000]
[NET]: Kill double initialization in sock_alloc_inode.

No need to set ei->socket.flags to zero twice.

Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: Remove unnecessary config.h includes from net/
Dave Jones [Fri, 22 Sep 2006 21:00:29 +0000]
[NET]: Remove unnecessary config.h includes from net/

config.h is automatically included by kbuild these days.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: sock_register interface changes
Stephen Hemminger [Thu, 10 Aug 2006 04:03:17 +0000]
[NET]: sock_register interface changes

The sock_register() doesn't change the family, so the protocols can
define it read-only.  No caller ever checks return value from
sock_unregister()

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: socket family using RCU
Stephen Hemminger [Fri, 1 Sep 2006 07:23:39 +0000]
[NET]: socket family using RCU

Replace the gross custom locking done in socket code for net_family[]
with simple RCU usage. Some reordering necessary to avoid sleep issues
with sock_alloc.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: drop unused elements from net_proto_family
Stephen Hemminger [Thu, 10 Aug 2006 03:50:00 +0000]
[NET]: drop unused elements from net_proto_family

Three values in net_proto_family are defined but never used.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET] socket: code style cleanup
Stephen Hemminger [Fri, 1 Sep 2006 07:19:31 +0000]
[NET] socket: code style cleanup

Make socket.c conform to current style:
* run through Lindent
* get rid of unneeded casts
* split assignment and comparsion where possible

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[SUNRPC]: Remove the unnecessary check for highmem in xs_sendpages().
Sridhar Samudrala [Thu, 10 Aug 2006 00:03:17 +0000]
[SUNRPC]: Remove the unnecessary check for highmem in xs_sendpages().

Just call kernel_sendpage() directly.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[DECNET]: Convert rwlock to spinlock
Steven Whitehouse [Wed, 9 Aug 2006 23:00:57 +0000]
[DECNET]: Convert rwlock to spinlock

As per Stephen Hemminger's recent patch to ipv4/fib_semantics.c this
is the same change but for DECnet.

Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[DECNET]: Covert rules to use generic code
Steven Whitehouse [Wed, 9 Aug 2006 22:56:46 +0000]
[DECNET]: Covert rules to use generic code

This patch converts the DECnet rules code to use the generic
rules system created by Thomas Graf <tgraf@suug.ch>.

Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV4]: Use network-order dport for all visible inet_lookup_*
Herbert Xu [Wed, 9 Aug 2006 22:47:12 +0000]
[IPV4]: Use network-order dport for all visible inet_lookup_*

Right now most inet_lookup_* functions take a host-order hnum instead
of a network-order dport because that's how it is represented
internally.

This means that users of these functions have to be careful about
using the right byte-order.  To add more confusion, inet_lookup takes
a network-order dport unlike all other functions.

So this patch changes all visible inet_lookup functions to take a
dport and move all dport->hnum conversion inside them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV4] fib: convert reader/writer to spinlock
Stephen Hemminger [Tue, 29 Aug 2006 23:48:09 +0000]
[IPV4] fib: convert reader/writer to spinlock

Ther is no point in using a more expensive reader/writer lock
for a low contention lock like the fib_info_lock. The only
reader case is in handling route redirects.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Make sure fib6_rule_lookup doesn't return NULL
Ville Nuorvala [Tue, 8 Aug 2006 23:44:17 +0000]
[IPV6]: Make sure fib6_rule_lookup doesn't return NULL

The callers of fib6_rule_lookup don't expect it to return NULL,
therefore it must return ip6_null_entry whenever fib_rule_lookup fails.

Signed-off-by: Ville Nuorvala <vnuorval@tcs.hut.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV4]: Uninline inet_lookup_listener
Herbert Xu [Tue, 8 Aug 2006 09:18:10 +0000]
[IPV4]: Uninline inet_lookup_listener

By modern standards this function is way too big to be inlined.  It's
even bigger than __inet_lookup_listener :)

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[INET]: Remove is_setbyuser patch
Louis Nyffenegger [Tue, 8 Aug 2006 07:56:11 +0000]
[INET]: Remove is_setbyuser patch

The value is_setbyuser from struct ip_options is never used and set
only one time (http://linux-net.osdl.org/index.php/TODO#IPV4).
This little patch removes it from the kernel source.

Signed-off-by: Louis Nyffenegger <louis.nyffenegger@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV4]: Kill fib4_rules_clean().
David S. Miller [Tue, 8 Aug 2006 04:56:52 +0000]
[IPV4]: Kill fib4_rules_clean().

As noted by Adrian Bunk this function is totally unused.

Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Protect RTM_GETRULE table entry with IPV6_MULTIPLE_TABLES ifdef
David S. Miller [Tue, 8 Aug 2006 04:54:37 +0000]
[IPV6]: Protect RTM_GETRULE table entry with IPV6_MULTIPLE_TABLES ifdef

This is how IPv4 handles this case too.

Based upon a patch from Andrew Morton.

Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: Make code static.
Adrian Bunk [Tue, 8 Aug 2006 04:50:48 +0000]
[NET]: Make code static.

This patch makes needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[SUNRPC]: Update to use in-kernel sockets API.
Sridhar Samudrala [Tue, 8 Aug 2006 03:58:01 +0000]
[SUNRPC]: Update to use in-kernel sockets API.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NET]: Round out in-kernel sockets API
Sridhar Samudrala [Tue, 8 Aug 2006 03:57:31 +0000]
[NET]: Round out in-kernel sockets API

This patch implements wrapper functions that provide a convenient way
to access the sockets API for in-kernel users like sunrpc, cifs &
ocfs2 etc and any future users.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Move netlink neighbour table bits to linux/neighbour.h
Thomas Graf [Tue, 8 Aug 2006 01:00:57 +0000]
[NEIGH]: Move netlink neighbour table bits to linux/neighbour.h

rtnetlink_rcv_msg() is not longer required to parse attributes
for the neighbour tables layer, remove dependency on obsolete and
buggy rta_buf.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Convert neighbour table dumping to new netlink api
Thomas Graf [Tue, 8 Aug 2006 01:00:18 +0000]
[NEIGH]: Convert neighbour table dumping to new netlink api

Also fixes skipping of already dumped neighbours.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Convert neighbour table modification to new netlink api
Thomas Graf [Tue, 8 Aug 2006 00:58:53 +0000]
[NEIGH]: Convert neighbour table modification to new netlink api

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Move netlink neighbour bits to linux/neighbour.h
Thomas Graf [Tue, 8 Aug 2006 00:57:44 +0000]
[NEIGH]: Move netlink neighbour bits to linux/neighbour.h

Moves netlink neighbour bits to linux/neighbour.h. Also
moves bits to be exported to userspace from net/neighbour.h
to linux/neighbour.h and removes __KERNEL__ guards, userspace
is not supposed to be using it.

rtnetlink_rcv_msg() is not longer required to parse attributes
for the neighbour layer, remove dependency on obsolete and
buggy rta_buf.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Convert neighbour dumping to new netlink api
Thomas Graf [Tue, 8 Aug 2006 00:56:37 +0000]
[NEIGH]: Convert neighbour dumping to new netlink api

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Convert neighbour addition to new netlink api
Thomas Graf [Tue, 8 Aug 2006 00:55:40 +0000]
[NEIGH]: Convert neighbour addition to new netlink api

Fixes:
    Return EAFNOSUPPORT if no table matches the specified
    address family.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NEIGH]: Convert neighbour deletion to new netlink api
Thomas Graf [Tue, 8 Aug 2006 00:53:08 +0000]
[NEIGH]: Convert neighbour deletion to new netlink api

Fixes:
  Return ENOENT if the neighbour is not found (was EINVAL)
  Return EAFNOSUPPORT if no table matches the specified
  address family.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Fix policy routing lookup
Patrick McHardy [Mon, 7 Aug 2006 05:24:08 +0000]
[IPV6]: Fix policy routing lookup

When the lookup in a table returns ip6_null_entry the policy routing lookup
returns it instead of continuing in the next table, which effectively means
it only searches the local table.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Fix crash in ip6_del_rt
Patrick McHardy [Mon, 7 Aug 2006 05:22:47 +0000]
[IPV6]: Fix crash in ip6_del_rt

ip6_null_entry doesn't have rt6i_table set, when trying to delete it the
kernel crashes dereferencing table->tb6_lock.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[IPV6]: Fix thinko in rt6_fill_node
Patrick McHardy [Sat, 5 Aug 2006 09:20:42 +0000]
[IPV6]: Fix thinko in rt6_fill_node

This looks like a mistake, the table ID is overwritten again.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: nf_queue: handle GSO packets
Patrick McHardy [Sat, 5 Aug 2006 07:58:52 +0000]
[NETFILTER]: nf_queue: handle GSO packets

Handle GSO packets in nf_queue by segmenting them before queueing to
avoid breaking GSO in case they get mangled.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

13 years ago[NETFILTER]: Get rid of HW checksum invalidation
Patrick McHardy [Sat, 5 Aug 2006 07:58:33 +0000]
[NETFILTER]: Get rid of HW checksum invalidation

Update hardware checksums incrementally to avoid breaking GSO.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>