20 Dec, 2011
17 commits
-
DaveM said:
Please, this kind of stuff rots forever and not using bool properly
drives me crazy.Joe Perches gave me the spatch script:
@@
bool b;
@@
-b = 0
+b = false
@@
bool b;
@@
-b = 1
+b = trueI merely installed coccinelle, read the documentation and took credit.
Signed-off-by: Rusty Russell
Signed-off-by: David S. Miller -
Signed-off-by: Gabor Juhos
Signed-off-by: Frederic Lambert
Signed-off-by: David S. Miller -
Replace open-coded list traversal with list_for_each_entry().
CC: Grant Grundler
CC: netdev@vger.kernel.org
Signed-off-by: Bjorn Helgaas
Signed-off-by: David S. Miller -
Replace open-coded list traversal with list_for_each_entry().
CC: David S. Miller
CC: netdev@vger.kernel.org
Signed-off-by: Bjorn Helgaas
Signed-off-by: David S. Miller -
Signed-off-by: Jitendra Kalsaria
Signed-off-by: David S. Miller -
We can use vzalloc() helper now instead of __vmalloc() trick
Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
This patch adds the ethtool callbacks necessary to change the rss
indirection table from userspace. Should the number of interrupts
change (e.g. across a close / open call, or through a reset) and
any one of the indirection table values fall out-of-range, the driver
will reset the indirection table to a default layout.[Integrated many suggestions made by Ben Hutchings.]
Changes since v3
* Removed TG3_FLAG_SUPPORT_MSIX checks at the start of
tg3_get_rxfh_indir() and tg3_set_rxfh_indir().Signed-off-by: Matt Carlson
Signed-off-by: Michael Chan
Reviewed-by: Benjamin Li
Signed-off-by: David S. Miller -
bnx2-mips-06-6.2.3 and bnx2-mips-09-6.2.1.b
New firmware fixes iSCSI problems with some LeftHand targets that don't
set TTT=0xffffffff for Data-In according to spec. Firmware generates
exception warnings for this condition and becomes very slow. This is
fixed by suppressing these warnings when using default error mask.Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Lancer does not have HW registers to indicate the EQ causing the INTx
interrupt. As a result EQE entries of one EQ may be consumed when interrupt
is caused by another EQ. Fix this by arming CQs at the end of NAPI poll
routine to regenerate the EQEs.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Signed-off-by: Vinson Lee
Signed-off-by: David S. Miller -
This reverts commit 5c3ddec73d01a1fae9409c197078cb02c42238c3.
S390 qeth driver actually still uses the setup ops.
Reported-by: Frank Blaschka
Signed-off-by: David S. Miller -
The communication channel is HW interface from PF point of view
So the command return status should be stored as HW error code
and only then translated to errno values.Reporetd-by: Dan Carpenter
Signed-off-by: Yevgeny Petrilin
Signed-off-by: David S. Miller -
The function is always called from irq context, changing the call
to spin_lock().Signed-off-by: Yevgeny Petrilin
Signed-off-by: David S. Miller -
Solves an issue where we tried to free the same page twice after
the port has been opened and closed.Signed-off-by: Alexander Guller
Signed-off-by: David S. Miller -
New FW can give clues to driver regarding default port type
and whether or not we should default to link sensing on the port.2 bits are added to QUERY_PORT command:
1. suggested_type: This bit gives a hint whether the default port type should be
IB or Ethernet.
The driver will use this hint in case the user didn't specify explicitly the link layer
type he wants to set.
2. default_sense: If this bit is set, we would sense the port type on start-up
and default the port to link sensingSigned-off-by: Yevgeny Petrilin
Signed-off-by: David S. Miller -
For ConnectX3 devices, we allow link sensing only if FW explicitly
reported it supports the feature.
For older versions (ConnectX1 and 2), if the card supports both link layer types
(Ethenet and Infiniband), link sensing is supported.Signed-off-by: Yevgeny Petrilin
Signed-off-by: David S. Miller -
…wireless-next into for-davem
17 Dec, 2011
23 commits
-
"result" isn't used. We ignore errors here because there is not much we
can do about them.Signed-off-by: Dan Carpenter
Signed-off-by: David S. Miller -
Use IS_ENABLED(CONFIG_FOO)
instead of defined(CONFIG_FOO) || defined (CONFIG_FOO_MODULE)Signed-off-by: Igor Maravić
Signed-off-by: David S. Miller -
Use IS_ENABLED(CONFIG_FOO)
instead of defined(CONFIG_FOO) || defined (CONFIG_FOO_MODULE)Signed-off-by: Igor Maravić
Signed-off-by: David S. Miller -
Use IS_ENABLED(CONFIG_FOO)
instead of defined(CONFIG_FOO) || defined (CONFIG_FOO_MODULE)Signed-off-by: Igor Maravić
Signed-off-by: David S. Miller -
Use IS_ENABLED(CONFIG_FOO)
instead of defined(CONFIG_FOO) || defined (CONFIG_FOO_MODULE)Signed-off-by: Igor Maravić
Signed-off-by: David S. Miller -
Signed-off-by: Ajit Khaparde
Signed-off-by: David S. Miller -
In control path, its better to use GFP_KERNEL allocations where
possible.Before taking qdisc spinlock, we preallocate memory just in case we'll
need it in gred_change_vq()This is a followup to commit 3f1e6d3fd37b (sch_gred: should not use
GFP_KERNEL while holding a spinlock)Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
Reported-by: Randy Dunlap
Signed-off-by: Glauber Costa
CC: Hiroyouki Kamezawa
CC: David S. Miller
CC: Eric Dumazet
CC: Stephen Rothwell
Signed-off-by: David S. Miller -
We can't scan the proto_list to initialize sock cgroups, as it
holds a rwlock, and we also want to keep the code generic enough to
avoid calling the initialization functions of protocols directly,Convert proto_list_lock into a mutex, so we can sleep and do the
necessary allocations. This lock is seldom taken, so there shouldn't
be any performance penalties associated with thatSigned-off-by: Glauber Costa
CC: Hiroyouki Kamezawa
CC: David S. Miller
CC: Eric Dumazet
CC: Stephen Rothwell
CC: Randy Dunlap
Signed-off-by: David S. Miller -
This patch fixes a compile error that occurs when the driver
is compile into the kernel and not as a module.Signed-off-by: Joerg Roedel
Signed-off-by: David S. Miller -
I didn't resolve the merge properly during the last pull of the net
tree into net-next.The code in the final resolution should set flags to TT_CLIENT_ROAM
not TT_CLIENT_PENDING.Signed-off-by: David S. Miller
-
Signed-off-by: Ben Hutchings
-
All drivers that support modification of the RX flow hash indirection
table initialise it in the same way: RX rings are assigned to table
entries in rotation. Make that default policy explicit by having them
call a ethtool_rxfh_indir_default() function.In the ethtool core, add support for a zero size value for
ETHTOOL_SRXFHINDIR, which resets the table to this default.Partly-suggested-by: Matt Carlson
Signed-off-by: Ben Hutchings
Acked-by: Shreyas N Bhatewara
Signed-off-by: David S. Miller -
Add a new ethtool operation (get_rxfh_indir_size) to get the
indirectional table size. Use this to validate the user buffer size
before calling get_rxfh_indir or set_rxfh_indir. Use get_rxnfc to get
the number of RX rings, and validate the contents of the new
indirection table before calling set_rxfh_indir. Remove this
validation from drivers.Signed-off-by: Ben Hutchings
Acked-by: Dimitris Michailidis
Signed-off-by: David S. Miller -
In order to find out the device's RX flow hash table size, ethtool
initially uses ETHTOOL_GRXFHINDIR with a buffer size of zero. This
must be supported, but it is not necessary to support any other user
buffer size less than the device table size.Signed-off-by: Ben Hutchings
Signed-off-by: David S. Miller -
Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
When establishing a unix connection on stream sockets the
server end receives an skb with socket in its receive queue.Report who is waiting for these ends to be accepted for
listening sockets via NLA.There's a lokcing issue with this -- the unix sk state lock is
required to access the peer, and it is taken under the listening
sk's queue lock. Strictly speaking the queue lock should be taken
inside the state lock, but since in this case these two sockets
are different it shouldn't lead to deadlock.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Report the peer socket inode ID as NLA. With this it's finally
possible to find out the other end of an interesting unix connection.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Actually, the socket path if it's not anonymous doesn't give
a clue to which file the socket is bound to. Even if the path
is absolute, it can be unlinked and then new socket can be
bound to it.With this NLA it's possible to check which file a particular
socket is really bound to.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
Report the sun_path when requested as NLA. With leading '\0' if
present but without the leading AF_UNIX bits.Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller -
The socket inode is used as a key for lookup. This is effectively
the only really unique ID of a unix socket, but using this for
search currently has one problem -- it is O(number of sockets) :(Does it worth fixing this lookup or inventing some other ID for
unix sockets?Signed-off-by: Pavel Emelyanov
Signed-off-by: David S. Miller