- 30 1月, 2017 4 次提交
-
-
由 Kazuya Mizuguchi 提交于
This patch enables tx and rx clock internal delay modes (TDM and RDM). This is to address a failure in the case of 1Gbps communication using the by salvator-x board with the KSZ9031RNX phy. This has been reported to occur with both the r8a7795 (H3) and r8a7796 (M3-W) SoCs. With this change APSR internal delay modes are enabled for "rgmii-id", "rgmii-rxid" and "rgmii-txid" phy modes as follows: phy mode | ASPR delay mode -----------+---------------- rgmii-id | TDM and RDM rgmii-rxid | RDM rgmii-txid | TDM Signed-off-by: NKazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Signed-off-by: NSimon Horman <horms+renesas@verge.net.au> Acked-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Colin Ian King 提交于
The macro is returning ETIME which means various checks to see if the returned err is less than zero never work. I believe a -ETIME should be returned instead. Signed-off-by: NColin Ian King <colin.king@canonical.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Colin Ian King 提交于
The check on err < 0 is redundant and can be removed. Detected by CoverityScan, CID#1398318 ("Logically Dead Code") Signed-off-by: NColin Ian King <colin.king@canonical.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Colin Ian King 提交于
The check on err < 0 is redundant and can be removed. Detected by CoverityScan, CID#1398321 ("Logically Dead Code") Signed-off-by: NColin Ian King <colin.king@canonical.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 28 1月, 2017 3 次提交
-
-
由 Edward Cree 提交于
8000 series adapters support filtering VXLAN, NVGRE and GENEVE traffic based on inner fields, and when the NIC recognises such traffic, it does not match unencapsulated traffic filters any more. So add catch- all filters for encapsulated traffic on supporting platforms. Although recognition of VXLAN and GENEVE is based on UDP ports, and thus will not occur until the driver (on the primary PF) notifies the firmware of UDP ports to use, NVGRE will always be recognised, hence without this patch 8000 series adapters will drop all NVGRE traffic. Partly based on patches by Jon Cooper <jcooper@solarflare.com>. Signed-off-by: NEdward Cree <ecree@solarflare.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Jon Cooper 提交于
Rationalise several debug-or-warnings printks using netif_cond_dbg to make output more consistent. Signed-off-by: NEdward Cree <ecree@solarflare.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Jon Cooper 提交于
If the NIC is switched from full-featured to low-latency, encapsulated filters are no longer available, and this causes errors. This patch removes those filters from the filter table on restore. Also, if filters which are removed by the above, or which we fail to insert when restoring filters, were UC, MC or broadcast default filters, invalidate the corresponding vlan->default_filters entry. Signed-off-by: NEdward Cree <ecree@solarflare.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 27 1月, 2017 2 次提交
-
-
由 Kazuya Mizuguchi 提交于
"swiotlb buffer is full" errors occur after repeated initialisation of a device - f.e. suspend/resume or ip link set up/down. This is because memory mapped using dma_map_single() in ravb_ring_format() and ravb_start_xmit() is not released. Resolve this problem by unmapping descriptors when freeing rings. Fixes: c156633f ("Renesas Ethernet AVB driver proper") Signed-off-by: NKazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> [simon: reworked] Signed-off-by: NSimon Horman <horms+renesas@verge.net.au> Acked-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Satanand Burla 提交于
Accessing skb after submitting to input queue can cause access to stale pointers if the skb ends up being transmitted and freed by that time. Signed-off-by: NSatanand Burla <satananda.burla@cavium.com> Signed-off-by: NDerek Chickles <derek.chickles@cavium.com> Signed-off-by: NRaghu Vatsavayi <raghu.vatsavayi@cavium.com> Signed-off-by: NFelix Manlunas <felix.manlunas@cavium.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 26 1月, 2017 8 次提交
-
-
由 Tomáš Pilař 提交于
PIO buffer allocation can fail for two valid reasons: - we've run out of them (results in -ENOSPC) - the NIC configuration doesn't support them (results in -EPERM) Since both these failures are expected netif_err is excessive. Signed-off-by: NBert Kenward <bkenward@solarflare.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Sunil Goutham 提交于
For DLMs and SLMs on 80/81/83xx, many lane configurations across different boards are coming up. Also kernel doesn't have any way to identify board type/info and since firmware does, just get rid of figuring out lane to serdes config and take whatever has been programmed by low level firmware. Signed-off-by: NSunil Goutham <sgoutham@cavium.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Sunil Goutham 提交于
Adds support to set Rx/Tx queue sizes from ethtool. Fixes an issue with retrieving queue size. Also sets SQ's CQ_LIMIT based on configured Tx queue size such that HW doesn't process SQEs when there is no sufficient space in CQ. Signed-off-by: NSunil Goutham <sgoutham@cavium.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 John Crispin 提交于
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core. The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string. Reported-by: NSean Wang <sean.wang@mediatek.com> Signed-off-by: NJohn Crispin <john@phrozen.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Michael Chan 提交于
bnxt_get_port_module_status() calls bnxt_update_link() which expects RTNL to be held. In bnxt_sp_task() that does not hold RTNL, we need to call it with a prior call to bnxt_rtnl_lock_sp() and the call needs to be moved to the end of bnxt_sp_task(). Signed-off-by: NMichael Chan <michael.chan@broadcom.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Michael Chan 提交于
bnxt_update_link() is called from multiple code paths. Most callers, such as open, ethtool, already hold RTNL. Only the caller bnxt_sp_task() does not. So it is a bug to take RTNL inside bnxt_update_link(). Fix it by removing the RTNL inside bnxt_update_link(). The function now expects the caller to always hold RTNL. In bnxt_sp_task(), call bnxt_rtnl_lock_sp() before calling bnxt_update_link(). We also need to move the call to the end of bnxt_sp_task() since it will be clearing the BNXT_STATE_IN_SP_TASK bit. Signed-off-by: NMichael Chan <michael.chan@broadcom.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Michael Chan 提交于
In bnxt_sp_task(), we set a bit BNXT_STATE_IN_SP_TASK so that bnxt_close() will synchronize and wait for bnxt_sp_task() to finish. Some functions in bnxt_sp_task() require us to clear BNXT_STATE_IN_SP_TASK and then acquire rtnl_lock() to prevent race conditions. There are some bugs related to this logic. This patch refactors the code to have common bnxt_rtnl_lock_sp() and bnxt_rtnl_unlock_sp() to handle the RTNL and the clearing/setting of the bit. Multiple functions will need the same logic. We also need to move bnxt_reset() to the end of bnxt_sp_task(). Functions that clear BNXT_STATE_IN_SP_TASK must be the last functions to be called in bnxt_sp_task(). The common scheme will handle the condition properly. Signed-off-by: NMichael Chan <michael.chan@broadcom.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Daniel Borkmann 提交于
This work adds a number of tracepoints to paths that are either considered slow-path or exception-like states, where monitoring or inspecting them would be desirable. For bpf(2) syscall, tracepoints have been placed for main commands when they succeed. In XDP case, tracepoint is for exceptions, that is, f.e. on abnormal BPF program exit such as unknown or XDP_ABORTED return code, or when error occurs during XDP_TX action and the packet could not be forwarded. Both have been split into separate event headers, and can be further extended. Worst case, if they unexpectedly should get into our way in future, they can also removed [1]. Of course, these tracepoints (like any other) can be analyzed by eBPF itself, etc. Example output: # ./perf record -a -e bpf:* sleep 10 # ./perf script sock_example 6197 [005] 283.980322: bpf:bpf_map_create: map type=ARRAY ufd=4 key=4 val=8 max=256 flags=0 sock_example 6197 [005] 283.980721: bpf:bpf_prog_load: prog=a5ea8fa30ea6849c type=SOCKET_FILTER ufd=5 sock_example 6197 [005] 283.988423: bpf:bpf_prog_get_type: prog=a5ea8fa30ea6849c type=SOCKET_FILTER sock_example 6197 [005] 283.988443: bpf:bpf_map_lookup_elem: map type=ARRAY ufd=4 key=[06 00 00 00] val=[00 00 00 00 00 00 00 00] [...] sock_example 6197 [005] 288.990868: bpf:bpf_map_lookup_elem: map type=ARRAY ufd=4 key=[01 00 00 00] val=[14 00 00 00 00 00 00 00] swapper 0 [005] 289.338243: bpf:bpf_prog_put_rcu: prog=a5ea8fa30ea6849c type=SOCKET_FILTER [1] https://lwn.net/Articles/705270/Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net> Acked-by: NAlexei Starovoitov <ast@kernel.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
- 25 1月, 2017 23 次提交
-
-
由 Tobias Regnery 提交于
If requesting msi-x interrupts fails in alx_request_irq we fall back to a single tx queue and msi or legacy interrupts. Currently the adapter stops working in this case and we get tx watchdog timeouts. For reasons unknown the adapter gets confused when we load the dma adresses to the chip in alx_init_ring_ptrs twice: the first time with multiple queues and the second time in the fallback case with a single queue. To fix this move the the call to alx_reinit_rings (which calls alx_init_ring_ptrs) after alx_request_irq. At this time it is clear how much tx queues we have and which dma addresses we use. Fixes: d768319c ("alx: enable multiple tx queues") Signed-off-by: NTobias Regnery <tobias.regnery@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Tobias Regnery 提交于
If requesting msi-x interrupts fails we should fall back to msi or legacy interrupts. However alx_realloc_ressources don't call alx_init_intr, so we fail to set the right number of tx queues. This results in watchdog timeouts and a nonfunctional adapter. Fixes: d768319c ("alx: enable multiple tx queues") Signed-off-by: NTobias Regnery <tobias.regnery@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Tobias Regnery 提交于
The condition to free the descriptor memory is wrong, we want to free the memory if it is set and not if it is unset. Invert the test to fix this issue. Fixes: b0999223f224b ("alx: add ability to allocate and free alx_napi structures") Signed-off-by: NTobias Regnery <tobias.regnery@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 Thomas Huth 提交于
When using the ibmveth driver in a KVM/QEMU based VM, it currently always prints out a scary error message like this when it is started: ibmveth 71000003 (unregistered net_device): unable to change checksum offload settings. 1 rc=-2 ret_attr=71000003 This happens because the driver always tries to enable the checksum offloading without checking for the availability of this feature first. QEMU does not support checksum offloading for the spapr-vlan device, thus we always get the error message here. According to the LoPAPR specification, the "ibm,illan-options" property of the corresponding device tree node should be checked first to see whether the H_ILLAN_ATTRIUBTES hypercall and thus the checksum offloading feature is available. Thus let's do this in the ibmveth driver, too, so that the error message is really only limited to cases where something goes wrong, and does not occur if the feature is just missing. Signed-off-by: NThomas Huth <thuth@redhat.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
-
由 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>
-
由 Shaker Daibes 提交于
This patch is intended for code reuse of mlx5e_modify_rx_cqe_compression function. Signed-off-by: NShaker Daibes <shakerd@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-
由 Kamal Heib 提交于
Reduce memory consumption on kdump kernel by decreasing the number of channels to 1 and the size of RQs and SQs to the minimal values. Signed-off-by: NKamal Heib <kamalh@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-
由 Or Gerlitz 提交于
So we can use that from the IB driver too in downstream patches. This patch doesn't change any functionality. Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-
由 Mohamad Haj Yahia 提交于
Add support for SRIOV VF min rate guarantee by using the TSAR BW share weights mechanism. The TSAR BW share vport attribute represents the weight of that vport among the other vports weights which means that the actual vport BW percentage is the same vport weight percentage among the total vports weights sum. Signed-off-by: NMohamad Haj Yahia <mohamad@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-
由 Or Gerlitz 提交于
The E-Switch FDB size was hard coded to 8k. Change it to be min(max eswitch table size, max flow counters * num flow groups) where the max values are read from the firmware and the number of flow groups is hard-coded as before this change. We don't know upfront the division of flows to group. This setup allows each group to be of size up to the where we want to support (we mandate pairing of flows with counters for offloading). Thus, we don't expect multiple occurences for a group which in turn adds steering hops. Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com> Reviewed-by: NRoi Dayan <roid@mellanox.com> Tested-by: NRoi Dayan <roid@mellanox.com> Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
-