2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-30 03:14:01 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-03-04 14:53:30 +08:00
|
|
|
|
2013-06-04 19:46:26 +03:00
|
|
|
|
2014-10-23 18:41:08 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-07-11 21:03:49 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
net/compat/wext: send different messages to compat tasks
Wireless extensions have the unfortunate problem that events
are multicast netlink messages, and are not independent of
pointer size. Thus, currently 32-bit tasks on 64-bit platforms
cannot properly receive events and fail with all kinds of
strange problems, for instance wpa_supplicant never notices
disassociations, due to the way the 64-bit event looks (to a
32-bit process), the fact that the address is all zeroes is
lost, it thinks instead it is 00:00:00:00:01:00.
The same problem existed with the ioctls, until David Miller
fixed those some time ago in an heroic effort.
A different problem caused by this is that we cannot send the
ASSOCREQIE/ASSOCRESPIE events because sending them causes a
32-bit wpa_supplicant on a 64-bit system to overwrite its
internal information, which is worse than it not getting the
information at all -- so we currently resort to sending a
custom string event that it then parses. This, however, has a
severe size limitation we are frequently hitting with modern
access points; this limitation would can be lifted after this
patch by sending the correct binary, not custom, event.
A similar problem apparently happens for some other netlink
users on x86_64 with 32-bit tasks due to the alignment for
64-bit quantities.
In order to fix these problems, I have implemented a way to
send compat messages to tasks. When sending an event, we send
the non-compat event data together with a compat event data in
skb_shinfo(main_skb)->frag_list. Then, when the event is read
from the socket, the netlink code makes sure to pass out only
the skb that is compatible with the task. This approach was
suggested by David Miller, my original approach required
always sending two skbs but that had various small problems.
To determine whether compat is needed or not, I have used the
MSG_CMSG_COMPAT flag, and adjusted the call path for recv and
recvfrom to include it, even if those calls do not have a cmsg
parameter.
I have not solved one small part of the problem, and I don't
think it is necessary to: if a 32-bit application uses read()
rather than any form of recvmsg() it will still get the wrong
(64-bit) event. However, neither do applications actually do
this, nor would it be a regression.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-07-01 11:26:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-07-26 13:13:49 -07:00
|
|
|
|
net/compat/wext: send different messages to compat tasks
Wireless extensions have the unfortunate problem that events
are multicast netlink messages, and are not independent of
pointer size. Thus, currently 32-bit tasks on 64-bit platforms
cannot properly receive events and fail with all kinds of
strange problems, for instance wpa_supplicant never notices
disassociations, due to the way the 64-bit event looks (to a
32-bit process), the fact that the address is all zeroes is
lost, it thinks instead it is 00:00:00:00:01:00.
The same problem existed with the ioctls, until David Miller
fixed those some time ago in an heroic effort.
A different problem caused by this is that we cannot send the
ASSOCREQIE/ASSOCRESPIE events because sending them causes a
32-bit wpa_supplicant on a 64-bit system to overwrite its
internal information, which is worse than it not getting the
information at all -- so we currently resort to sending a
custom string event that it then parses. This, however, has a
severe size limitation we are frequently hitting with modern
access points; this limitation would can be lifted after this
patch by sending the correct binary, not custom, event.
A similar problem apparently happens for some other netlink
users on x86_64 with 32-bit tasks due to the alignment for
64-bit quantities.
In order to fix these problems, I have implemented a way to
send compat messages to tasks. When sending an event, we send
the non-compat event data together with a compat event data in
skb_shinfo(main_skb)->frag_list. Then, when the event is read
from the socket, the netlink code makes sure to pass out only
the skb that is compatible with the task. This approach was
suggested by David Miller, my original approach required
always sending two skbs but that had various small problems.
To determine whether compat is needed or not, I have used the
MSG_CMSG_COMPAT flag, and adjusted the call path for recv and
recvfrom to include it, even if those calls do not have a cmsg
parameter.
I have not solved one small part of the problem, and I don't
think it is necessary to: if a 32-bit application uses read()
rather than any form of recvmsg() it will still get the wrong
(64-bit) event. However, neither do applications actually do
this, nor would it be a regression.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-07-01 11:26:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-08 13:37:42 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-04 14:20:14 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-12 17:35:16 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-11-05 16:44:06 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
|
|
|
|
|
2006-06-09 00:29:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-01 16:20:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010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2014-09-30 10:59:18 +02:00
|
|
|
|
2014-09-18 11:29:03 +02:00
|
|
|
|
2007-12-17 22:47:05 -08:00
|
|
|
|
2014-09-18 11:29:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-17 00:41:21 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-08-09 20:14:34 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-02-24 15:30:39 +00:00
|
|
|
|
2006-01-16 16:39:13 +01:00
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
2010-04-02 06:18:33 +00:00
|
|
|
|
2008-07-05 21:25:39 -07:00
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
net: Distributed Switch Architecture protocol support
Distributed Switch Architecture is a protocol for managing hardware
switch chips. It consists of a set of MII management registers and
commands to configure the switch, and an ethernet header format to
signal which of the ports of the switch a packet was received from
or is intended to be sent to.
The switches that this driver supports are typically embedded in
access points and routers, and a typical setup with a DSA switch
looks something like this:
+-----------+ +-----------+
| | RGMII | |
| +-------+ +------ 1000baseT MDI ("WAN")
| | | 6-port +------ 1000baseT MDI ("LAN1")
| CPU | | ethernet +------ 1000baseT MDI ("LAN2")
| |MIImgmt| switch +------ 1000baseT MDI ("LAN3")
| +-------+ w/5 PHYs +------ 1000baseT MDI ("LAN4")
| | | |
+-----------+ +-----------+
The switch driver presents each port on the switch as a separate
network interface to Linux, polls the switch to maintain software
link state of those ports, forwards MII management interface
accesses to those network interfaces (e.g. as done by ethtool) to
the switch, and exposes the switch's hardware statistics counters
via the appropriate Linux kernel interfaces.
This initial patch supports the MII management interface register
layout of the Marvell 88E6123, 88E6161 and 88E6165 switch chips, and
supports the "Ethertype DSA" packet tagging format.
(There is no officially registered ethertype for the Ethertype DSA
packet format, so we just grab a random one. The ethertype to use
is programmed into the switch, and the switch driver uses the value
of ETH_P_EDSA for this, so this define can be changed at any time in
the future if the one we chose is allocated to another protocol or
if Ethertype DSA gets its own officially registered ethertype, and
everything will continue to work.)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Nicolas Pitre <nico@marvell.com>
Tested-by: Byron Bradley <byron.bbradley@gmail.com>
Tested-by: Tim Ellis <tim.ellis@mac.com>
Tested-by: Peter van Valderen <linux@ddcrew.com>
Tested-by: Dirk Teurlings <dirk@upexia.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-07 13:44:02 +00:00
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
|
|
|
|
|
2009-01-23 03:00:25 +00:00
|
|
|
|
2014-07-11 10:24:18 +02:00
|
|
|
|
2009-06-08 12:18:48 +00:00
|
|
|
|
2012-05-15 20:50:20 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-11-20 20:52:10 -08:00
|
|
|
|
2010-08-04 15:16:33 +01:00
|
|
|
|
2010-12-13 11:19:28 +00:00
|
|
|
|
2011-10-25 19:26:31 -07:00
|
|
|
|
VSOCK: Introduce VM Sockets
VM Sockets allows communication between virtual machines and the hypervisor.
User level applications both in a virtual machine and on the host can use the
VM Sockets API, which facilitates fast and efficient communication between
guest virtual machines and their host. A socket address family, designed to be
compatible with UDP and TCP at the interface level, is provided.
Today, VM Sockets is used by various VMware Tools components inside the guest
for zero-config, network-less access to VMware host services. In addition to
this, VMware's users are using VM Sockets for various applications, where
network access of the virtual machine is restricted or non-existent. Examples
of this are VMs communicating with device proxies for proprietary hardware
running as host applications and automated testing of applications running
within virtual machines.
The VMware VM Sockets are similar to other socket types, like Berkeley UNIX
socket interface. The VM Sockets module supports both connection-oriented
stream sockets like TCP, and connectionless datagram sockets like UDP. The VM
Sockets protocol family is defined as "AF_VSOCK" and the socket operations
split for SOCK_DGRAM and SOCK_STREAM.
For additional information about the use of VM Sockets, please refer to the
VM Sockets Programming Guide available at:
https://www.vmware.com/support/developer/vmci-sdk/
Signed-off-by: George Zhang <georgezhang@vmware.com>
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Andy king <acking@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-02-06 14:23:56 +00:00
|
|
|
|
2013-03-21 20:33:48 +04:00
|
|
|
|
2013-05-23 21:02:52 +00:00
|
|
|
|
2013-10-30 21:10:47 +01:00
|
|
|
|
2014-11-28 14:34:17 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-03-24 19:13:54 +00:00
|
|
|
|
2014-12-20 15:41:11 -05:00
|
|
|
|
2013-11-21 14:32:01 -08:00
|
|
|
|
2010-03-24 19:13:54 +00:00
|
|
|
|
|
|
|
|
|
2011-01-19 11:03:53 +00:00
|
|
|
|
2014-12-20 15:41:11 -05:00
|
|
|
|
2013-08-30 09:39:53 +02:00
|
|
|
|
2011-01-19 11:03:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-26 08:36:09 +00:00
|
|
|
|
2014-12-20 15:41:11 -05:00
|
|
|
|
2013-11-21 14:32:01 -08:00
|
|
|
|
2010-11-26 08:36:09 +00:00
|
|
|
|
|
|
|
|
|
2013-12-29 17:27:11 +01:00
|
|
|
|
2014-02-08 10:36:58 -05:00
|
|
|
|
2011-11-22 05:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-29 17:27:11 +01:00
|
|
|
|
2011-11-22 05:10:51 +00:00
|
|
|
|
2013-12-29 18:27:10 +01:00
|
|
|
|
2014-12-20 15:41:11 -05:00
|
|
|
|
2013-12-29 18:27:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-01 11:10:25 +08:00
|
|
|
|
2014-12-20 15:41:11 -05:00
|
|
|
|
2013-06-14 16:33:46 +03:00
|
|
|
|
2013-06-10 11:39:50 +03:00
|
|
|
|
2011-11-28 16:33:09 +00:00
|
|
|
|
2014-12-20 15:41:11 -05:00
|
|
|
|
2011-11-28 16:33:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-20 09:27:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-29 10:20:53 -07:00
|
|
|
|
2011-04-20 09:27:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-20 04:02:32 +00:00
|
|
|
|
2014-12-20 15:41:11 -05:00
|
|
|
|
2013-05-20 04:02:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-29 13:44:15 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-05 17:30:32 -07:00
|
|
|
|
|
|
|
|
|
2012-10-02 11:19:40 -07:00
|
|
|
|
2006-06-05 17:30:32 -07:00
|
|
|
|
|
|
|
|
|
2006-06-08 23:42:09 -07:00
|
|
|
|
2006-06-05 17:30:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-25 23:47:14 -07:00
|
|
|
|
2010-11-15 19:55:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-05 17:30:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 09:53:16 +00:00
|
|
|
|
2012-05-17 10:04:00 +00:00
|
|
|
|
2012-10-02 11:19:40 -07:00
|
|
|
|
2009-03-11 09:53:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-11-16 15:52:17 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-04-26 15:48:28 -07:00
|
|
|
|
2006-01-21 00:46:55 +01:00
|
|
|
|
2006-08-04 03:38:38 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-24 12:20:09 -04:00
|
|
|
|
|
|
|
|
|
2007-05-10 15:46:01 +02:00
|
|
|
|
2008-07-24 12:20:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-23 12:19:12 -07:00
|
|
|
|
|
|
|
|
|
2007-05-05 11:45:53 -07:00
|
|
|
|
2007-04-23 12:19:12 -07:00
|
|
|
|
2008-07-24 12:20:09 -04:00
|
|
|
|
2007-04-23 12:19:12 -07:00
|
|
|
|
2008-12-23 16:18:24 -08:00
|
|
|
|
|
|
|
|
|
2007-05-07 00:34:20 -07:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2010-03-30 13:56:28 +00:00
|
|
|
|
2010-04-06 15:14:15 -07:00
|
|
|
|
2011-07-01 19:31:33 -03:00
|
|
|
|
2010-03-30 13:56:28 +00:00
|
|
|
|
2007-05-07 00:34:20 -07:00
|
|
|
|
2005-07-11 21:13:56 -07:00
|
|
|
|
2012-05-21 20:45:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|