forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller: "Another merge window, another set of networking changes. I've heard rumblings that the lightweight tunnels infrastructure has been voted networking change of the year. But what do I know? 1) Add conntrack support to openvswitch, from Joe Stringer. 2) Initial support for VRF (Virtual Routing and Forwarding), which allows the segmentation of routing paths without using multiple devices. There are some semantic kinks to work out still, but this is a reasonably strong foundation. From David Ahern. 3) Remove spinlock fro act_bpf fast path, from Alexei Starovoitov. 4) Ignore route nexthops with a link down state in ipv6, just like ipv4. From Andy Gospodarek. 5) Remove spinlock from fast path of act_gact and act_mirred, from Eric Dumazet. 6) Document the DSA layer, from Florian Fainelli. 7) Add netconsole support to bcmgenet, systemport, and DSA. Also from Florian Fainelli. 8) Add Mellanox Switch Driver and core infrastructure, from Jiri Pirko. 9) Add support for "light weight tunnels", which allow for encapsulation and decapsulation without bearing the overhead of a full blown netdevice. From Thomas Graf, Jiri Benc, and a cast of others. 10) Add Identifier Locator Addressing support for ipv6, from Tom Herbert. 11) Support fragmented SKBs in iwlwifi, from Johannes Berg. 12) Allow perf PMUs to be accessed from eBPF programs, from Kaixu Xia. 13) Add BQL support to 3c59x driver, from Loganaden Velvindron. 14) Stop using a zero TX queue length to mean that a device shouldn't have a qdisc attached, use an explicit flag instead. From Phil Sutter. 15) Use generic geneve netdevice infrastructure in openvswitch, from Pravin B Shelar. 16) Add infrastructure to avoid re-forwarding a packet in software that was already forwarded by a hardware switch. From Scott Feldman. 17) Allow AF_PACKET fanout function to be implemented in a bpf program, from Willem de Bruijn" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1458 commits) netfilter: nf_conntrack: make nf_ct_zone_dflt built-in netfilter: nf_dup{4, 6}: fix build error when nf_conntrack disabled net: fec: clear receive interrupts before processing a packet ipv6: fix exthdrs offload registration in out_rt path xen-netback: add support for multicast control bgmac: Update fixed_phy_register() sock, diag: fix panic in sock_diag_put_filterinfo flow_dissector: Use 'const' where possible. flow_dissector: Fix function argument ordering dependency ixgbe: Resolve "initialized field overwritten" warnings ixgbe: Remove bimodal SR-IOV disabling ixgbe: Add support for reporting 2.5G link speed ixgbe: fix bounds checking in ixgbe_setup_tc for 82598 ixgbe: support for ethtool set_rxfh ixgbe: Avoid needless PHY access on copper phys ixgbe: cleanup to use cached mask value ixgbe: Remove second instance of lan_id variable ixgbe: use kzalloc for allocating one thing flow: Move __get_hash_from_flowi{4,6} into flow_dissector.c ixgbe: Remove unused PCI bus types ...
- Loading branch information
Showing
1,229 changed files
with
78,632 additions
and
21,995 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
* Samsung S3FWRN5 NCI NFC Controller | ||
|
||
Required properties: | ||
- compatible: Should be "samsung,s3fwrn5-i2c". | ||
- reg: address on the bus | ||
- interrupt-parent: phandle for the interrupt gpio controller | ||
- interrupts: GPIO interrupt to which the chip is connected | ||
- s3fwrn5,en-gpios: Output GPIO pin used for enabling/disabling the chip | ||
- s3fwrn5,fw-gpios: Output GPIO pin used to enter firmware mode and | ||
sleep/wakeup control | ||
|
||
Example: | ||
|
||
&hsi2c_4 { | ||
status = "okay"; | ||
s3fwrn5@27 { | ||
compatible = "samsung,s3fwrn5-i2c"; | ||
|
||
reg = <0x27>; | ||
|
||
interrupt-parent = <&gpa1>; | ||
interrupts = <3 0 0>; | ||
|
||
s3fwrn5,en-gpios = <&gpf1 4 0>; | ||
s3fwrn5,fw-gpios = <&gpj0 2 0>; | ||
}; | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
* STMicroelectronics SAS. ST NCI NFC Controller | ||
|
||
Required properties: | ||
- compatible: Should be "st,st21nfcb-spi" | ||
- spi-max-frequency: Maximum SPI frequency (<= 10000000). | ||
- interrupt-parent: phandle for the interrupt gpio controller | ||
- interrupts: GPIO interrupt to which the chip is connected | ||
- reset-gpios: Output GPIO pin used to reset the ST21NFCB | ||
|
||
Optional SoC Specific Properties: | ||
- pinctrl-names: Contains only one value - "default". | ||
- pintctrl-0: Specifies the pin control groups used for this controller. | ||
|
||
Example (for ARM-based BeagleBoard xM with ST21NFCB on SPI4): | ||
|
||
&mcspi4 { | ||
|
||
status = "okay"; | ||
|
||
st21nfcb: st21nfcb@0 { | ||
|
||
compatible = "st,st21nfcb-spi"; | ||
|
||
clock-frequency = <4000000>; | ||
|
||
interrupt-parent = <&gpio5>; | ||
interrupts = <2 IRQ_TYPE_EDGE_RISING>; | ||
|
||
reset-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; |
75 changes: 75 additions & 0 deletions
75
Documentation/devicetree/bindings/net/snps,dwc-qos-ethernet.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
* Synopsys DWC Ethernet QoS IP version 4.10 driver (GMAC) | ||
|
||
|
||
Required properties: | ||
- compatible: Should be "snps,dwc-qos-ethernet-4.10" | ||
- reg: Address and length of the register set for the device | ||
- clocks: Phandles to the reference clock and the bus clock | ||
- clock-names: Should be "phy_ref_clk" for the reference clock and "apb_pclk" | ||
for the bus clock. | ||
- interrupt-parent: Should be the phandle for the interrupt controller | ||
that services interrupts for this device | ||
- interrupts: Should contain the core's combined interrupt signal | ||
- phy-mode: See ethernet.txt file in the same directory | ||
|
||
Optional properties: | ||
- dma-coherent: Present if dma operations are coherent | ||
- mac-address: See ethernet.txt in the same directory | ||
- local-mac-address: See ethernet.txt in the same directory | ||
- snps,en-lpi: If present it enables use of the AXI low-power interface | ||
- snps,write-requests: Number of write requests that the AXI port can issue. | ||
It depends on the SoC configuration. | ||
- snps,read-requests: Number of read requests that the AXI port can issue. | ||
It depends on the SoC configuration. | ||
- snps,burst-map: Bitmap of allowed AXI burst lengts, with the LSB | ||
representing 4, then 8 etc. | ||
- snps,txpbl: DMA Programmable burst length for the TX DMA | ||
- snps,rxpbl: DMA Programmable burst length for the RX DMA | ||
- snps,en-tx-lpi-clockgating: Enable gating of the MAC TX clock during | ||
TX low-power mode. | ||
- phy-handle: See ethernet.txt file in the same directory | ||
- mdio device tree subnode: When the GMAC has a phy connected to its local | ||
mdio, there must be device tree subnode with the following | ||
required properties: | ||
- compatible: Must be "snps,dwc-qos-ethernet-mdio". | ||
- #address-cells: Must be <1>. | ||
- #size-cells: Must be <0>. | ||
|
||
For each phy on the mdio bus, there must be a node with the following | ||
fields: | ||
|
||
- reg: phy id used to communicate to phy. | ||
- device_type: Must be "ethernet-phy". | ||
- fixed-mode device tree subnode: see fixed-link.txt in the same directory | ||
|
||
Examples: | ||
ethernet2@40010000 { | ||
clock-names = "phy_ref_clk", "apb_pclk"; | ||
clocks = <&clkc 17>, <&clkc 15>; | ||
compatible = "snps,dwc-qos-ethernet-4.10"; | ||
interrupt-parent = <&intc>; | ||
interrupts = <0x0 0x1e 0x4>; | ||
reg = <0x40010000 0x4000>; | ||
phy-handle = <&phy2>; | ||
phy-mode = "gmii"; | ||
|
||
snps,en-tx-lpi-clockgating; | ||
snps,en-lpi; | ||
snps,write-requests = <2>; | ||
snps,read-requests = <16>; | ||
snps,burst-map = <0x7>; | ||
snps,txpbl = <8>; | ||
snps,rxpbl = <2>; | ||
|
||
dma-coherent; | ||
|
||
mdio { | ||
#address-cells = <0x1>; | ||
#size-cells = <0x0>; | ||
phy2: phy@1 { | ||
compatible = "ethernet-phy-ieee802.3-c22"; | ||
device_type = "ethernet-phy"; | ||
reg = <0x1>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
Netdev private dataroom for 6lowpan interfaces: | ||
|
||
All 6lowpan able net devices, means all interfaces with ARPHRD_6LOWPAN, | ||
must have "struct lowpan_priv" placed at beginning of netdev_priv. | ||
|
||
The priv_size of each interface should be calculate by: | ||
|
||
dev->priv_size = LOWPAN_PRIV_SIZE(LL_6LOWPAN_PRIV_DATA); | ||
|
||
Where LL_PRIV_6LOWPAN_DATA is sizeof linklayer 6lowpan private data struct. | ||
To access the LL_PRIV_6LOWPAN_DATA structure you can cast: | ||
|
||
lowpan_priv(dev)-priv; | ||
|
||
to your LL_6LOWPAN_PRIV_DATA structure. | ||
|
||
Before registering the lowpan netdev interface you must run: | ||
|
||
lowpan_netdev_setup(dev, LOWPAN_LLTYPE_FOOBAR); | ||
|
||
wheres LOWPAN_LLTYPE_FOOBAR is a define for your 6LoWPAN linklayer type of | ||
enum lowpan_lltypes. | ||
|
||
Example to evaluate the private usually you can do: | ||
|
||
static inline sturct lowpan_priv_foobar * | ||
lowpan_foobar_priv(struct net_device *dev) | ||
{ | ||
return (sturct lowpan_priv_foobar *)lowpan_priv(dev)->priv; | ||
} | ||
|
||
switch (dev->type) { | ||
case ARPHRD_6LOWPAN: | ||
lowpan_priv = lowpan_priv(dev); | ||
/* do great stuff which is ARPHRD_6LOWPAN related */ | ||
switch (lowpan_priv->lltype) { | ||
case LOWPAN_LLTYPE_FOOBAR: | ||
/* do 802.15.4 6LoWPAN handling here */ | ||
lowpan_foobar_priv(dev)->bar = foo; | ||
break; | ||
... | ||
} | ||
break; | ||
... | ||
} | ||
|
||
In case of generic 6lowpan branch ("net/6lowpan") you can remove the check | ||
on ARPHRD_6LOWPAN, because you can be sure that these function are called | ||
by ARPHRD_6LOWPAN interfaces. |
Oops, something went wrong.