- 25 1月, 2017 18 次提交
-
-
由 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>
-
由 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>
-
由 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 4 次提交
-
-
由 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 6 次提交
-
-
由 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>
-
由 Ivan Khoronzhuk 提交于
No need to duplicate the same function in rx handler to get info if any interface is running. Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Ivan Khoronzhuk 提交于
No need to create additional vars to identify if interface is running. So simplify code by removing redundant var and checking usage counter instead. Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Ivan Khoronzhuk 提交于
No need to disable interrupts if no open devices, they are disabled anyway. Even no need to disable interrupts if some ndev is opened, In this case shared resources are not touched, only parameters of ndev shell, so no reason to disable them also. Removed lines have proved it. So, no need in redundant check and interrupt disable. Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Ivan Khoronzhuk 提交于
Common res usage is possible only in case an interface is running. In case of not dual emac here can be only one interface, so while ndo_open and switch mode, only one interface can be opened, thus if open is called no any interface is running ... and no common res are used. So remove check on dual emac, it will simplify code/understanding and will match the name it's called. Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Arnd Bergmann 提交于
The two new variables are only used inside of an #ifdef and cause harmless warnings when that is disabled: drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c: In function 'init_one': drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:4646:9: error: unused variable 'port_vec' [-Werror=unused-variable] drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:4646:6: error: unused variable 'v' [-Werror=unused-variable] This adds another #ifdef around the declarations. Fixes: 96fe11f2 ("cxgb4: Implement ndo_get_phys_port_id for mgmt dev") Signed-off-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 20 1月, 2017 7 次提交
-
-
由 Eric Dumazet 提交于
Commit 04aeb56a ("net/mlx4_en: allocate non 0-order pages for RX ring with __GFP_NOMEMALLOC") added code that appears to be not needed at that time, since mlx4 never used __GFP_MEMALLOC allocations anyway. As using memory reserves is a must in some situations (swap over NFS or iSCSI), this patch adds this flag. Note that this driver does not reuse pages (yet) so we do not have to add anything else. Signed-off-by: NEric Dumazet <edumazet@google.com> Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Cc: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Timur Tabi 提交于
This reverts commit 3e884493. With commit 529ed127 ("net: phy: phy drivers should not set SUPPORTED_[Asym_]Pause"), phylib now handles automatically enabling pause frame support in the PHY, and the MAC driver should follow suit. Since the EMAC driver driver does this, we no longer need to force pause frames support. Signed-off-by: NTimur Tabi <timur@codeaurora.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Saeed Mahameed 提交于
Reorder update stats flow to update most important counters last, to get more accurate results. New update order: - PCIe counters - Port counters - Vport counters - Queue counters - Software counters Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com> Reviewed-by: NGal Pressman <galp@mellanox.com>
-
由 Gal Pressman 提交于
The caps structure consists of hca caps and port/management caps, all under one roof. Signed-off-by: NGal Pressman <galp@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-
由 Gal Pressman 提交于
This patch exposes PCIe performance counters, queried with ethtool -S <devname>. Signed-off-by: NGal Pressman <galp@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-
由 Gal Pressman 提交于
Use ethtool -S to query physical layer statistical counters including: - rx_symbol_errors_phy: Number of symbol errors that were not corrected by FEC correction algorithm or that FEC was not active on this interface. - rx_corrected_bits_phy: Number of corrected bits according to active FEC (RS/FC). Signed-off-by: NGal Pressman <galp@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-
由 Gal Pressman 提交于
On load_one, we now cache our capabilities registers internally, similar to QUERY_HCA_CAP. Capabilities can later be queried using macros introduced in this patch. Signed-off-by: NGal Pressman <galp@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-