Re: [PATCH v2 bpf-next 2/5] bpf: Add support to attach bpf program to a devmap entry

2020-05-28 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 5:17 PM David Ahern wrote: > > From: David Ahern > > Add BPF_XDP_DEVMAP attach type for use with programs associated with a > DEVMAP entry. > > Allow DEVMAPs to associate a program with a device entry by adding > a bpf_prog_fd to 'struct devmap_val'. Values read show the p

Re: [PATCH v2 bpf-next 1/5] devmap: Formalize map value as a named struct

2020-05-28 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 5:15 PM David Ahern wrote: > > From: David Ahern > > Add 'struct devmap_val' to the bpf uapi to formalize the > expected values that can be passed in for a DEVMAP. > Update devmap code to use the struct. > > Signed-off-by: David Ahern > --- > include/uapi/linux/bpf.h

Re: [PATCH v2 bpf-next 4/5] libbpf: Add SEC name for xdp programs attached to device map

2020-05-28 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 5:17 PM David Ahern wrote: > > Support SEC("xdp_dm*") as a short cut for loading the program with > type BPF_PROG_TYPE_XDP and expected attach type BPF_XDP_DEVMAP. > > Signed-off-by: David Ahern > --- > tools/lib/bpf/libbpf.c | 2 ++ > 1 file changed, 2 insertions(+) > >

Re: [PATCH v2 bpf-next 5/5] selftest: Add tests for XDP programs in devmap entries

2020-05-28 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 5:15 PM David Ahern wrote: > > Add tests to verify ability to add an XDP program to a > entry in a DEVMAP. > > Add negative tests to show DEVMAP programs can not be > attached to devices as a normal XDP program, and accesses > to egress_ifindex require BPF_XDP_DEVMAP attach

[PATCH net-next 0/2] net/mlx5e: add nat support in ct_metadata

2020-05-28 Thread wenxu
From: wenxu Currently all the conntrack entry offfload rules will be add in both ct and ct_nat flow table in the mlx5e driver. It is not makesense. This serise provide nat attribute in the ct_metadata action which tell driver the rule should add to ct or ct_nat flow table wenxu (2): net/sche

[PATCH net-next 1/2] net/sched: act_ct: add nat attribute in ct_metadata

2020-05-28 Thread wenxu
From: wenxu Add nat attribute in the ct_metadata action. This tell driver the offload conntrack entry is nat one or not. Signed-off-by: wenxu --- include/net/flow_offload.h | 1 + net/sched/act_ct.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/net/flow_offload.h b/incl

[PATCH net-next 2/2] net/mlx5e: add ct_metadata.nat support in ct offload

2020-05-28 Thread wenxu
From: wenxu In the ct offload all the conntrack entry offload rules will be add to both ct ft and ct_nat ft twice. It is not makesense. The ct_metadat.nat will tell driver the rule should add to ct or ct_nat flow table Signed-off-by: wenxu --- drivers/net/ethernet/mellanox/mlx5/core/en/tc_

[PATCH net] neigh: fix ARP retransmit timer guard

2020-05-28 Thread Hangbin Liu
In commit 19e16d220f0a ("neigh: support smaller retrans_time settting") we add more accurate control for ARP and NS. But for ARP I forgot to update the latest guard in neigh_timer_handler(), then the next retransmit would be reset to jiffies + HZ/2 if we set the retrans_time less than 500ms. Fix it

[net-next 10/15] ice: Change number of XDP TxQ to 0 when destroying rings

2020-05-28 Thread Jeff Kirsher
From: Marta Plantykow When XDP Tx rings are destroyed the number of XDP Tx queues is not changing. This patch is changing this number to 0. Signed-off-by: Marta Plantykow Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_main.c | 3 +++ 1 file change

[net-next 09/15] ice: Handle critical FW error during admin queue initialization

2020-05-28 Thread Jeff Kirsher
From: Evan Swanson A race condition between FW and SW can occur between admin queue setup and the first command sent. A link event may occur and FW attempts to notify a non-existent queue. FW will set the critical error bit and disable the queue. When this happens retry queue setup. Signed-off-b

[net-next 07/15] ice: Add more Rx errors to netdev's rx_error counter

2020-05-28 Thread Jeff Kirsher
From: Brett Creeley Currently we are only including illegal_bytes and rx_crc_errors in the PF netdev's rx_error counter. There are many more causes of Rx errors that the device supports and reports via Ethtool. Accumulate all Rx errors in the PF netdev's rx_error counter. Signed-off-by: Brett Cr

[net-next 01/15] ice: fix signed vs unsigned comparisons

2020-05-28 Thread Jeff Kirsher
From: Jesse Brandeburg Fix the remaining signed vs unsigned issues, which appear when compiling with -Werror=sign-compare. Many of these are because there is an external interface that is passing an int to us (which we can't change) but that we (rightfully) store and compare against as an unsign

[net-next 04/15] ice: fix MAC write command

2020-05-28 Thread Jeff Kirsher
From: Jesse Brandeburg The manage MAC write command was implemented in an overly complex way that actually didn't work, as it wasn't symmetric to the manage MAC read command, and was feeding bytes out of order to the firmware. Fix the implementation by just using a simple array to represent the M

Re: [PATCH bpf-next] libbpf: fix perf_buffer__free() API for sparse allocs

2020-05-28 Thread Eelco Chaudron
On 27 May 2020, at 19:58, Andrii Nakryiko wrote: On Wed, May 27, 2020 at 1:42 AM Eelco Chaudron wrote: In case the cpu_bufs are sparsely allocated they are not all free'ed. These changes will fix this. Signed-off-by: Eelco Chaudron --- Thanks a lot! You forgot: Fixes: fb84b8224655 ("

[net-next 02/15] ice: remove unused macro

2020-05-28 Thread Jeff Kirsher
From: Jesse Brandeburg The driver had an unused define that can be removed. Found by compiler -Werror=unused-macros check. Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_dcb_nl.c | 2 -- 1 file changed, 2 deletions

[net-next 15/15] ice: Check UMEM FQ size when allocating bufs

2020-05-28 Thread Jeff Kirsher
From: Krzysztof Kazimierczak If a UMEM is present on a queue when an interface/queue pair is being enabled, the driver will try to prepare the Rx buffers in advance to improve performance. However, if fill queue is shorter than HW Rx ring, the driver will report failure after getting the last add

[net-next 14/15] ice: Refactor Rx checksum checks

2020-05-28 Thread Jeff Kirsher
From: Anirudh Venkataramanan We don't need both rx_status and rx_error parameters, as the latter is a subset of the former. Remove rx_error completely and check the right bit in rx_status. Rename rx_status to rx_status0, and rx_status_err1 to rx_status1. This naming more closely reflects the spe

[net-next 12/15] ice: Change number of XDP Tx queues to match number of Rx queues

2020-05-28 Thread Jeff Kirsher
From: Marta Plantykow In current implementation number of XDP Tx queues is the same as the number of transmit queues, which is not always true. This patch changes this number to match the number of receive queues. XDP programs are running on Rx rings, so what we actually need to provide is the XD

[net-next 11/15] ice: Add XDP Tx to VSI ring stats

2020-05-28 Thread Jeff Kirsher
From: Marta Plantykow When XDP Tx program is loaded and packets are sent from interface, VSI statistics are not updated. This patch adds packets sent on Tx XDP ring to VSI ring stats. Signed-off-by: Marta Plantykow Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet

[net-next 13/15] ice: avoid undefined behavior

2020-05-28 Thread Jeff Kirsher
From: Bruce Allan When writing the driver's struct ice_tlan_ctx structure, do not write the 8-bit element int_q_state with the associated internal-to-hardware field which is 122-bits, otherwise the helper function ice_write_byte() will use undefined behavior when setting the mask used for that wr

[net-next 03/15] ice: set VF default LAN address

2020-05-28 Thread Jeff Kirsher
From: Paul Greenwalt Remove is_zero_ether_add() check when setting the VF default LAN address. This check assumed that the address had been delete and zeroed before calling ice_vc_add_mac_addr(). Now the default LAN address will be set to the last unicast MAC address added by the VF. The default

[net-next 08/15] ice: Don't allow VLAN stripping change when pvid set

2020-05-28 Thread Jeff Kirsher
From: Brett Creeley Currently, if the PVID is set in the VLAN handling section of the VSI context the driver still allows VLAN stripping to be enabled/disabled. VLAN stripping should only be modifiable when the PVID is not set. Fix this by preventing VLAN stripping modification when PVID is set.

[net-next 00/15][pull request] 100GbE Intel Wired LAN Driver Updates 2020-05-27

2020-05-28 Thread Jeff Kirsher
This series contains updates to the ice driver only. Jesse fixes a number of issues, starting with fixing the remaining signed versus unsigned comparison issues. Cleaned up an unused code define. Fixed the implementation of the manage MAC write command, to simplify it by using a simple array to

[net-next 06/15] ice: Fix for memory leaks and modify ICE_FREE_CQ_BUFS

2020-05-28 Thread Jeff Kirsher
From: Surabhi Boob Handle memory leaks during control queue initialization and buffer allocation failures. The macro ICE_FREE_CQ_BUFS is modified to re-use for this fix. Signed-off-by: Surabhi Boob Signed-off-by: Tony Nguyen Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/n

[net-next 05/15] ice: Fix memory leak

2020-05-28 Thread Jeff Kirsher
From: Surabhi Boob Handle memory leak on filter management initialization failure. Signed-off-by: Surabhi Boob Signed-off-by: Tony Nguyen Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_common.c | 8 +++- 1 file changed, 7 insertions(+), 1 del

[PATCH net-next] tipc: remove set but not used variable 'prev'

2020-05-28 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: net/tipc/msg.c: In function 'tipc_msg_append': net/tipc/msg.c:215:24: warning: variable 'prev' set but not used [-Wunused-but-set-variable] commit 0a3e060f340d ("tipc: add test for Nagle algorithm effectiveness") left behind this, remove it. Signed

[PATCH] mt76: mt7615: Use kmemdup in mt7615_queue_key_update()

2020-05-28 Thread YueHaibing
Use kmemdup rather than duplicating its implementation Signed-off-by: YueHaibing --- drivers/net/wireless/mediatek/mt76/mt7615/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt761

Re: [RFC PATCH] samples:bpf: introduce task detector

2020-05-28 Thread 王贇
Hi, Andrii Thanks for your comments :-) On 2020/5/28 下午2:36, Andrii Nakryiko wrote: [snip] >> --- > > I haven't looked through implementation thoroughly yet. But I have few > general remarks. > > This looks like a useful and generic tool. I think it will get most > attention and be most useful

Re: [PATCH net-next v3 0/3] net: enetc: remove bootloader dependency

2020-05-28 Thread Michael Walle
Am 2020-05-28 08:38, schrieb Michael Walle: These patches were picked from the following series: https://lore.kernel.org/netdev/1567779344-30965-1-git-send-email-claudiu.man...@nxp.com/ They have never been resent. I've picked them up, addressed Andrews comments, fixed some more bugs and asked Cl

Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY

2020-05-28 Thread Philippe Schenker
On Wed, 2020-05-27 at 21:11 +0200, Geert Uytterhoeven wrote: > Hi Oleksij, > > On Wed, Apr 29, 2020 at 11:26 AM Oleksij Rempel < > o.rem...@pengutronix.de> wrote: > > On Wed, Apr 29, 2020 at 10:45:35AM +0200, Geert Uytterhoeven wrote: > > > On Tue, Apr 28, 2020 at 6:16 PM Philippe Schenker > > >

[PATCH v2 net 0/3] net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip

2020-05-28 Thread fugang . duan
From: Fugang Duan NXP imx8 family like imx8mp/imx8dxl chips support Synopsys MAC 5.10a IP, the patch set is to add ethernet DWMAC glue layer including clocks, dwmac address width, phy interface mode selection and rgmii txclk rate adjustment in runtime. v1 -> v2: - suggested by Andrew: add the "s

[PATCH v2 net 1/3] stmmac: platform: add "snps, dwmac-5.10a" IP compatible string

2020-05-28 Thread fugang . duan
From: Fugang Duan Add "snps,dwmac-5.10a" compatible string for 5.10a version that can avoid to define some plat data in glue layer. Signed-off-by: Fugang Duan --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v2 net 3/3] dt-bindings: net: imx-dwmac: Add NXP imx8 DWMAC glue layer

2020-05-28 Thread fugang . duan
From: Fugang Duan Add description for NXP imx8 families like imx8mp/imx8dxl that integrate the Synopsys gmac IP version 5.10a. Signed-off-by: Fugang Duan --- .../devicetree/bindings/net/imx-dwmac.txt | 56 +++ 1 file changed, 56 insertions(+) diff --git a/Documentation/dev

[PATCH v2 net 2/3] net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip

2020-05-28 Thread fugang . duan
From: Fugang Duan NXP imx8 family like imx8mp/imx8dxl chips support Synopsys MAC 5.10a IP. This patch adds settings for NXP imx8 glue layer: - clocks - dwmac address width - phy interface mode selection - adjust rgmii txclk rate v2: - adjust code sequences in order to have reverse christmas tr

Re: Link down reasons

2020-05-28 Thread Oleksij Rempel
On Wed, May 27, 2020 at 03:41:22PM +, Amit Cohen wrote: > Hi Andrew, > We are planning to send a set that exposes link-down reason in ethtool. > It seems that the ability of your set "Ethernet cable test support" can be > integrated with link-down reason. > > The idea is to expose reason and

Re: [PATCH net-next v3 0/3] net: enetc: remove bootloader dependency

2020-05-28 Thread Vladimir Oltean
On Thu, 28 May 2020 at 11:18, Michael Walle wrote: > > Am 2020-05-28 08:38, schrieb Michael Walle: > > These patches were picked from the following series: > > https://lore.kernel.org/netdev/1567779344-30965-1-git-send-email-claudiu.man...@nxp.com/ > > They have never been resent. I've picked them

Re: [PATCH net-next] selftests: Add torture tests to nexthop tests

2020-05-28 Thread Nikolay Aleksandrov
On 28/05/2020 03:03, David Ahern wrote: > Add Nik's torture tests as a new set to stress the replace and cleanup > paths. > > Torture test created by Nikolay Aleksandrov and then I adapted to > selftest and added IPv6 version. > > Signed-off-by: David Ahern > --- > tools/testing/selftests/net/f

Re: [PATCH v2 bpf-next 2/5] bpf: Add support to attach bpf program to a devmap entry

2020-05-28 Thread Toke Høiland-Jørgensen
David Ahern writes: > From: David Ahern > > Add BPF_XDP_DEVMAP attach type for use with programs associated with a > DEVMAP entry. > > Allow DEVMAPs to associate a program with a device entry by adding > a bpf_prog_fd to 'struct devmap_val'. Values read show the program > id, so the fd and id ar

Re: [PATCH net-next v3 0/3] net: enetc: remove bootloader dependency

2020-05-28 Thread Michael Walle
Am 2020-05-28 10:43, schrieb Vladimir Oltean: On Thu, 28 May 2020 at 11:18, Michael Walle wrote: Am 2020-05-28 08:38, schrieb Michael Walle: > These patches were picked from the following series: > https://lore.kernel.org/netdev/1567779344-30965-1-git-send-email-claudiu.man...@nxp.com/ > They

Re: Link down reasons

2020-05-28 Thread Petr Machata
Amit Cohen writes: > Andrew Lunn writes: > >>On Wed, May 27, 2020 at 03:41:22PM +, Amit Cohen wrote: >>> Hi Andrew, >>> >>> We are planning to send a set that exposes link-down reason in ethtool. >>> >>> It seems that the ability of your set “Ethernet cable test support” >>> can be integra

Re: Link down reasons

2020-05-28 Thread Petr Machata
Oleksij Rempel writes: > I would add some more reasons: > - master slave resolution issues: both link partners are master or > slave. I guess we should send the RFC, so that we can talk particulars. We currently don't have anything like master/slave mismatch in the API, but that's just becau

Packets to own IP are sent via IPSec tunnel with IPv6

2020-05-28 Thread Kai Wohlfahrt
Hi all, I noticed strange behaviour with an IPSec tunnel set up with strongswan. Discussing the issue on IRC, a strongswan developer suggested the issue is due to a kernel bug and I should ask here. The client connects to the server and is assigned an IPv6 address from a pool. The remote traffic

[PATCH net-next] net: dsa: felix: support half-duplex link modes

2020-05-28 Thread Vladimir Oltean
From: Vladimir Oltean Ping tested: [ 11.808455] mscc_felix :00:00.5 swp0: Link is Up - 1Gbps/Full - flow control rx/tx [ 11.816497] IPv6: ADDRCONF(NETDEV_CHANGE): swp0: link becomes ready [root@LS1028ARDB ~] # ethtool -s swp0 advertise 0x4 [ 18.844591] mscc_felix :00:00.5 swp0: L

Re: [RFC PATCH net-next 0/3] TC: Introduce qevents

2020-05-28 Thread Petr Machata
Cong Wang writes: > On Wed, May 27, 2020 at 2:56 AM Petr Machata wrote: >> >> >> Cong Wang writes: >> >> > On Tue, May 26, 2020 at 10:11 AM Petr Machata wrote: >> >> >> >> The Spectrum hardware allows execution of one of several actions as a >> >> result of queue management events: tail-drop

Re: [PATCH] vdpa: bypass waking up vhost_woker for vdpa vq kick

2020-05-28 Thread Jason Wang
On 2020/5/26 下午1:32, Zhu Lingshan wrote: Standard vhost devices rely on waking up a vhost_worker to kick a virtquque. However vdpa devices have hardware backends, so it does not need this waking up routin. In this commit, vdpa device will kick a virtqueue directly, reduce the performance overhe

[PATCH] NFC: st21nfca: add missed kfree_skb() in an error path

2020-05-28 Thread Chuhong Yuan
st21nfca_tm_send_atr_res() misses to call kfree_skb() in an error path. Add the missed function call to fix it. Fixes: 1892bf844ea0 ("NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode") Signed-off-by: Chuhong Yuan --- drivers/nfc/st21nfca/dep.c | 4 +++- 1 file changed, 3

Re: [PATCH v2 bpf-next 5/5] selftest: Add tests for XDP programs in devmap entries

2020-05-28 Thread Jesper Dangaard Brouer
On Thu, 28 May 2020 00:08:34 -0700 Andrii Nakryiko wrote: > > diff --git a/tools/testing/selftests/bpf/progs/test_xdp_with_devmap.c > > b/tools/testing/selftests/bpf/progs/test_xdp_with_devmap.c > > new file mode 100644 > > index ..815cd59b4866 > > --- /dev/null > > +++ b/tools/testi

Re: Link down reasons

2020-05-28 Thread Oleksij Rempel
On Thu, May 28, 2020 at 11:22:47AM +0200, Petr Machata wrote: > > Oleksij Rempel writes: > > > I would add some more reasons: > > - master slave resolution issues: both link partners are master or > > slave. > > I guess we should send the RFC, so that we can talk particulars. We > currently d

Re: [PATCH] mwifiex: Parse all API_VER_ID properties

2020-05-28 Thread Pali Rohár
On Thursday 21 May 2020 14:34:44 Pali Rohár wrote: > During initialization of SD8997 wifi chip kernel prints warnings: > > mwifiex_sdio mmc0:0001:1: Unknown api_id: 3 > mwifiex_sdio mmc0:0001:1: Unknown api_id: 4 > > This patch adds support for parsing all api ids provided by SD8997 > firmwar

Re: [RFC next-next v2 2/5] net: marvell: prestera: Add PCI interface support

2020-05-28 Thread Jiri Pirko
Wed, May 27, 2020 at 02:01:39PM CEST, mick...@marvell.com wrote: >Hi Vadym, Jiri, > >> >> Hi Jiri, >> >> On Wed, May 27, 2020 at 07:53:05AM +0200, Jiri Pirko wrote: >> > Tue, May 26, 2020 at 06:26:44PM CEST, vadym.koc...@plvision.eu wrote: >> > >On Mon, May 11, 2020 at 01:23:46PM +0200, Jiri Pirk

Re: [PATCH bpf-next 5/8] bpf: Add link-based BPF program attachment to network namespace

2020-05-28 Thread Jakub Sitnicki
On Wed, May 27, 2020 at 10:38 PM CEST, s...@google.com wrote: > On 05/27, Jakub Sitnicki wrote: >> On Wed, May 27, 2020 at 07:48 PM CEST, s...@google.com wrote: >> > On 05/27, Jakub Sitnicki wrote: >> >> Add support for bpf() syscall subcommands that operate on >> >> bpf_link (LINK_CREATE, LINK_UPD

Re: [PATCH net-next 2/4] vmxnet3: add support to get/set rx flow hash

2020-05-28 Thread kbuild test robot
system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Ronak-Doshi/vmxnet3-upgrade-to-version-4/20200528-112935 base: https://git.kernel.org/pub

Re: [net-next v4 11/12] ASoC: SOF: Create client driver for IPC test

2020-05-28 Thread Greg KH
On Wed, May 27, 2020 at 06:40:05PM -0700, Ranjani Sridharan wrote: > On Wed, 2020-05-27 at 21:12 -0300, Jason Gunthorpe wrote: > > On Wed, May 27, 2020 at 01:18:35PM -0700, Ranjani Sridharan wrote: > > > On Wed, 2020-05-20 at 09:56 -0300, Jason Gunthorpe wrote: > > > > On Wed, May 20, 2020 at 12:02

Re: [PATCH bpf-next 5/8] bpf: Add link-based BPF program attachment to network namespace

2020-05-28 Thread Jakub Sitnicki
On Wed, May 27, 2020 at 10:53 PM CEST, s...@google.com wrote: > On 05/27, Jakub Sitnicki wrote: >> Add support for bpf() syscall subcommands that operate on >> bpf_link (LINK_CREATE, LINK_UPDATE, OBJ_GET_INFO) for attach points tied to >> network namespaces (that is flow dissector at the moment). >

Re: [iproute2 PATCH 0/2] Fix segfault in lib/bpf.c

2020-05-28 Thread Jamal Hadi Salim
On 2020-05-27 6:13 p.m., Stephen Hemminger wrote: On Tue, 26 May 2020 18:04:09 +0200 Andrea Claudi wrote: Jamal reported a segfault in bpf_make_custom_path() when custom pinning is used. This is caused by commit c0325b06382cb ("bpf: replace snprintf with asprintf when dealing with long buffers

Re: [PATCH net-next 0/2] net/mlx5e: add nat support in ct_metadata

2020-05-28 Thread Edward Cree
On 28/05/2020 08:15, we...@ucloud.cn wrote: > From: wenxu > > Currently all the conntrack entry offfload rules will be add > in both ct and ct_nat flow table in the mlx5e driver. It is > not makesense. > > This serise provide nat attribute in the ct_metadata action which > tell driver the rule sho

[PATCH v2 0/3] Add support for SQI and master-slave

2020-05-28 Thread Oleksij Rempel
This patch set is extending ethtool to make it more usable on automotive PHYs like NXP TJA11XX. They make use of new KAPI (currently in net-next, will go probably to the kernel 5.8-rc1): - PHY master-slave role configuration and status informaton. Mostly needed for 100Base-T1 PHYs due the lack o

[PATCH v2 2/3] netlink: add master/slave configuration support

2020-05-28 Thread Oleksij Rempel
This UAPI is needed for BroadR-Reach 100BASE-T1 devices. Due to lack of auto-negotiation support, we needed to be able to configure the MASTER-SLAVE role of the port manually or from an application in user space. The same UAPI can be used for 1000BASE-T or MultiGBASE-T devices to force MASTER or S

[PATCH v2 3/3] netlink: add LINKSTATE SQI support

2020-05-28 Thread Oleksij Rempel
Some PHYs provide Signal Quality Index (SQI) if the link is in active state. This information can help to diagnose cable and system design related issues. Signed-off-by: Oleksij Rempel Reviewed-by: Florian Fainelli --- netlink/desc-ethtool.c | 2 ++ netlink/settings.c | 16

[PATCH v2 1/3] update UAPI header copies

2020-05-28 Thread Oleksij Rempel
Update to net-dev: dc0f3ed1973 ("net: phy: at803x: add cable diagnostics support for ATH9331 and ATH8032") Signed-off-by: Oleksij Rempel --- uapi/linux/ethtool.h | 25 ++- uapi/linux/ethtool_netlink.h | 326 +++ uapi/linux/genetlink.h | 2 + uapi

[PATCH AUTOSEL 5.6 28/47] felix: Fix initialization of ioremap resources

2020-05-28 Thread Sasha Levin
From: Claudiu Manoil [ Upstream commit b4024c9e5c57902155d3b5e7de482e245f492bff ] The caller of devm_ioremap_resource(), either accidentally or by wrong assumption, is writing back derived resource data to global static resource initialization tables that should have been constant. Meaning that

[PATCH AUTOSEL 4.14 08/13] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

[PATCH AUTOSEL 5.4 20/26] net/mlx5e: Fix inner tirs handling

2020-05-28 Thread Sasha Levin
From: Roi Dayan [ Upstream commit a16b8e0dcf7043bee46174bed0553cc9e36b63a5 ] In the cited commit inner_tirs argument was added to create and destroy inner tirs, and no indication was added to mlx5e_modify_tirs_hash() function. In order to have a consistent handling, use inner_indir_tir[0].tirn i

[PATCH AUTOSEL 4.19 13/17] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 4.19 14/17] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 4.14 04/13] net sched: fix reporting the first-time use timestamp

2020-05-28 Thread Sasha Levin
From: Roman Mashak [ Upstream commit b15e62631c5f19fea9895f7632dae9c1b27fe0cd ] When a new action is installed, firstuse field of 'tcf_t' is explicitly set to 0. Value of zero means "new action, not yet used"; as a packet hits the action, 'firstuse' is stamped with the current jiffies value. tc

[PATCH AUTOSEL 4.14 13/13] net: smsc911x: Fix runtime PM imbalance on error

2020-05-28 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- dri

[PATCH AUTOSEL 4.9 5/9] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

[PATCH AUTOSEL 4.4 4/7] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

[PATCH AUTOSEL 4.4 7/7] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 4.4 3/7] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 4.9 9/9] net: smsc911x: Fix runtime PM imbalance on error

2020-05-28 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- dri

[PATCH AUTOSEL 4.4 5/7] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 4.4 6/7] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 4.9 8/9] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 4.9 4/9] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 4.9 6/9] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 4.14 11/13] net/mlx5: Add command entry handling completion

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion

[PATCH AUTOSEL 4.9 2/9] net sched: fix reporting the first-time use timestamp

2020-05-28 Thread Sasha Levin
From: Roman Mashak [ Upstream commit b15e62631c5f19fea9895f7632dae9c1b27fe0cd ] When a new action is installed, firstuse field of 'tcf_t' is explicitly set to 0. Value of zero means "new action, not yet used"; as a packet hits the action, 'firstuse' is stamped with the current jiffies value. tc

[PATCH AUTOSEL 4.14 07/13] r8152: support additional Microsoft Surface Ethernet Adapter variant

2020-05-28 Thread Sasha Levin
From: Marc Payne [ Upstream commit c27a204383616efba5a4194075e90819961ff66a ] Device id 0927 is the RTL8153B-based component of the 'Surface USB-C to Ethernet and USB Adapter' and may be used as a component of other devices in future. Tested and working with the r8152 driver. Update the cdc_eth

[PATCH AUTOSEL 4.9 7/9] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 4.14 12/13] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 4.14 09/13] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-05-28 Thread Sasha Levin
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error lik

[PATCH AUTOSEL 4.14 10/13] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

[PATCH AUTOSEL 4.14 06/13] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 4.19 16/17] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 4.19 15/17] net/mlx5: Add command entry handling completion

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion

[PATCH AUTOSEL 4.19 17/17] net: smsc911x: Fix runtime PM imbalance on error

2020-05-28 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- dri

[PATCH AUTOSEL 4.19 08/17] r8152: support additional Microsoft Surface Ethernet Adapter variant

2020-05-28 Thread Sasha Levin
From: Marc Payne [ Upstream commit c27a204383616efba5a4194075e90819961ff66a ] Device id 0927 is the RTL8153B-based component of the 'Surface USB-C to Ethernet and USB Adapter' and may be used as a component of other devices in future. Tested and working with the r8152 driver. Update the cdc_eth

[PATCH AUTOSEL 4.19 12/17] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

[PATCH AUTOSEL 4.19 05/17] net sched: fix reporting the first-time use timestamp

2020-05-28 Thread Sasha Levin
From: Roman Mashak [ Upstream commit b15e62631c5f19fea9895f7632dae9c1b27fe0cd ] When a new action is installed, firstuse field of 'tcf_t' is explicitly set to 0. Value of zero means "new action, not yet used"; as a packet hits the action, 'firstuse' is stamped with the current jiffies value. tc

[PATCH AUTOSEL 5.4 25/26] net/mlx4_core: fix a memory leak bug.

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit febfd9d3c7f74063e8e630b15413ca91b567f963 ] In function mlx4_opreq_action(), pointer "mailbox" is not released, when mlx4_cmd_box() return and error, causing a memory leak bug. Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can free this pointer.

[PATCH AUTOSEL 5.4 21/26] net/mlx5: Fix memory leak in mlx5_events_init

2020-05-28 Thread Sasha Levin
From: Moshe Shemesh [ Upstream commit df14ad1eccb04a4a28c90389214dbacab085b244 ] Fix memory leak in mlx5_events_init(), in case create_single_thread_workqueue() fails, events struct should be freed. Fixes: 5d3c537f9070 ("net/mlx5: Handle event of power detection in the PCIE slot") Signed-off-b

[PATCH AUTOSEL 4.19 07/17] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 5.4 24/26] net: ethernet: ti: cpsw: fix ASSERT_RTNL() warning during suspend

2020-05-28 Thread Sasha Levin
From: Grygorii Strashko [ Upstream commit 4c64b83d03f4aafcdf710caad994cbc855802e74 ] vlan_for_each() are required to be called with rtnl_lock taken, otherwise ASSERT_RTNL() warning will be triggered - which happens now during System resume from suspend: cpsw_suspend() |- cpsw_ndo_stop()

[PATCH AUTOSEL 5.4 26/26] net: smsc911x: Fix runtime PM imbalance on error

2020-05-28 Thread Sasha Levin
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- dri

[PATCH AUTOSEL 5.4 14/26] net: mvpp2: fix RX hashing for non-10G ports

2020-05-28 Thread Sasha Levin
From: Russell King [ Upstream commit 3138a07ce219acde4c0d7ea0b6d54ba64153328b ] When rxhash is enabled on any ethernet port except the first in each CP block, traffic flow is prevented. The analysis is below: I've been investigating this afternoon, and what I've found, comparing a kernel witho

[PATCH AUTOSEL 5.4 15/26] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-05-28 Thread Sasha Levin
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the initia

[PATCH AUTOSEL 5.4 09/26] net: bmac: Fix read of MAC address from ROM

2020-05-28 Thread Sasha Levin
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer. This

[PATCH AUTOSEL 5.4 18/26] net: sun: fix missing release regions in cas_init_one().

2020-05-28 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 5a730153984dd13f82ffae93d7170d76eba204e9 ] In cas_init_one(), "pdev" is requested by "pci_request_regions", but it was not released after a call of the function “pci_write_config_byte” failed. Thus replace the jump target “err_write_cacheline” by "err_out_free_r

  1   2   3   4   5   6   >