04 Mar, 2011
2 commits
-
Netlink message processing in the kernel is synchronous these days, the
session information can be collected when needed.Signed-off-by: Patrick McHardy
Signed-off-by: David S. Miller -
As reported by Eric:
[11483.697233] IP: [] dst_release+0x18/0x60
...
[11483.697741] Call Trace:
[11483.697764] [] udp_sendmsg+0x282/0x6e0
[11483.697790] [] ? memcpy_toiovec+0x51/0x70
[11483.697818] [] ? ip_generic_getfrag+0x0/0xb0The pointer passed to dst_release() is -EINVAL, that's because
we leave an error pointer in the local variable "rt" by accident.NULL it out to fix the bug.
Reported-by: Eric Dumazet
Signed-off-by: David S. Miller
03 Mar, 2011
8 commits
-
- Remove the dependency of cxgb4 and cxgb4vf on INET. cxgb3 really
depends on INET, keep it but add it directly to the driver's Kconfig
entry.
- Make the iSCSI drivers cxgb3i and cxgb4i available in the SCSI menu
without requiring any options in the net driver menu to be enabled
first. Add needed selects so the iSCSI drivers can build their
corresponding net drivers.
- Remove CHELSIO_T*_DEPENDS.Signed-off-by: Dimitris Michailidis
Acked-by: Jan Beulich
Signed-off-by: David S. Miller -
This patch adds the support for retrieving the remote or peer DCBX
configuration via dcbnl for embedded DCBX stacks supporting the CEE DCBX
standard.Signed-off-by: Shmulik Ravid
Signed-off-by: David S. Miller -
These 2 patches add the support for retrieving the remote or peer DCBX
configuration via dcbnl for embedded DCBX stacks. The peer configuration
is part of the DCBX MIB and is useful for debugging and diagnostics of
the overall DCB configuration. The first patch add this support for IEEE
802.1Qaz standard the second patch add the same support for the older
CEE standard. Diff for v2 - the peer-app-info is CEE specific.Signed-off-by: Shmulik Ravid
Signed-off-by: David S. Miller -
INIT_NETDEV_GROUP is needed by userspace, move it outside __KERNEL__
guards.Signed-off-by: Vlad Dogaru
Signed-off-by: David S. Miller -
This avoid a stack frame at zero cost.
Signed-off-by: David S. Miller
-
Instead of on the stack.
Signed-off-by: David S. Miller
-
Instead of on the stack.
Signed-off-by: David S. Miller
02 Mar, 2011
19 commits
-
The patch to replace inet->cork with cork left out two spots in
__ip_append_data that can result in bogus packet construction.Signed-off-by: Herbert Xu
Signed-off-by: David S. Miller -
If CONFIG_NET_KEY_MIGRATE is not defined the arguments of
pfkey_migrate stub do not match causing warning.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
The route lookup code in icmpv6_send() is slightly tricky as a result of
having to handle all of the requirements of RFC 4301 host relookups.Pull the route resolution into a seperate function, so that the error
handling and route reference counting is hopefully easier to see and
contained wholly within this new routine.Signed-off-by: David S. Miller
-
The route lookup code in icmp_send() is slightly tricky as a result of
having to handle all of the requirements of RFC 4301 host relookups.Pull the route resolution into a seperate function, so that the error
handling and route reference counting is hopefully easier to see and
contained wholly within this new routine.Signed-off-by: David S. Miller
-
That way we don't have to potentially do this in every xfrm_lookup()
caller.Signed-off-by: David S. Miller
-
Return a dst pointer which is potentitally error encoded.
Don't pass original dst pointer by reference, pass a struct net
instead of a socket, and elide the flow argument since it is
unnecessary.Signed-off-by: David S. Miller
-
This can be determined from the flow flags instead.
Signed-off-by: David S. Miller
-
Since it indicates whether we are invoked from a sleepable
context or not.Signed-off-by: David S. Miller
-
This boolean state is now available in the flow flags.
Signed-off-by: David S. Miller
-
And set is in contexts where the route resolution can sleep.
Signed-off-by: David S. Miller
-
Since that is what the current vague "flags" argument means.
Signed-off-by: David S. Miller
-
Since that's what the current vague "flags" thing means.
Signed-off-by: David S. Miller
-
Route lookups follow a general pattern in the ipv6 code wherein
we first find the non-IPSEC route, potentially override the
flow destination address due to ipv6 options settings, and then
finally make an IPSEC search using either xfrm_lookup() or
__xfrm_lookup().__xfrm_lookup() is used when we want to generate a blackhole route
if the key manager needs to resolve the IPSEC rules (in this case
-EREMOTE is returned and the original 'dst' is left unchanged).Otherwise plain xfrm_lookup() is used and when asynchronous IPSEC
resolution is necessary, we simply fail the lookup completely.All of these cases are encapsulated into two routines,
ip6_dst_lookup_flow and ip6_sk_dst_lookup_flow. The latter of which
handles unconnected UDP datagram sockets.Signed-off-by: David S. Miller
-
The UDP transmit path has been running under the socket lock
for a long time because of the corking feature. This means that
transmitting to the same socket in multiple threads does not
scale at all.However, as most users don't actually use corking, the locking
can be removed in the common case.This patch creates a lockless fast path where corking is not used.
Please note that this does create a slight inaccuracy in the
enforcement of socket send buffer limits. In particular, we
may exceed the socket limit by up to (number of CPUs) * (packet
size) because of the way the limit is computed.As the primary purpose of socket buffers is to indicate congestion,
this should not be a great problem for now.Signed-off-by: Herbert Xu
Acked-by: Eric Dumazet
Signed-off-by: David S. Miller -
This patch converts UDP to use the new ip_finish_skb API. This
would then allows us to more easily use ip_make_skb which allows
UDP to run without a socket lock.Signed-off-by: Herbert Xu
Acked-by: Eric Dumazet
Signed-off-by: David S. Miller -
This patch adds the helper ip_make_skb which is like ip_append_data
and ip_push_pending_frames all rolled into one, except that it does
not send the skb produced. The sending part is carried out by
ip_send_skb, which the transport protocol can call after it has
tweaked the skb.It is meant to be called in cases where corking is not used should
have a one-to-one correspondence to sendmsg.This patch also adds the helper ip_finish_skb which is meant to
be replace ip_push_pending_frames when corking is required.
Previously the protocol stack would peek at the socket write
queue and add its header to the first packet. With ip_finish_skb,
the protocol stack can directly operate on the final skb instead,
just like the non-corking case with ip_make_skb.Signed-off-by: Herbert Xu
Acked-by: Eric Dumazet
Signed-off-by: David S. Miller -
In order to allow simultaneous calls to ip_append_data on the same
socket, it must not modify any shared state in sk or inet (other
than those that are designed to allow that such as atomic counters).This patch abstracts out write references to sk and inet_sk in
ip_append_data and its friends so that we may use the underlying
code in parallel.Signed-off-by: Herbert Xu
Acked-by: Eric Dumazet
Signed-off-by: David S. Miller -
UFO doesn't really use the sk_sndmsg_* parameters so touching
them is pointless. It can't use them anyway since the whole
point of UFO is to use the original pages without copying.Signed-off-by: Herbert Xu
Acked-by: Eric Dumazet
Signed-off-by: David S. Miller
01 Mar, 2011
11 commits
-
All features originally planned for version 3.1 (and some that
weren't) have been implemented.Signed-off-by: Ben Hutchings
-
In Falcon we can configure the fill levels of the RX data FIFO which
trigger the generation of pause frames (if enabled), and we have
module parameters for this.Siena does not allow the levels to be configured (or, if it does, this
is done by the MC firmware and is not configurable by drivers).So far as I can tell, the module parameters are not used by our
internal scripts and have not been documented (with the exception of
the short parameter descriptions). Therefore, remove them and always
initialise Falcon with the default values.Signed-off-by: Ben Hutchings
-
Signed-off-by: Ben Hutchings
-
Signed-off-by: Ben Hutchings
-
This field does not exist in all MMDs we want to check, and all
callers allow it to be set (fault_fatal = 0).Remove the loopback condition, as STAT2.DEVPRST should be valid
regardless of any fault.Signed-off-by: Ben Hutchings
-
We currently make no use of siena_nic_data::fw_{version,build} except
to format the firmware version for ethtool_get_drvinfo(). Since we
only read the version at start of day, this information is incorrect
after an MC firmware update. Remove the cached version information
and read it via MCDI whenever it is requested.Signed-off-by: Ben Hutchings
-
Instead calculate the KVA of receive data. It's not like it's a hard sum.
[bwh: Fixed to work with GRO.]
Signed-off-by: Ben Hutchings -
[bwh: Forward-ported to net-next-2.6.]
Signed-off-by: Ben Hutchings -
Clearly it should be the size of ->ip_dst here.
Although this is harmless, but it still reads odd.Signed-off-by: WANG Cong
Signed-off-by: David S. Miller -
During a port profile disassociate all address registrations for the interface
are blown away from the adapter. This patch resets the driver cache of
registered address lists to zero after a port profile disassociate.Signed-off-by: Roopa Prabhu
Signed-off-by: David Wang
Signed-off-by: Christian Benvenuti
Signed-off-by: David S. Miller -
Allow randomised ethernet address if the device does not have a valid
EEPROM or pre-set MAC address.Signed-off-by: Ben Dooks
Signed-off-by: Mark Brown
Signed-off-by: David S. Miller