- 25 1月, 2017 21 次提交
-
-
由 David VomLehn 提交于
Modify the drivers/net/ethernet/{Makefile,Kconfig} file to make them a part of the network drivers build. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add definitions that support receive side scaling. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add the driver interfaces required for support by the ethtool utility. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add functions to interface with the hardware and some utility functions. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add common functions for Atlantic hardware abstraction layer. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add functions that handle the PCI bus interface. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add functions to manululate the vector of receive and transmit rings. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel.Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add Atlantic A0 and B0 specific functions. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add support for code specific to the Atlantic NIC. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add definitions of functions that interface directly with the hardware. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel.Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add code to support the transmit and receive ring buffers. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Add files containing the functions and definitions used in common in different functional areas. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 David VomLehn 提交于
Patches to create the make and configuration files. Signed-off-by: NAlexander Loktionov <Alexander.Loktionov@aquantia.com> Signed-off-by: NDmitrii Tarakanov <Dmitrii.Tarakanov@aquantia.com> Signed-off-by: NPavel Belous <Pavel.Belous@aquantia.com> Signed-off-by: NDmitry Bezrukov <Dmitry.Bezrukov@aquantia.com> Signed-off-by: NDavid M. VomLehn <vomlehn@texas.net> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Stephen Boyd 提交于
After commit 51b7b1c3 (KSZ8851-SNL: Add ethtool support for EEPROM via eeprom_93cx6, 2011-11-21) this structure member is unused. Delete it. Signed-off-by: NStephen Boyd <stephen.boyd@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Arnd Bergmann 提交于
One line was apparently pasted incorrectly during a new feature patch: drivers/net/phy/marvell.c:2090:15: error: initialized field overwritten [-Werror=override-init] .features = PHY_GBIT_FEATURES, I'm removing the extraneous line here to avoid the W=1 warning and restore the previous flags value, and I'm slightly reordering the lines for consistency to make it less likely to happen again in the future. The ordering in the array is still not the same as in the structure definition, instead I picked the order that is most common in this file and that seems to make more sense here. Fixes: 0b04680f ("phy: marvell: Add support for temperature sensor") Signed-off-by: NArnd Bergmann <arnd@arndb.de> Reviewed-by: NAndrew Lunn <andrew@lunn.ch> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Phil Sutter 提交于
The idea for this was born when testing VF support in iproute2 which was impeded by hardware requirements. In fact, not every VF-capable hardware driver implements all netdev ops, so testing the interface is still hard to do even with a well-sorted hardware shelf. To overcome this and allow for testing the user-kernel interface, this patch allows to turn dummy into a PF with a configurable amount of VFs. Since my patch series 'bus-agnostic-num-vf' has been accepted, implementing the required interfaces is pretty straightforward: Iff 'num_vfs' module parameter was given a value >0, a dummy bus type is being registered which implements the 'num_vf()' callback. Additionally, a dummy parent device common to all dummy devices is registered which sits on the above dummy bus. Joint work with Sabrina Dubroca. Signed-off-by: NSabrina Dubroca <sd@queasysnail.net> Signed-off-by: NPhil Sutter <phil@nwl.cc> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Philippe Reynes 提交于
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. As I don't have the hardware, I'd be very pleased if someone may test this patch. Signed-off-by: NPhilippe Reynes <tremyfr@gmail.com> Acked-by: NYuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Yotam Gigi 提交于
Using the MPSC register, add the functions that configure port-based packet sampling in hardware and the necessary datatypes in the mlxsw_sp_port struct. In addition, add the necessary trap for sampled packets and integrate with matchall offloading to allow offloading of the sample tc action. The current offload support is for the tc command: tc filter add dev <DEV> parent ffff: \ matchall skip_sw \ action sample rate <RATE> group <GROUP> [trunc <SIZE>] Where only ingress qdiscs are supported, and only a combination of matchall classifier and sample action will lead to activating hardware packet sampling. Signed-off-by: NYotam Gigi <yotamg@mellanox.com> Signed-off-by: NJiri Pirko <jiri@mellanox.com> Reviewed-by: NIdo Schimmel <idosch@mellanox.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Yotam Gigi 提交于
The MPSC register allows to configure ingress packet sampling on specific port of the mlxsw device. The sampled packets are then trapped via PKT_SAMPLE trap. Signed-off-by: NYotam Gigi <yotamg@mellanox.com> Signed-off-by: NJiri Pirko <jiri@mellanox.com> Reviewed-by: NIdo Schimmel <idosch@mellanox.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
Eliminate a bit of boilerplate code. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Reviewed-by: NAndrew Lunn <andrew@lunn.ch> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Martin Blumenstingl 提交于
Prior to this patch we were using a hardcoded RGMII TX clock delay of 2ns (= 1/4 cycle of the 125MHz RGMII TX clock). This value works for many boards, but unfortunately not for all (due to the way the actual circuit is designed, sometimes because the TX delay is enabled in the PHY, etc.). Making the TX delay on the MAC side configurable allows us to support all possible hardware combinations. This allows fixing a compatibility issue on some boards, where the RTL8211F PHY is configured to generate the TX delay. We can now turn off the TX delay in the MAC, because otherwise we would be applying the delay twice (which results in non-working TX traffic). Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com> Tested-by: NNeil Armstrong <narmstrong@baylibre.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 24 1月, 2017 5 次提交
-
-
由 Bhumika Goyal 提交于
Declare net_device_ops structure as const as it is only stored in the netdev_ops field of a net_device structure. This field is of type const, so net_device_ops structures having same properties can be made const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; position p; @@ static struct net_device_ops i@p={...}; @ok1@ identifier r1.i; position p; struct net_device ndev; @@ ndev.netdev_ops=&i@p @bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct net_device_ops i; File size before: text data bss dec hex filename 6201 744 0 6945 1b21 ethernet/xilinx/xilinx_emaclite.o File size after: text data bss dec hex filename 6745 192 0 6937 1b19 ethernet/xilinx/xilinx_emaclite.o Signed-off-by: NBhumika Goyal <bhumirks@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Bhumika Goyal 提交于
Declare net_device_ops structure as const as it is only stored in the netdev_ops field of a net_device structure. This field is of type const, so net_device_ops structures having same properties can be made const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; position p; @@ static struct net_device_ops i@p={...}; @ok1@ identifier r1.i; position p; struct net_device ndev; @@ ndev.netdev_ops=&i@p @bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct net_device_ops i; File size before: text data bss dec hex filename 4821 744 0 5565 15bd ethernet/moxa/moxart_ether.o File size after: text data bss dec hex filename 5373 192 0 5565 15bd ethernet/moxa/moxart_ether.o Signed-off-by: NBhumika Goyal <bhumirks@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Timur Tabi 提交于
During reset, functions emac_mac_down() and emac_mac_up() are called, so we don't want to free and claim the IRQ unnecessarily. Move those operations to open/close. Signed-off-by: NTimur Tabi <timur@codeaurora.org> Reviewed-by: NLino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Timur Tabi 提交于
The EMAC has an internal PHY that is often called the "SGMII". This SGMII is also connected to an external PHY, which is managed by phylib. These dual PHYs often cause confusion. In this case, the data structure for managing the SGMII was mis-named and located in the wrong header file. Structure emac_phy is renamed to emac_sgmii to clearly indicate it applies to the internal PHY only. It also also moved from emac_phy.h (which supports the external PHY) to emac_sgmii.h (where it belongs). To keep the changes minimal, only the structure name is changed, not the names of any variables of that type. Signed-off-by: NTimur Tabi <timur@codeaurora.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Eric Dumazet 提交于
Commit 4cace675 ("bnx2x: Alloc 4k fragment for each rx ring buffer element") added extra put_page() and get_page() calls on arches where PAGE_SIZE=4K like x86 Reorder things to avoid this overhead. Signed-off-by: NEric Dumazet <edumazet@google.com> Cc: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> Cc: Yuval Mintz <Yuval.Mintz@cavium.com> Cc: Ariel Elior <ariel.elior@cavium.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 23 1月, 2017 11 次提交
-
-
由 Florian Fainelli 提交于
Implement the HW design team recommended workaround in for 7278. Since the GPHY now returns its revision information in MII_PHYS_ID[23] we need to check whether the revision provided in flags is 0 or not. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
Add support for the BCM7278 28nm process Gigabit Ethernet PHY. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
Parse the "brcm,use-bcm-hdr" boolean property during ports identification to fill a bitmask of ports that should have Broadcom tags enabled. This is needed in some configurations where per-packet metadata can be exchanged using Broadcom tags between the switch and an on-chip acceleration device. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
In preparation for enabling Broadcom tags on different ports based on configuration information, dedicate a function that is responsible for enabling Broadcom tags for a given port and update the IMP port setup to call it. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
Add support for the integrated switch found on BCM7278: - core_reg_align is set to 1, to force a translation into the target address space which is 8 bytes aligned - an alternate SWITCH_REG layout is provided since registers are largely bit/masks compatible but have different offsets - conditional for all CORE_STS_OVERRIDE_{IMP,GMII_P} since those got moved way out of the traditional register space Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
In preparation for supporting a new device with a slightly different register layout, affecting the SWITCH_REG and SWITCH_CORE address spaces, perform a few preparatory steps: - allow matching the compatible string against a data description - convert the SWITCH_REG register accesses into an indirection table - prepare for supporting a SWITCH_CORE register alignment requirement Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
There is no point inlining the 32-bit direct register read/write part, just infer it from the existing macro. This will make it easier to centralize the address rewriting that we are going to introduce later on. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
Add supporf for the SYSTEMPORT Lite Ethernet controller, this piece of hardware is largely based on the full-blown SYSTEMPORT and differs in the following: - no full-blown UniMAC, instead we have the MagicPacket matching from UniMAC at same offset, and a GMII Interface Block (GIB) for the MAC-level stuff, since we are always interfaced to an Ethernet switch which is fully Ethernet compliant shortcuts could be made - 16 transmit queues, whose interrupts are moved into the first Level-2 interrupt controller bank - slight TDMA offset change (a register was inserted after TDMA_STATUS, *sigh*) - 256 RX descriptors (512 words) and 256 TX descriptors (not visible) As a consequence of these two things, update the code paths accordingly to differentiate the full-blown from the light version. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Florian Fainelli 提交于
In preparation for adding SYSTEMPORT Lite, which has twice as less transmit queues than SYSTEMPORT make sure we do allocate TX rings based on the systemport,txq property to get an appropriate memory footprint. Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 jpinto 提交于
This patch fixes the LS mask when setting EEE timer. LS field is 10 bits long and not 11 as currently. Signed-off-by: NJoao Pinto <jpinto@synopsys.com> Reported-By: NRayagond Kokatanur <rayagond@vayavyalabs.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Geliang Tang 提交于
To make the code clearer, use rb_entry() instead of container_of() to deal with rbtree. Signed-off-by: NGeliang Tang <geliangtang@gmail.com> Reviewed-by: NLeon Romanovsky <leonro@mellanox.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 21 1月, 2017 3 次提交
-
-
由 Andrew Lunn 提交于
Only the Marvell mv88e6xxx DSA driver made use of the HWMON support in DSA. The temperature sensor registers are actually in the embedded PHYs, and the PHY driver now supports it. So remove all HWMON support from DSA and drivers. Signed-off-by: NAndrew Lunn <andrew@lunn.ch> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Andrew Lunn 提交于
Some Marvell PHYs have an inbuilt temperature sensor. Add hwmon support for this sensor. There are two different variants. The simpler, older chips have a 5 degree accuracy. The newer devices have 1 degree accuracy. Signed-off-by: NAndrew Lunn <andrew@lunn.ch> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Ivan Khoronzhuk 提交于
After adding cpsw_set_ringparam ethtool op, better to carry out common parts of similar ops splitting descriptors in runtime. It allows to reuse these parts and shows what the ops actually do. Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-