15 Oct, 2009
12 commits
-
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Value of zero was used to disable the fairness mechanism. Though the code
(driver and FW) allowed changing the value at run time, it did not allow to do
that if the mechanism was disabled to begin with.
Fixed the FW to allow turning on and off the mechanism at run time. Fixed the
code to read the value from the chip at the right sequence.
Without this fix, if the initial value was set to zero, traffic could not run on
the interface.Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Signed-off-by: Eilon Greenstein
Signed-off-by: David S. Miller -
Signed-off-by: David S. Miller
-
sock_queue_rcv_skb() can update sk_drops itself, removing need for
callers to take care of it. This is more consistent since
sock_queue_rcv_skb() also reads sk_drops when queueing a skb.This adds sk_drops managment to many protocols that not cared yet.
Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
Signed-off-by: Thomas Sailer
Signed-off-by: David S. Miller -
Signed-off-by: Rémi Denis-Courmont
Signed-off-by: David S. Miller -
Signed-off-by: Rémi Denis-Courmont
Signed-off-by: David S. Miller -
Signed-off-by: Rémi Denis-Courmont
Signed-off-by: David S. Miller -
The Phonet "universe" only has 64 addresses, so we keep a trivial flat
routing table.Signed-off-by: Rémi Denis-Courmont
Signed-off-by: David S. Miller -
Signed-off-by: Rémi Denis-Courmont
Signed-off-by: David S. Miller -
Reported-by: "Tony Luck"
Signed-off-by: Arnaldo Carvalho de Melo
Acked-by: Tony Luck
Signed-off-by: David S. Miller
14 Oct, 2009
18 commits
-
The lock_kernel/unlock_kernel() in cycle_kernel_lock() which is called
in tun_chr_open() is not serializing against anything and safe to
remove.tun_chr_fasync() is serialized by get/put_tun() and fasync_helper()
has no dependency on BKL. The modification of tun->flags is racy with
and without the BKL so removing it does not make it worse.Signed-off-by: Thomas Gleixner
Signed-off-by: David S. Miller -
The mechanism to clear the statistics register is dependent
on the status of GMIIEN bit in MAC control register. If the
GMIIEN bit is set, the stats registers are write to decrement.
If the GMIIEN bit is cleared, the stats registers are plain
read/write registers. The stats register clearing operation
must take into account the current state of GMIIEN as it
can be cleared when the interface is brought down.With existing implementation logic, querying for interface stats
when the interface is down, can corrupt the statistics counters.
This patch examines the GMIIEN bit status in MAC_CONTROL
register before choosing an appropriate mask for clearing stats
registers.Signed-off-by: Sriramakrishnan
Acked-by: Chaithrika U S
Signed-off-by: David S. Miller -
Extracted from Realtek's 8.012.00 r8168 driver.
Signed-off-by: Francois Romieu
Tested-by: Simon Farnsworth
Cc: Edward Hsu
Signed-off-by: David S. Miller -
Extend the driver to accept a MAC address specified in platform_data.
Signed-off-by: Manuel Lauss
Signed-off-by: David S. Miller -
Signed-off-by: Manuel Lauss
Signed-off-by: David S. Miller -
Commit 5675f221 overlooked the way offsets for netdev stats were considered.
Because of this some of the stats shown by ethtool -S were wrong.
This patch fixes it.Signed-off-by: Ajit Khaparde
Signed-off-by: David S. Miller -
Commit 337e067d overlooked the way offsets for netdev stats were considered.
Because of this some of the stats shown by ethtool -S were wrong.
This patch fixes it.Signed-off-by: Ajit Khaparde
Signed-off-by: David S. Miller -
Commit 23d26497 overlooked the way offsets for netdev stats were considered.
Because of this some of the stats shown by ethtool -S were wrong.
This patch fixes it.Signed-off-by: Ajit Khaparde
Signed-off-by: David S. Miller -
Commit fd8235bb overlooked the way offsets for netdev stats were considered.
Because of this some of the stats shown by ethtool -S were wrong.
This patch fixes it.Signed-off-by: Ajit Khaparde
Signed-off-by: David S. Miller -
Commit 59aa3cc4 overlooked the way offsets for netdev stats were considered.
Because of this some of the stats shown by ethtool -S were wrong.
This patch fixes it.Signed-off-by: Ajit Khaparde
Signed-off-by: David S. Miller -
Add sysfs entries to enable register and memory access
for diagnostic tools.Signed-off-by: Narender Kumar
Signed-off-by: Dhananjay Phadke
Signed-off-by: David S. Miller -
Since register and onboard memory access has separate
window registers, they need not be kept under same lock.Also, memory is always accessed from process context
(mostly for firmware init and diagnostic tools).Signed-off-by: Dhananjay Phadke
Signed-off-by: David S. Miller -
Use common variables crb_win, ocm_win for all revisions of chip.
Signed-off-by: Dhananjay Phadke
Signed-off-by: David S. Miller -
Add access to on chip memory, this is used by
debug and diagnostic tools only.Signed-off-by: Dhananjay Phadke
Signed-off-by: David S. Miller -
Sub 64-bit / unaligned access to oncard memory was only used
by old diagnostic tools, causes some intermittent issues when
memory controller agent is used. The new access method was
added by commit ea6828b8aa3a8ebae8d7740f32f212ba1d2f0742
("netxen: improve pci memory access"). Firmware init anyway
uses 8-byte strides.This also fixes address/offset calculation for NX2031 context
memory (SIU). For NX3031, SIU uses same register offsets
as packet memory (MIU).Signed-off-by: Amit Kumar Salecha
Signed-off-by: Dhananjay Phadke
Signed-off-by: David S. Miller -
Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller
13 Oct, 2009
10 commits
-
The bit V_MAC_RX_PL_THRSH(4) was already set a few lines higher.
Signed-off-by: Roel Kluin
Signed-off-by: David S. Miller -
The negation makes it a bool before the comparison and hence it
will never evaluate to true.Signed-off-by: Roel Kluin
Signed-off-by: David S. Miller -
Looking at commit ebc3f64b864f it appears that this was intended
and not the original, equivalent to `if (facilities.reverse & ~0x81)'.In x25_parse_facilities() that patch changed how facilities->reverse
was set. No other bits were set than 0x80 and/or 0x01.Signed-off-by: Roel Kluin
Signed-off-by: David S. Miller -
This patch added support of private MAC address per port and provisioning
packet handler for iSCSI traffic only.The above changes are isolated to the cxgb3 driver, independent of any scsi or iscsi driver changes.
Acked-by: Karen Xie
Acked-by: Divy Le Ray
Signed-off-by: Rakesh Ranjan
Signed-off-by: David S. Miller -
Add Runtime PM support to the sh_eth driver.
The clock to the ethernet hardware block will be
enabled as long as the network device is up.Signed-off-by: Magnus Damm
Tested-by: Kuninori Morimoto
Signed-off-by: David S. Miller -
Extend the sh_eth driver to allow passing the mac address
using the platform data structure. This to simplify board
setup code.Signed-off-by: Magnus Damm
Tested-by: Kuninori Morimoto
Signed-off-by: David S. Miller -
This patch allows the CAN controller driver to define the number of echo
skb's used for the local loopback (echo), as suggested by Kurt Van
Dijck, with the function:struct net_device *alloc_candev(int sizeof_priv,
unsigned int echo_skb_max);The CAN drivers have been adapted accordingly. For the ems_usb driver,
as suggested by Sebastian Haas, the number of echo skb's has been
increased to 10, which improves the transmission performance a lot.Signed-off-by: Wolfgang Grandegger
Signed-off-by: Kurt Van Dijck
Signed-off-by: David S. Miller -
Instead of hardcoding NET_IP_ALIGN stuff in various network drivers,
we can add a helper around netdev_alloc_skb()Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
Storing the mask (size - 1) instead of the size allows fast path to be
a bit faster.Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
Signed-off-by: Cosmin Ratiu
Signed-off-by: David S. Miller