04 May, 2007
19 commits
-
Cleanup of dev_base list use, with the aim to simplify making device
list per-namespace. In almost every occasion, use of dev_base variable
and dev->next pointer could be easily replaced by for_each_netdev
loop. A few most complicated places were converted to using
first_netdev()/next_netdev().Signed-off-by: Pavel Emelianov
Acked-by: Kirill Korotaev
Signed-off-by: David S. Miller -
Reuse limited slow-start (RFC3742) included into tcp_cong instead
of having another implementation in High Speed TCP.Signed-off-by: Ilpo Järvinen
Signed-off-by: David S. Miller -
Update version to 1.5.10.
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Fix the code to print PCI or PCIE bus information for all devices.
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
The 5709 supports the one-shot MSI handler similar to some of the tg3
chips. In this mode, the MSI disables itself automatically until it
is re-enabled at the end of NAPI poll.Put the request_irq/free_irq logic in common procedures.
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Restructure by adding bnx2_phy_event_is_set() to make code cleaner
and easier to understand.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
The indirect register access method will be used by more than one
caller in BH context (NAPI poll and timer), so a spinlock is required.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Add PCI ID and code to support the 5709 Serdes PHY.
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Add some common procedures to handle enabling and disabling 2.5G.
Add some missing code to resolve flow control.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
The 5709 Serdes device uses non-standard MII register offsets. This
re-structuring will make it easier to support 5709 Serdes.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Add ipv6 TSO support in firmware.
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
This fixes the problem of not counting all dropped multicast packets.
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
This is needed to save the MSI state which will be lost during
suspend.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Hot-plug scripts can call bnx2_open() as soon as register_netdev() is
called in bnx2_init_one(). We need to call pci_set_drvdata() and
setup everything before calling register_netdev(). netif_carrier_off()
also needs to be moved to bnx2_open() to avoid race conditions with
the irq.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
The internal PCIE-to-PCIX bridge of the 5708 has the same 40-bit DMA
limitation as some of the tg3 chips. Set dma_mask and persistent DMA
mask to 40-bit to workaround.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Tweak registers and memory test range for 5709.
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
The device may be in D3hot state and should not allow MII register
access.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Add 2.5G supported and advertising bit definitions. 2.5G is supported
by the bnx2 driver.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller
03 May, 2007
17 commits
-
Consolidate the common push/pull sequences into a few helper functions.
Signed-off-by: Patrick McHardy
Signed-off-by: David S. Miller -
I needed to use this recently to talk to a Cisco server. In my case
I only did SNAT while the Cisco server used a different address for
RTP traffic than the one for SIP. I discovered that nf_nat_sip NATed
the RTP address to the SIP one which was unnecessary but OK. However,
in doing so it did not DNAT the destination address on the RTP traffic
to the Cisco back to the original RTP address.This patch corrects this by noting down the RTP address and using it
when the expectation fires.Signed-off-by: Herbert Xu
Signed-off-by: Patrick McHardy
Signed-off-by: David S. Miller -
While porting some changes of the 2.6.21-rc7 pptp/proto_gre conntrack
and nat modules to a 2.4.32 kernel I noticed that the gre_key function
returns a wrong pointer to the GRE key of a version 0 packet thus
corrupting the packet payload.The intended behaviour for GREv0 packets is to act like
nf_conntrack_proto_generic/nf_nat_proto_unknown so I have ripped the
offending functions (not used anymore) and modified the
nf_nat_proto_gre modules to not touch version 0 (non PPTP) packets.Signed-off-by: Jorge Boncompte
Signed-off-by: Patrick McHardy
Signed-off-by: David S. Miller -
Also accept the --random option for DNAT to allow randomly selecting a
destination port from the given range.Signed-off-by: Patrick McHardy
Signed-off-by: David S. Miller -
TCP has a transitional state when SACK is not in use during
which this invariant is temporarily broken. Without SACK,
tcp_clean_rtx_queue does not decrement sacked_out. Therefore
calls to tcp_sync_left_out before sacked_out is again
corrected by tcp_fastretrans_alert can trigger this trap as
sacked_out still has couple of segments that are already out
of window.Signed-off-by: Ilpo Järvinen
Signed-off-by: David S. Miller -
Adjust the new netdevice scanning code provided by Patrick McHardy:
(1) Restore the function banner comments that were dropped.
(2) Rather than using an array size of 6 in some places and an array size of
ETH_ALEN in others, pass a pointer instead and pass the array size
through so that we can actually check it.(3) Do the buffer fill count check before checking the for_primary_ifa
condition again. This permits us to skip that check should maxbufs be
reached before we run out of interfaces.Signed-off-by: David Howells
Signed-off-by: David S. Miller -
Replace the large and complicated rtnetlink client by two simple
functions for getting the MAC address for the first ethernet device
and building a list of IPv4 addresses.Signed-off-by: Patrick McHardy
Signed-off-by: David Howells
Signed-off-by: David S. Miller -
Add __dev_getfirstbyhwtype for callers that don't want a reference but
some data from the device and thus need to take the rtnl anyway.Signed-off-by: Patrick McHardy
Signed-off-by: David Howells
Signed-off-by: David S. Miller -
The interface array is not freed on exit.
Signed-off-by: Patrick McHardy
Signed-off-by: David Howells
Signed-off-by: David S. Miller -
When the user passes in MSG_TRUNC the skb is used after getting freed.
Signed-off-by: Patrick McHardy
Signed-off-by: David Howells
Signed-off-by: David S. Miller -
Since we can still receive packets until all references to the
socket are gone, we don't need to kill the CB until that happens.
This also aligns ourselves with the receive queue purging which
happens at that point.Signed-off-by: Herbert Xu
Signed-off-by: David S. Miller -
Fix skbuff.h kernel-doc:
linux-2.6.21-git4//include/linux/skbuff.h:316): No description found for parameter 'transport_header'Signed-off-by: Randy Dunlap
Signed-off-by: David S. Miller -
Delete the apparently unused header file net/ipv4/tcp_yeah.h.
Signed-off-by: Robert P. J. Day
Signed-off-by: David S. Miller -
Fix use of __exit functions from __init path.
Signed-off-by: David Howells
Signed-off-by: David S. Miller -
Make miscellaneous fixes to AFS and AF_RXRPC:
(*) Make AF_RXRPC select KEYS rather than RXKAD or AFS_FS in Kconfig.
(*) Don't use FS_BINARY_MOUNTDATA.
(*) Remove a done 'TODO' item in a comemnt on afs_get_sb().
(*) Don't pass a void * as the page pointer argument of kmap_atomic() as this
breaks on m68k. Patch from Geert Uytterhoeven .(*) Use match_*() functions rather than doing my own parsing.
Signed-off-by: David Howells
Signed-off-by: David S. Miller -
Make the match_*() functions take a const pointer to the options table
and make strings pointers in the options table const too.Signed-off-by: David Howells
Signed-off-by: David S. Miller -
__HAVE_ARCH_ADDR_SET seems unused these days, just get rid of it.
Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller
01 May, 2007
4 commits
-
The Marvell IDE interface on my machine would hit a BUG_ON() in
lib/iomem.c because it was calling ata_pci_init_one() specifying just a
single port on the host, but that would actually end up trying to
initialize two ports, the second one with bogus information.This fixes "ata_pci_init_one()" so that it actually passes down the
n_ports variable that it got from the low-level driver to the host
allocation routine ("ata_host_alloc_pinfo()"), which results in the ATA
layer actually having the correct port number information.And in order to make it all work, I also needed to fix a few places that
had incorrectly hard-coded the fact that a host always had exactly two
ports (both ata_pci_init_bmdma() and ata_request_legacy_irqs() would
just always iterate over both ports).Acked-by: Jeff Garzik
Signed-off-by: Linus Torvalds -
For backwards compatibility, call_platform_enable_wakeup() can return 0
instead of -EIO since we aren't guaranteed to have errno defined.Cc: David Brownell
Signed-off-by: David Rientjes
Cc: "Randy.Dunlap"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Add a kvasprintf() function to complement kasprintf().
No in-tree users yet, but I have some coming up.
[akpm@linux-foundation.org: EXPORT it]
Signed-off-by: Jeremy Fitzhardinge
Cc: Andrew Morton
Cc: Keir Fraser
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This patch changes the docs and behaviour from "all states valid" to "no
states valid" if no .valid callback is assigned. Users of pm_ops that only
need mem sleep can assign pm_valid_only_mem without any overhead, others
will require more elaborate callbacks.Now that all users of pm_ops have a .valid callback this is a safe thing to
do and prevents things from getting messy again as they were before.Signed-off-by: Johannes Berg
Acked-by: Pavel Machek
Looks-okay-to: Rafael J. Wysocki
Cc:
Cc: Greg KH
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds