18 Feb, 2010
40 commits
-
As reported by Alexey Dobriyan:
--------------------
setkey now takes several seconds to run this simple script
and it spits "recv: Resource temporarily unavailable" messages.#!/usr/sbin/setkey -f
flush;
spdflush;add A B ipcomp 44 -m tunnel -C deflate;
add B A ipcomp 45 -m tunnel -C deflate;spdadd A B any -P in ipsec
ipcomp/tunnel/192.168.1.2-192.168.1.3/use;
spdadd B A any -P out ipsec
ipcomp/tunnel/192.168.1.3-192.168.1.2/use;
--------------------Obviously applications want the events even when the table
is empty. So we cannot make this behavioral change.Signed-off-by: David S. Miller
-
Adds half-duplex specific setup code (taken from SiS own GPL driver).
Without those, half-duplex connections are very unreliable, often
working on small transfers and failing after a while.Signed-off-by: Riccardo Ghetta
Signed-off-by: David S. Miller -
The n-tuple list should be flushed if and only if the ETH_RESET_FILTER
flag is set and the driver is able to reset filtering/flow direction
hardware without also resetting a component whose flag is not set.
This test is best left to the driver.Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller -
Updated release version and date: 1.52.1-6 and 2010/02/16
Signed-off-by: Vladislav Zolotarov
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Switch to the new firmware version (5.2.13).
Signed-off-by: Vladislav Zolotarov
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
New firmware version (5.2.13).
Signed-off-by: Vladislav Zolotarov
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Bug fix: Use the last unicast entry in CAM in bnx2x_test_int(). Relevant for 57710 only.
Author: Dmitry Kravkov
Signed-off-by: Dmitry Kravkov
Signed-off-by: Vladislav Zolotarov
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Bug fix: Do not allow enabling LRO if disable_tpa=1.
Signed-off-by: Vladislav Zolotarov
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Bug fix: clean up MCP state in case of error in bnx2x_init_hw().
Author: Dmitry Kravkov
Signed-off-by: Dmitry Kravkov
Signed-off-by: Vladislav Zolotarov
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Bug fix: Properly release allocated MSI-X/MSI vectors if ifup failed
due to lack of memory.Signed-off-by: Vladislav Zolotarov
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Convert from:
if (netif_msg_(priv))
dev_(dev...
to
netif_(priv, foo, dev...Also convert a few:
if (i < REG_TIMEOUT) {
etc...
return ret;
}
to
if (i >= REG_TIMEOUT)
goto fail;
etc...
return ret;Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
These macros are too similar to the dev_ equivalents
but take a usbnet * argument. Convert them to the recently
introduced netdev_ macros and remove the old macros.The old macros had "\n" appended to the format string.
Add the "\n" to the converted uses.Some existing uses of the dev macros in cdc_eem.c
probably mistakenly had trailing "\n". No "\n" added there.Fix net1080 this/other log message inversion.
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Signed-off-by: Sathya Perla
Signed-off-by: David S. Miller -
The flush compl (compl with numfrags == 0; no data) is rcvd
from hw to indicate completion of RXQ destory operation. Fix
the RX path to not process it as RX data.Signed-off-by: Sathya Perla
Signed-off-by: David S. Miller -
When an MCC cmd is issued (via a netdev/ethtool op)
while the device is not open, the MCC CQ gets processed but the EQ
is not processed (as isr is not registered.) This can cause the EQ
to become full. So, while the device is not open, CQ must not be re-armed
to prevent EQ entries.Signed-off-by: Sathya Perla
Signed-off-by: David S. Miller -
Introduce unlikely() for skb alloc failure and vlanf checks...
Signed-off-by: Sathya Perla
Signed-off-by: David S. Miller -
On some servers we see the cleaning of the RX queue finish before all
the loopback packets are sent out. This delay allows the queues to
settle before checking for successful completion.
Also, delay completion so link has time to come back up.Signed-off-by: Ron Mercer
Signed-off-by: David S. Miller -
Use local copy of current mac address when initializing. In bonding
testing we saw cases where dev_addr was out of data causing failover
errors.Signed-off-by: Ron Mercer
Signed-off-by: David S. Miller -
This was found with pings that were large enough to span multiple rx
buffers. The split frame logic handles this case nicely.Signed-off-by: Ron Mercer
Signed-off-by: David S. Miller -
A userland command to set the LLTEMAC MAC address,
i.e. "ifconfig eth0 hw addr xx:yy:zz:pp:dd:qq",
results in a device address of 00:01:xx:yy:zz:pp.
Correct this.Signed-off-by: Steven J. Magnani
Signed-off-by: David S. Miller -
LLTEMAC V1 cores place only received packet length in the app4 word.
V2 cores place additional information in app4.
Mask out the additional information when retrieving the packet length.Signed-off-by: Steven J. Magnani
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Introduced a new function to do the mc list processing, makes code
clearer after transition.Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
kasprintf() makes code smaller.
Signed-off-by: Alexey Dobriyan
Signed-off-by: David S. Miller -
Commit 2eff25c18c3d332d3c4dd98f2ac9b7114e9771b0
(netfilter: xt_hashlimit: fix race condition and simplify locking)
added a mutex deadlock :
htable_create() is called with hashlimit_mutex already lockedSigned-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
The net being checked there is dev_net(dev) and thus this if
is always false.Fits both net and net-next trees.
Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
This updates the tx DMA mapping error handling code to
resemble e1000e/ixgbe.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This change simplifies the code by setting RX_PTHRESH to 8 for
all devices, as it was unlikely that there was any advantage to
set it at 16 for earlier cards. Additionally TX_WTHRESH is
set to 1 for the 82576 NIC to improve performance by enabling
a minimal amount of write combining when writing back descriptors.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This change makes it so that igb_free_q_vectors is reused in
igb_alloc_q_vectors to handle the cleanup instead of unwinding
through the allocations.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
In an earlier version of igb_write_mc_addr_list() the vmolr register
was modified. This register is no longer accessed, although the variable
still exists. This patch removes it from the function.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This change cleans up some instances where unsigned int and u32
were being used interchangeably, and cleans up hdr_len which
was being set to 0 twice.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This change moves gso_segs into the buffer_info structure to avoid
a possible cache line miss in clean_tx_irq.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
igb_maybe_stop_tx() is extremely small and appears in several spots in
the tx hotpath. This change inlines the function for a possible
performance boost.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
There are a couple statistics registers that are not meant to
be read when in SGMII/serdes mode. This patch adds a check to
verify mode before reading and updating these statistics.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
The SRRCTL.DROP_EN bit should only be set when we are supporting
multiple queues. This bit is meant to prevent head of line blocking
and is unnecessary in the single queue case.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
In order to maintain similar performance between MSI-X and
legacy/MSI interrupts, this patch reduces the number of interrupts
when receiving small packets to 20K when in interrupt throttle
rate mode 3.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
Adaptive IFS support has been included in the igb driver since its
initial release, but it is not a feature on any igb NICs. This patch
removes it from the driver.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This change makes it so that the rings are allocated seperately. As a
result we can allocate them on seperate nodes at some point in the future
if we so desire.Signed-off-by: Alexander Duyck
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This patch adds calls to pci_save_state() immediately after
calls to pci_restore_state(). Due to a change in the behavior
of pci_restore_state() it is necessary to call pci_save_state()
to keep the state_saved flag. This patch is based on a similar
patch for ixgbe.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller -
This changes the behavior of the driver to power down the link
when the associated interface is down, unless management is enabled.Signed-off-by: Nicholas Nunley
Signed-off-by: Jeff Kirsher
Signed-off-by: David S. Miller