19 Aug, 2010
12 commits
-
This patch removes the abstraction introduced by the union skb_shared_tx in
the shared skb data.The access of the different union elements at several places led to some
confusion about accessing the shared tx_flags e.g. in skb_orphan_try().http://marc.info/?l=linux-netdev&m=128084897415886&w=2
Signed-off-by: Oliver Hartkopp
Signed-off-by: David S. Miller -
Use the current message logging styles.
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Use the current logging message styles.
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Use the return value provided by register_netdev on error instead of
using a previously set value.Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
Use the return value provided by register_netdev on error instead of
hard setting it to -ENOMEM.Signed-off-by: Tobias Klauser
Signed-off-by: David S. Miller -
The error code is stored in the variable err, but it is the variable ret
that is returned instead. So store the error code in ret. Err is then
useless.The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)//
@r@
local idexpression x;
constant C;
@@if (...) { ...
x = -C
... when != x
(
return ;
|
return NULL;
|
return;
|
* return ...;
)
}
//Signed-off-by: Julia Lawall
Signed-off-by: David S. Miller -
Error codes are stored in err, but the return value is always 0. Return
err instead.The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)//
@r@
local idexpression x;
constant C;
@@if (...) { ...
x = -C
... when != x
(
return ;
|
return NULL;
|
return;
|
* return ...;
)
}
//Signed-off-by: Julia Lawall
Acked-by: Ralf Baechle
Signed-off-by: David S. Miller -
Error codes are stored in err, but the return value is always 0. Return
err instead.The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)//
@r@
local idexpression x;
constant C;
@@if (...) { ...
x = -C
... when != x
(
return ;
|
return NULL;
|
return;
|
* return ...;
)
}
//Signed-off-by: Julia Lawall
Acked-by: Ralf Baechle
Signed-off-by: David S. Miller -
On Mon, 2010-08-09 at 17:34 +0200, Dominik Brodowski wrote:
> look good from a PCMCIA point of view, therefore:
> Signed-off-by: Dominik BrodowskiIf PCMCIA is still being looked after, then here's
another for you, maybe for 2.6.37.Use the more descriptive logging message styles.
There are whitespace/indentation errors in the original
sources that these changes do not modify, so checkpatch
errors were cheerfully ignored.Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
There is no need to check "s". nla_data() doesn't return NULL. Also we
already dereferenced "s" at this point so it would have oopsed ealier if
it were NULL.Signed-off-by: Dan Carpenter
Signed-off-by: David S. Miller -
Update s2io driver's version to reflect the series of patches.
Signed-off-by: Jon Mason
Signed-off-by: David S. Miller -
usr_addrs is never referenced outside the initial struct population
during open, thus making it unnecessary. Remove it, the code that
references it, and the struct that it is the only user of.Signed-off-by: Jon Mason
Signed-off-by: David S. Miller
18 Aug, 2010
14 commits
-
These changes may be slightly safer in some instances.
There are other kzalloc calls with a multiply, but those
calls are typically "small fixed #" * sizeof(some pointer)"
and those are not converted.Signed-off-by: Joe Perches
Acked-by: Gertjan van Wingerde
Acked-by: Luciano Coelho
Signed-off-by: David S. Miller -
Ensure that TIPC does not re-establish communication with a
neighboring node until it has finished updating all data structures
containing information about that node to reflect the earlier loss of
contact. Previously, it was possible for TIPC to perform its purge of
name table entries relating to the node once contact had already been
re-established, resulting in the unwanted removal of valid name table
entries.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Cause a socket whose TIPC_CONN_TIMEOUT option is zero to wait
indefinitely for a response to a connection request using connect().
Previously, specifying a timeout of 0 ms resulted in an immediate
timeout, which was inconsistent with the behavior specified by Posix
for a socket's receive and send timeout.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Eliminate printing of dashes after name table column headers
(to adhere more closely to the standard format used in tipc-config),
and simplify name table display logic using array lookups rather
than if-then-else logic.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Eliminate unnecessary checking for null node pointer and redundant
check of second active link array entry.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Remove validation of the per-connection sequence numbers on routable
connections, since routable connections are not supported by TIPC.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Modify TIPC's broadcast link so that it counts each piece of a
fragmented message individually, rather than as treating the group
as a single message. This ensures that proper correlation of sent
and received traffic can be done when the broadcast link statistics
are displayed, and is consistent with the way fragments are counted
by TIPC's unicast links.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Prevent a TIPC node from sending out a LINK_STATE message
advertising a broadcast message that it is in the process
of sending, but has not yet actually sent. Previously, it was
possible for a link timeout to occur in between the time the
broadcast link updated its "last message sent" counter and the
time the broadcast message was passed to the broadcast bearer
for transmission. This ensures that the code which issues
the LINK_STATE message isn't informed of the new message until
the broadcast bearer has had a chance to send it.Note: The "last message sent" value is stored in the "fsm_msg_count"
field of the link structure used by the broadcast link. Since the
broadcast link doesn't utilize the normal link FSM, this field can
be re-used rather than adding a new field to the broadcast link.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Allow TIPC's broadcast link to continue operation when it is unable
to send a message to all nodes in the cluster. Previously, the
broadcast link attempted to put the broadcast pseudo-bearer into a
blocked state; however, this caused a crash because the associated
bearer structure is only partially initialized. Further
investigation has revealed some conceptual problems with blocking
the pseudo-bearer; consequently, this functionality has been
disabled for the time being and the undelivered message is
eventually resent by the broadcast link's existing message
retransmission mechanism (if possible).Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Add a check to tipc_recv_msg() to ensure it discards messages
arriving on a newly disabled bearer. This is needed to deal with a
race condition that can arise if the bearer is in the midst of being
disabled when it receives a message. Performing the check after
tipc_net_lock has been taken ensures that TIPC's bearers are in a
stable state while the message is being processed.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Prevent TIPC from incorrectly setting returned flags to poll()
in the following cases:- an unconnected socket no longer indicates that it is always readable
- an unconnected, connecting, or listening socket no longer indicates
that it is always writableSigned-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Modify TIPC to return EOPNOTSUPP if an application attempts to perform
a non-blocking connect() operation, which is not supported by TIPC.Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Add support for the SO_RCVLOWAT socket option to TIPC's stream socket
type.Signed-off-by: Florian Westphal
Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller -
Moves log buffer cleanup into tipc_core_stop() so that memory allocated
for the log buffer is freed if tipc_core_start() is unsuccessful.Signed-off-by: Anders Kaseorg
Signed-off-by: Allan Stephens
Signed-off-by: Paul Gortmaker
Signed-off-by: David S. Miller
17 Aug, 2010
14 commits
-
o Also dont allow lro to be turn on, if rx csum is disabled
Signed-off-by: Sucheta Chakraborty
Signed-off-by: Amit Kumar Salecha
Signed-off-by: David S. Miller -
o Give sufficient time for all makes of PHY modules
to establish the link after loopback test.
o Perform online test before offline test.Signed-off-by: Sony Chacko
Signed-off-by: Amit Kumar Salecha
Signed-off-by: David S. Miller -
Display interface name with netdev_info() for link status message.
Signed-off-by: Sony Chacko
Signed-off-by: Amit Kumar Salecha
Signed-off-by: David S. Miller -
Adding eswitch statistics support. User can get
whole eswitch stats or stats of func belong to that eswitch.Added:
o command to get statistics of eswitch and function.
o sysfs support to export eswitch and func statatistics.Signed-off-by: Amit Kumar Salecha
Signed-off-by: David S. Miller -
function modes was not working with CNA device, in CNA mode
other function(FCOE) can be enabled before nic.Signed-off-by: Rajesh Borundia
Signed-off-by: Amit Kumar Salecha
Signed-off-by: David S. Miller -
o NPAR state should be set to operationl by Mangement function only.
o NPAR state should be set to non operational before device reset.
o VF function should wait for NPAR state to be operational.Signed-off-by: Amit Kumar Salecha
Signed-off-by: David S. Miller -
Virtual function are not privilge to initialize firmware.
Signed-off-by: Amit Kumar Salecha
Signed-off-by: David S. Miller -
Signed-off-by: Scott Feldman
Signed-off-by: Roopa Prabhu
Signed-off-by: Vasanthy Kolluri
Signed-off-by: David S. Miller -
Signed-off-by: Scott Feldman
Signed-off-by: Roopa Prabhu
Signed-off-by: Vasanthy Kolluri
Signed-off-by: David S. Miller -
Remove function enic_dev_stats_clear and its reference in enic device
init code. Firmware clears device stats on device open. So, no need for
the driver to do it again.Signed-off-by: Scott Feldman
Signed-off-by: Roopa Prabhu
Signed-off-by: Vasanthy Kolluri
Signed-off-by: David S. Miller -
Signed-off-by: Scott Feldman
Signed-off-by: Roopa Prabhu
Signed-off-by: Vasanthy Kolluri
Signed-off-by: David S. Miller -
Add new firmware devcmds: CMD_PROXY_BY_INDEX, CMD_CONFIG_INFO_GET
Signed-off-by: Scott Feldman
Signed-off-by: Roopa Prabhu
Signed-off-by: Vasanthy Kolluri
Signed-off-by: David S. Miller -
This patch adds support for firmware management device in enic driver.
A management device is a virtual PCIe device that firmware can present
to the host as its management endpoint. It provides the interface between
the host and adapter firmware for all management operations.Signed-off-by: Scott Feldman
Signed-off-by: Roopa Prabhu
Signed-off-by: Vasanthy Kolluri
Signed-off-by: David S. Miller -
This patch implements the ndo_set_mac_address netdev operation for an enic device
Signed-off-by: Scott Feldman
Signed-off-by: Roopa Prabhu
Signed-off-by: Vasanthy Kolluri
Signed-off-by: David S. Miller