Re: [Patch net-next] net_sched: only create filter chains for new filters/actions

2017-05-23 Thread Jiri Pirko
Tue, May 23, 2017 at 06:42:37PM CEST, xiyou.wangc...@gmail.com wrote: >tcf_chain_get() always creates a new filter chain if not found >in existing ones. This is totally unnecessary when we get or >delete filters, new chain should be only created for new filters >(or new actions). > >Fixes: 5bc17018

RE: [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs

2017-05-23 Thread Bogdan Purcareata
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Tuesday, May 23, 2017 9:12 PM > To: Andrew Lunn ; Bogdan Purcareata > > Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org > Subject: Re: [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs

Re: Why max netlink msg size is limited to 16k

2017-05-23 Thread prashantkumar dhotre
Thanks Can I use NLM_F_MULTI netlink multipart msg flag to send large buffer ? I could not find example of that usage in sending case . I have a kernel module and tryng to send large buffer to user app. If I can use that flag, will kernel take care of splitting large buffer into small chunks and w

Re: [patch net-next v2 7/8] mlxsw: spectrum: Validate firmware revision on init

2017-05-23 Thread Ido Schimmel
On Tue, May 23, 2017 at 09:56:29PM +0200, Jiri Pirko wrote: > From: Yotam Gigi > > Make the spectrum module check the current device firmware version, and if > it is below the supported version, use the libfirmware API to request a > firmware file with the supported firmware version and flash it

Re: [PATCH] rhashtable: Fix missing elements when inserting.

2017-05-23 Thread Herbert Xu
Taehee Yoo wrote: > rhltable_insert_key() inserts a node into list of element, > if node's key is duplicated, so that it becomes the chain of > element(as known as rhead). Also bucket table points that element directly. > If a inserted node's element chain is located at third, > rhltable misses fi

RE: [PATCH v2] net: fec: add post PHY reset delay DT property

2017-05-23 Thread Andy Duan
From: Quentin Schulz Sent: Tuesday, May 23, 2017 5:48 PM >Some PHY require to wait for a bit after the reset GPIO has been toggled. This >adds support for the DT property `phy-reset-post-delay` which gives the delay >in milliseconds to wait after reset. > >If the DT property is not given, no dela

[PATCH] rhashtable: Fix missing elements when inserting.

2017-05-23 Thread Taehee Yoo
rhltable_insert_key() inserts a node into list of element, if node's key is duplicated, so that it becomes the chain of element(as known as rhead). Also bucket table points that element directly. If a inserted node's element chain is located at third, rhltable misses first and second element chain.

Re: [PATCH V3 net 1/3] vlan: Fix tcp checksum offloads in Q-in-Q vlans

2017-05-23 Thread Toshiaki Makita
On 2017/05/24 2:38, Vladislav Yasevich wrote: > It appears that TCP checksum offloading has been broken for > Q-in-Q vlans. The behavior was execerbated by the > series > commit afb0bc972b52 ("Merge branch 'stacked_vlan_tso'") > that that enabled accleleration features on stacked vlans. > > H

[PATCH] net: jme: Remove unused functions

2017-05-23 Thread Matthias Kaehlcke
The functions jme_restart_tx_engine(), jme_pause_rx() and jme_resume_rx() are not used. Removing them fixes the following warnings when building with clang: drivers/net/ethernet/jme.c:694:1: error: unused function 'jme_restart_tx_engine' [-Werror,-Wunused-function] drivers/net/ethernet/jme.c:

pull request: bluetooth-next 2017-05-23

2017-05-23 Thread Johan Hedberg
Hi Dave, Here's the first Bluetooth & 802.15.4 pull request targeting the 4.13 kernel release. - Bluetooth 5.0 improvements (Data Length Extensions and alternate PHY) - Support for new Intel Bluetooth adapter [[8087:0aaa] - Various fixes to ieee802154 code - Various fixes to HCI UART code Pl

Re: Alignment in BPF verifier

2017-05-23 Thread Alexei Starovoitov
On 5/23/17 10:43 AM, Edward Cree wrote: Another issue: it looks like the min/max_value handling for subtraction is bogus. In adjust_reg_min_max_vals() we have if (dst_reg->min_value != BPF_REGISTER_MIN_RANGE) dst_reg->min_value -= min_val; if (dst_reg->max_value != BPF_REGISTER_

[PATCH] net: fix potential null pointer dereference

2017-05-23 Thread Gustavo A. R. Silva
Add null check to avoid a potential null pointer dereference. Addresses-Coverity-ID: 1408831 Signed-off-by: Gustavo A. R. Silva --- drivers/net/gtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c index 4fea1b3..7b652bb 100644 --- a/driv

[patch iproute2] ipvtap: Adding support for ipvtap device management

2017-05-23 Thread Sainath Grandhi
This patch adds support for managing ipvtap devices using ip link. ipvtap support is added to linux with commit 235a9d89da976e2975b3de9afc0bed7b72557983 --- ip/iplink_ipvlan.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ip/iplink_ipvlan.c b/ip/iplink_ipvlan.c ind

[PATCH net-next] geneve: fix fill_info when using collect_metadata

2017-05-23 Thread Eric Garver
Since 9b4437a5b870 ("geneve: Unify LWT and netdev handling.") fill_info does not return UDP_ZERO_CSUM6_RX when using COLLECT_METADATA. This is because it uses ip_tunnel_info_af() with the device level info, which is not valid for COLLECT_METADATA. Fix by checking for the presence of the actual soc

Re: [PATCH] net: phy: put genphy_config_init's EXPORT_SYMBOL directly after the function

2017-05-23 Thread Florian Fainelli
On 05/23/2017 03:26 PM, Uwe Kleine-König wrote: > Commit af6b6967d6e1 ("net: phy: export genphy_config_init()") introduced > this EXPORT_SYMBOL and put it after gen10g_soft_reset() instead of > directly after genphy_config_init. Probably this happend when the patch > was applied because http://patc

Re: bond link state mismatch, rtnl_trylock() vs rtnl_lock()

2017-05-23 Thread Jay Vosburgh
Nithin Sujir wrote: >Hi, >We're encountering a problem in 4.4 LTS where, rarely, the bond link state >is not updated when the slave link changes. > >I've traced the issue to the arp monitor unable to get the rtnl lock. The >sequence resulting in failure is as below. > >bond_loadbalance_arp_mon()

[PATCH] net: phy: put genphy_config_init's EXPORT_SYMBOL directly after the function

2017-05-23 Thread Uwe Kleine-König
Commit af6b6967d6e1 ("net: phy: export genphy_config_init()") introduced this EXPORT_SYMBOL and put it after gen10g_soft_reset() instead of directly after genphy_config_init. Probably this happend when the patch was applied because http://patchwork.ozlabs.org/patch/339622/ looks ok. Signed-off-by:

[PATCH net-next] tcp: better validation of received ack sequences

2017-05-23 Thread Eric Dumazet
From: Eric Dumazet Paul Fiterau Brostean reported : Linux TCP stack we analyze exhibits behavior that seems odd to me. The scenario is as follows (all packets have empty payloads, no window scaling, rcv/snd window size should not be a factor): TEST HARNESS (CLIENT)

Re: [PATCH net-next] net: dsa: support cross-chip ageing time

2017-05-23 Thread Andrew Lunn
On Tue, May 23, 2017 at 03:20:59PM -0400, Vivien Didelot wrote: > Now that the switchdev bridge ageing time attribute is propagated to all > switch chips of the fabric, each switch can check if the requested value > is valid and program itself, so that the whole fabric shares a common > ageing time

[patch iproute2] tc: flower: add support for tcp flags

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko Allow user to insert a flower classifier filter rule which includes match for tcp flags. Signed-off-by: Jiri Pirko --- v1->v2: - removed forgotten debug printout - fixed mask parsing as reported by Or --- include/linux/pkt_cls.h | 3 +++ man/man8/tc-flower.8| 8 +++

Re: bond link state mismatch, rtnl_trylock() vs rtnl_lock()

2017-05-23 Thread Nithin Sujir
On 5/23/2017 2:30 PM, Mahesh Bandewar (महेश बंडेवार) wrote: On Tue, May 23, 2017 at 12:32 PM, Nithin Sujir wrote: diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 5dca77e..1f60503 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_m

Re: bond link state mismatch, rtnl_trylock() vs rtnl_lock()

2017-05-23 Thread महेश बंडेवार
On Tue, May 23, 2017 at 12:32 PM, Nithin Sujir wrote: > Hi, > We're encountering a problem in 4.4 LTS where, rarely, the bond link state > is not updated when the slave link changes. > > I've traced the issue to the arp monitor unable to get the rtnl lock. The > sequence resulting in failure is as

Re: [PATCH] brcmfmac: Fix kernel oops on resume when request firmware fails.

2017-05-23 Thread Franky Lin
Hi Enric, On Tue, May 23, 2017 at 11:07 AM, Enric Balletbo i Serra wrote: > When request firmware fails, brcmf_ops_sdio_remove is being called and > brcmf_bus freed. In such circumstancies if you do a suspend/resume cycle > the kernel hangs on resume due a NULL pointer dereference in resume > fun

Re: Alignment in BPF verifier

2017-05-23 Thread Daniel Borkmann
On 05/23/2017 09:45 PM, Alexei Starovoitov wrote: On 5/23/17 7:41 AM, Edward Cree wrote: I'm still plugging away at this... it's going to be quite a big patch and rewrite a lot of stuff (and I'm not sure I'll be able to break it into smaller bisectable patches). And of course I have more quest

Re: [PATCH net] netfilter: do not hold dev in ipt_CLUSTERIP

2017-05-23 Thread Pablo Neira Ayuso
On Sat, May 20, 2017 at 05:08:06PM +0800, Xin Long wrote: > It's a terrible thing to hold dev in iptables target. When the dev is > being removed, unregister_netdevice has to wait for the dev to become > free. dmesg will keep logging the err: > > kernel:unregister_netdevice: waiting for veth0_in

[PATCH net-next 0/4] More marvell phy cleanups

2017-05-23 Thread Andrew Lunn
This patchset continues the cleanup of the Marvell PHY driver. These phys use pages to allow more than the 32 registers that fit into the MDIO address space. Cleanup the code used for changing pages. Andrew Lunn (4): net: phy: marvell: #defines for copper and fibre pages net: phy: marvell: Mo

[PATCH net-next 1/4] net: phy: marvell: #defines for copper and fibre pages

2017-05-23 Thread Andrew Lunn
Replace magic numbers for PHY pages with symbolic names. Signed-off-by: Andrew Lunn --- drivers/net/phy/marvell.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 88cd97b44ba6..bb067026353a 10

[PATCH net-next 4/4] net: phy: marvell: Uniform page names

2017-05-23 Thread Andrew Lunn
Bring all the page names together, remove the repeats, and make them uniform. Signed-off-by: Andrew Lunn --- drivers/net/phy/marvell.c | 94 +++ 1 file changed, 46 insertions(+), 48 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy

[PATCH net-next 2/4] net: phy: marvell: More hidden page changes refactored

2017-05-23 Thread Andrew Lunn
EXT_ADDR_PAGE is the same meaning as MII_MARVELL_PHY_PAGE, i.e. change page. Replace it will calls to the helpers. Signed-off-by: Andrew Lunn --- drivers/net/phy/marvell.c | 62 +++ 1 file changed, 46 insertions(+), 16 deletions(-) diff --git a/driver

[PATCH net-next 3/4] net: phy: marvell: helper to get and set page

2017-05-23 Thread Andrew Lunn
There is a common pattern of first reading the currently selected page and then changing to another page. Add a helper to do this. Signed-off-by: Andrew Lunn --- drivers/net/phy/marvell.c | 75 --- 1 file changed, 31 insertions(+), 44 deletions(-) dif

Re: bond link state mismatch, rtnl_trylock() vs rtnl_lock()

2017-05-23 Thread Nithin Sujir
On 5/23/2017 1:13 PM, Jay Vosburgh wrote: Nithin Sujir wrote: Hi, We're encountering a problem in 4.4 LTS where, rarely, the bond link state is not updated when the slave link changes. I've traced the issue to the arp monitor unable to get the rtnl lock. The sequence resulting in failure is

Re: [PATCH v6 net-next 17/17] net: qualcomm: add QCA7000 UART driver

2017-05-23 Thread Lino Sanfilippo
On 23.05.2017 21:38, Stefan Wahren wrote: > >> Lino Sanfilippo hat am 23. Mai 2017 um 20:16 >> geschrieben: >> >> >> Hi, >> >> On 23.05.2017 15:12, Stefan Wahren wrote: >> >> >>> +} >>> + >>> +static void qca_uart_remove(struct serdev_device *serdev) >>> +{ >>> + struct qcauart *qca = serdev_d

[PATCH v2 net-next 0/2] Start making stats consistent

2017-05-23 Thread Andrew Lunn
It does not appear that the sysfs class net stats have been clearly defined, resulting in different network interfaces implementing them slightly different. Define that the rx_bytes and tx_bytes counters should include the Ethernet header, data and FEC. Modify the r8152 USB Ethernet driver to inclu

[PATCH v2 net-next 1/2] Documentation: sysfs-class-net-statistics: Clarify rx_bytes and tx_bytes

2017-05-23 Thread Andrew Lunn
Document what is expected for the rx_bytes and tx_bytes statistics in /sys/class/net//statistics. The FCS should be included in the statistics. However, since this has been unclear until now, it is expected a number of drivers don't. But maybe with time they will. Signed-off-by: Andrew Lunn ---

[PATCH v2 net-next 2/2] net: usb: r8152: Fix rx_bytes/tx_bytes to include FCS

2017-05-23 Thread Andrew Lunn
The statistics counters rx_bytes and tx_bytes don't include the Ethernet Frame Check Sequence. Fix the rx_bytes/tx_bytes counters to include the FCS, and include the received FCS in the skb. Signed-off-by: Andrew Lunn --- drivers/net/usb/r8152.c | 5 ++--- 1 file changed, 2 insertions(+), 3 dele

[PATCHv2 net-next 1/5] net: dsa: mv88e6xxx: Move phy functions into phy.[ch]

2017-05-23 Thread Andrew Lunn
The upcoming SERDES support will need to make use of PHY functions. Move them out into a file of there own. No code changes. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/Makefile| 1 + drivers/net/dsa/mv88e6xxx/chip.c | 221 +--- drivers/net/dsa

Re: [PATCH net-next] net: dsa: support cross-chip ageing time

2017-05-23 Thread Florian Fainelli
On 05/23/2017 12:20 PM, Vivien Didelot wrote: > Now that the switchdev bridge ageing time attribute is propagated to all > switch chips of the fabric, each switch can check if the requested value > is valid and program itself, so that the whole fabric shares a common > ageing time setting. > > Thi

[PATCHv2 net-next 0/5] net: dsa: mv88e6xxx: Add basic SERDES support

2017-05-23 Thread Andrew Lunn
Some of the Marvell switches are SERDES interface, which must be powered up before packets can be passed. This is particularly true on the 6390, where the SERDES defaults to down, probably to save power. This series refactors the existing SERDES support for the 6352, and adds 6390 support. v2: S

[PATCHv2 net-next 5/5] dsa: mv88e6xxx: Enable/Disable SERDES on port enable/disable

2017-05-23 Thread Andrew Lunn
Implement the port enable/disable callbacks, which enable/disable the SERDES interfaces, if applicable. This should save a bit of power/heat. We also need to enable SERDES on CPU and DSA ports, so keep the existing call to the op, but make it conditional. Signed-off-by: Andrew Lunn --- drivers/

[PATCHv2 net-next 4/5] net: dsa: mv88e6xxx: mv88e6390X SERDES support

2017-05-23 Thread Andrew Lunn
The mv88e6390X family has 8 SERDES lanes. These can be used for 2 10Gbps ports, ports 9 or 10. If these ports are used at slower speeds, the SERDES lanes become available for other ports for 1000Base-X. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/chip.c | 6 ++ drivers/net/dsa/m

[PATCHv2 net-next 3/5] net: dsa: mv88e6xxx: Remove SERDES flag

2017-05-23 Thread Andrew Lunn
Now that we use an op for SERDES operations, we don't need a flag for it. Remove it. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 23 ++- drivers/net/dsa/mv88e6xxx/phy.c | 3 --- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/

[PATCHv2 net-next 2/5] net: dsa: mv88e6xxx: Refactor mv88e6352 SERDES code into an op

2017-05-23 Thread Andrew Lunn
The mv88e6390 family has a different SERDES implementation. Refactor the mv88e6352 code into an ops function, so we can later add the mv88e6390 code. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/Makefile| 1 + drivers/net/dsa/mv88e6xxx/chip.c | 64 +-

Re: [PATCH v2 0/4] arp: always override existing neigh entries with gratuitous ARP

2017-05-23 Thread Arnd Bergmann
On Thu, May 18, 2017 at 9:41 PM, Ihar Hrachyshka wrote: > This patchset is spurred by discussion started at > https://patchwork.ozlabs.org/patch/760372/ where we figured that there is no > real reason for enforcing override by gratuitous ARP packets only when > arp_accept is 1. Same should happen

[patch net-next v2 6/8] mlxsw: core: Create the mlxsw_fw_rev struct

2017-05-23 Thread Jiri Pirko
From: Yotam Gigi This struct was previously an anonymous struct defined inside the mlxsw_bus_info struct. Extract it to a struct named mlxsw_fw_rev, as it will be needed later by the spectrum driver. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/ne

[patch net-next v2 7/8] mlxsw: spectrum: Validate firmware revision on init

2017-05-23 Thread Jiri Pirko
From: Yotam Gigi Make the spectrum module check the current device firmware version, and if it is below the supported version, use the libfirmware API to request a firmware file with the supported firmware version and flash it to the device using the mlxfw module. The firmware file names are exp

[patch net-next v2 8/8] mlxsw: spectrum_router: Adjust RIF configuration for new firmware versions

2017-05-23 Thread Jiri Pirko
From: Ido Schimmel In new firmware versions, when configuring a {Port, VID} as a router interface, the driver is responsible for enabling the STP filter and disabling learning. Otherwise, packets are discarded. This change doesn't break existing firmware versions, but is required for newer firm

[patch net-next v2 4/8] mlxsw: reg: Add Management Component Data Access register

2017-05-23 Thread Jiri Pirko
From: Yotam Gigi The MCDA register allows reading and writing a firmware component. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 52 +++ 1 file changed, 52 insertions(+) diff --git a

[patch net-next v2 2/8] mlxsw: reg: Add Management Component Query Information register

2017-05-23 Thread Jiri Pirko
From: Yotam Gigi The MCQI register queries information about firmware components. It will be needed by the mlxfw module to query various options about the components, such as their max size, alignment and max write size. Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel Signed-off-by: Jiri P

[patch net-next v2 1/8] Add the mlxfw module for Mellanox firmware flash process

2017-05-23 Thread Jiri Pirko
From: Yotam Gigi The mlxfw module is in charge of common logic needed to flash Mellanox devices firmware, which consists of: - Parse the Mellanox Firmware Archive version 2 (MFA2) format, which is the format used to store the Mellanox firmware. The MFA2 format file can hold firmware for ma

[patch net-next v2 3/8] mlxsw: reg: Add Management Component Control register

2017-05-23 Thread Jiri Pirko
From: Yotam Gigi The MCC register allows controlling and querying the firmware flash state machine (FSM). Signed-off-by: Yotam Gigi Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 83 +++ 1 file changed, 83 inser

[patch net-next v2 5/8] mlxsw: spectrum: Add the needed callbacks for mlxfw integration

2017-05-23 Thread Jiri Pirko
From: Yotam Gigi The mlxfw module defines several needed callbacks in order to flash the device's firmware. As the mlxfw module is shared between several different drivers, those callbacks are the glue functionality that is responsible for hardware interaction. Add those callbacks using the MCQI,

[patch net-next v2 0/8] mlxsw: Support firmware flash

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko Add support for device firmware flash on mlxsw spectrum. The firmware files are expected to be in the Mellanox Firmware Archive version 2 (MFA2) format. The firmware flash is triggered on driver initialization time if the device firmware version does not meet the minimum firmwar

bond link state mismatch, rtnl_trylock() vs rtnl_lock()

2017-05-23 Thread Nithin Sujir
Hi, We're encountering a problem in 4.4 LTS where, rarely, the bond link state is not updated when the slave link changes. I've traced the issue to the arp monitor unable to get the rtnl lock. The sequence resulting in failure is as below. bond_loadbalance_arp_mon() periodically called, if s

Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions

2017-05-23 Thread Andy Lutomirski
On Tue, May 23, 2017 at 11:36 AM, Kees Cook wrote: > On Tue, May 23, 2017 at 12:48 AM, Solar Designer wrote: >> For modules_autoload_mode=2, we already seem to have the equivalent of >> modprobe=/bin/true (or does it differ subtly, maybe in return values?), >> which I already use at startup on a

Re: [PATCH net-next] tcp: fix TCP_SYNCNT flakes

2017-05-23 Thread Soheil Hassas Yeganeh
On Tue, May 23, 2017 at 3:38 PM, Eric Dumazet wrote: > From: Eric Dumazet > > After the mentioned commit, some of our packetdrill tests became flaky. > > TCP_SYNCNT socket option can limit the number of SYN retransmits. > > retransmits_timed_out() has to compare times computations based on > loca

Re: Alignment in BPF verifier

2017-05-23 Thread Alexei Starovoitov
On 5/23/17 7:41 AM, Edward Cree wrote: I'm still plugging away at this... it's going to be quite a big patch and rewrite a lot of stuff (and I'm not sure I'll be able to break it into smaller bisectable patches). And of course I have more questions. In check_packet_ptr_add(), we forbid adding

[PATCH net-next] tcp: fix TCP_SYNCNT flakes

2017-05-23 Thread Eric Dumazet
From: Eric Dumazet After the mentioned commit, some of our packetdrill tests became flaky. TCP_SYNCNT socket option can limit the number of SYN retransmits. retransmits_timed_out() has to compare times computations based on local_clock() while timers are based on jiffies. With NTP adjustments a

Re: [PATCH v6 net-next 17/17] net: qualcomm: add QCA7000 UART driver

2017-05-23 Thread Stefan Wahren
> Lino Sanfilippo hat am 23. Mai 2017 um 20:16 > geschrieben: > > > Hi, > > On 23.05.2017 15:12, Stefan Wahren wrote: > > > > +} > > + > > +static void qca_uart_remove(struct serdev_device *serdev) > > +{ > > + struct qcauart *qca = serdev_device_get_drvdata(serdev); > > + > > + netif_c

Re: arch: arm: bpf: Converting cBPF to eBPF for arm 32 bit

2017-05-23 Thread Kees Cook
On Tue, May 23, 2017 at 11:39 AM, Shubham Bansal wrote: > Here is the patch I sent to the arm mailing list. Thanks for sending this! I'm trying to figure out the best way to split this up, but the bulk of it (the actual JIT changes) seems like they need to all land at the same time. Any thoughts

[PATCH net-next] net: dsa: support cross-chip ageing time

2017-05-23 Thread Vivien Didelot
Now that the switchdev bridge ageing time attribute is propagated to all switch chips of the fabric, each switch can check if the requested value is valid and program itself, so that the whole fabric shares a common ageing time setting. This is especially needed for switch chips in between others,

Re: [PATCH v4 next 1/3] modules:capabilities: allow __request_module() to take a capability argument

2017-05-23 Thread Kees Cook
On Tue, May 23, 2017 at 3:29 AM, Djalal Harouni wrote: > On Tue, May 23, 2017 at 12:20 AM, Kees Cook wrote: >> On Mon, May 22, 2017 at 4:57 AM, Djalal Harouni wrote: >>> This is a preparation patch for the module auto-load restriction feature. >>> >>> In order to restrict module auto-load operat

Re: [RFC V1 1/1] net: cdc_ncm: Reduce memory use when kernel memory low

2017-05-23 Thread Baxter, Jim
From: David S. Miller (da...@davemloft.net) Sent: Tue, 23 May 2017 11:26:25 -0400 > From: Oliver Neukum > Date: Tue, 23 May 2017 10:42:48 +0200 > >> >> We could use a counter. After the first failure, do it once, after the >> second twice and so on. And reset the counter as a higher order >> all

Re: [PATCH v3 net] net: phy: marvell: Limit errata to 88m1101

2017-05-23 Thread Florian Fainelli
On 05/23/2017 08:49 AM, Andrew Lunn wrote: > The 88m1101 has an errata when configuring autoneg. However, it was > being applied to many other Marvell PHYs as well. Limit its scope to > just the 88m1101. > > Fixes: 76884679c644 ("phylib: Add support for Marvell 88eS and 88e1145") > Reported-by

Re: [PATCH] net: ieee802154: fix potential null pointer dereference

2017-05-23 Thread Gustavo A. R. Silva
Hi Marcel, Quoting Marcel Holtmann : Hi Gustavo, Null check at line 918: if (!spi) {, implies spi might be NULL. Function spi_get_drvdata() dereference pointer spi. Move pointer priv assignment after the null check. Addresses-Coverity-ID: 140 Signed-off-by: Gustavo A. R. Silva --- drive

[PATCH] net: ieee802154: fix potential null pointer dereference

2017-05-23 Thread Gustavo A. R. Silva
Null check at line 918: if (!spi) {, implies spi might be NULL. Function spi_get_drvdata() dereference pointer spi. Move pointer priv assignment after the null check. Addresses-Coverity-ID: 140 Signed-off-by: Gustavo A. R. Silva --- drivers/net/ieee802154/ca8210.c | 3 ++- 1 file changed, 2

Re: arch: arm: bpf: Converting cBPF to eBPF for arm 32 bit

2017-05-23 Thread Shubham Bansal
Hi Kees, Daniel, Mircea and David, Here is the patch I sent to the arm mailing list. Any Comments are welcome. -- Forwarded message -- From: Shubham Bansal Date: Wed, May 24, 2017 at 12:03 AM Subject: [PATCH] RFC: arm: eBPF JIT compiler To: li...@armlinux.org.uk Cc: linux-arm-ker

Re: [kernel-hardening] [PATCH v4 next 0/3] modules: automatic module loading restrictions

2017-05-23 Thread Kees Cook
On Tue, May 23, 2017 at 12:48 AM, Solar Designer wrote: > For modules_autoload_mode=2, we already seem to have the equivalent of > modprobe=/bin/true (or does it differ subtly, maybe in return values?), > which I already use at startup on a GPU box like this (preloading > modules so that the OpenC

Re: [PATCHv4] wlcore: add wl1285 compatible

2017-05-23 Thread Sebastian Reichel
Hi, On Mon, May 22, 2017 at 11:50:04AM -0500, Rob Herring wrote: > [...] > >> >> Thanks, I'll take it then. Not sure why Sebastian was suggested to > >> >> submit this patch via your tree in the first place. > >> >> > >> >> https://patchwork.kernel.org/patch/9713645/ > >> > > >> > Thanks. The idea

Re: [PATCH net-next] sctp: no need to check asoc_id before calling sctp_assoc_set_id

2017-05-23 Thread Xin Long
On Wed, May 24, 2017 at 2:04 AM, Marcelo Ricardo Leitner wrote: [...] > > On Tue, May 23, 2017 at 02:30:32PM +0800, Xin Long wrote: >> sctp_assoc_set_id has already done the asoc_id check in the beginning > s//does/ > Very important to use the right tense here as

Re: [PATCH v6 net-next 17/17] net: qualcomm: add QCA7000 UART driver

2017-05-23 Thread Lino Sanfilippo
Hi, On 23.05.2017 15:12, Stefan Wahren wrote: > +} > + > +static void qca_uart_remove(struct serdev_device *serdev) > +{ > + struct qcauart *qca = serdev_device_get_drvdata(serdev); > + > + netif_carrier_off(qca->net_dev); > + cancel_work_sync(&qca->tx_work); > + unregister_netde

Re: [PATCH] net: ieee802154: fix potential null pointer dereference

2017-05-23 Thread Marcel Holtmann
Hi Gustavo, > Null check at line 918: if (!spi) {, implies spi might be NULL. > Function spi_get_drvdata() dereference pointer spi. > Move pointer priv assignment after the null check. > > Addresses-Coverity-ID: 140 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/net/ieee802154/ca8210.c

Re: [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs

2017-05-23 Thread Florian Fainelli
On 05/23/2017 09:55 AM, Andrew Lunn wrote: >> The patches mentioned in the commit message add _some_ support for >> the Cortina PHYs - mainly checking for devices at additional >> locations. Once they are found, the phy IDs must be read from custom >> locations. > > As a general principle, we don

[PATCH] brcmfmac: Fix kernel oops on resume when request firmware fails.

2017-05-23 Thread Enric Balletbo i Serra
When request firmware fails, brcmf_ops_sdio_remove is being called and brcmf_bus freed. In such circumstancies if you do a suspend/resume cycle the kernel hangs on resume due a NULL pointer dereference in resume function. Steps to reproduce the problem: - modprobe brcmfmac without the firmware

Re: [PATCH net v2 1/2] net: ieee802154: remove explicit set skb->sk

2017-05-23 Thread Marcel Holtmann
Hi Lin, > Explicit set skb->sk is needless, sock_alloc_send_skb is already set it. > > Signed-off-by: Lin Zhang > Acked-by: Stefan Schmidt > --- > changelog: > > v1 -> v2: >* split v1 into two patches, per Stefan Schmidt. > > Thanks to Stefan Schmidt for reviewing ! > --- > net/ieee80

Re: [PATCH net v2 2/2] net: ieee802154: fix net_device reference release too early

2017-05-23 Thread Marcel Holtmann
Hi Lin, > This patch fixes the kernel oops when release net_device reference in > advance. In function raw_sendmsg(i think the dgram_sendmsg has the same > problem), there is a race condition between dev_put and dev_queue_xmit > when the device is gong that maybe lead to dev_queue_ximt to see > an

Re: [PATCH net-next] sctp: no need to check asoc_id before calling sctp_assoc_set_id

2017-05-23 Thread Marcelo Ricardo Leitner
Hi, On Tue, May 23, 2017 at 02:30:32PM +0800, Xin Long wrote: > sctp_assoc_set_id has already done the asoc_id check in the beginning s//does/ Very important to use the right tense here as otherwise it gives the impression that the check was already made, which is

Re: 4.12-RC2 BUG: scheduling while atomic: irq/47-iwlwifi

2017-05-23 Thread Sander Eikelenboom
On 22/05/17 23:02, Arend Van Spriel wrote: > > > On 22-5-2017 14:09, Arend van Spriel wrote: >> On 5/22/2017 12:57 PM, Johannes Berg wrote: >>> On Mon, 2017-05-22 at 12:36 +0200, Sander Eikelenboom wrote: Hi, I encountered this splat with 4.12-RC2. >>> >>> Ugh, yeah, I should've se

Re: Alignment in BPF verifier

2017-05-23 Thread Edward Cree
Another issue: it looks like the min/max_value handling for subtraction is bogus. In adjust_reg_min_max_vals() we have if (dst_reg->min_value != BPF_REGISTER_MIN_RANGE) dst_reg->min_value -= min_val; if (dst_reg->max_value != BPF_REGISTER_MAX_RANGE) dst_reg->max_value -= m

[PATCH V3 net 2/3] be2net: Fix offload features for Q-in-Q packets

2017-05-23 Thread Vladislav Yasevich
At least some of the be2net cards do not seem to be capabled of performing checksum offload computions on Q-in-Q packets. In these case, the recevied checksum on the remote is invalid and TCP syn packets are dropped. This patch adds a call to check disbled acceleration features on Q-in-Q tagged tr

[PATCH V3 net 3/3] virtio-net: enable TSO/checksum offloads for Q-in-Q vlans

2017-05-23 Thread Vladislav Yasevich
Since virtio does not provide it's own ndo_features_check handler, TSO, and now checksum offload, are disabled for stacked vlans. Re-enable the support and let the host take care of it. This restores/improves Guest-to-Guest performance over Q-in-Q vlans. Acked-by: Jason Wang Acked-by: Michael S.

[PATCH V3 net 0/3] Fix checksum issues with Q-in-Q vlans

2017-05-23 Thread Vladislav Yasevich
TCP checksum appear broken on a lot of devices that advertise NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM. This problem becomes very visible/reproducable since the series commit afb0bc972b526 ("Merge branch 'stacked_vlan_tso'"). In particular, the issue appeared consistently on bnx2 and be2net drivers (n

[PATCH V3 net 1/3] vlan: Fix tcp checksum offloads in Q-in-Q vlans

2017-05-23 Thread Vladislav Yasevich
It appears that TCP checksum offloading has been broken for Q-in-Q vlans. The behavior was execerbated by the series commit afb0bc972b52 ("Merge branch 'stacked_vlan_tso'") that that enabled accleleration features on stacked vlans. However, event without that series, it is possible to trigger

Re: [PATCH net v2] ipv6: sr: fix user space compilation error with old glibc

2017-05-23 Thread Daniel Borkmann
On 05/15/2017 04:21 PM, David Lebrun wrote: On 05/15/2017 04:09 PM, David Miller wrote: Please, no. The reason we put together a method by which glibc and the kernel can stay out of eachother's way in header files is exactly so that we don't need ifdefs that conditionally do netinet/in.h vs. us

ATENCIÓN

2017-05-23 Thread administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

Re: [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW events

2017-05-23 Thread Alexei Starovoitov
On 5/23/17 9:31 AM, Peter Zijlstra wrote: On Tue, May 23, 2017 at 07:38:08AM -0700, Alexei Starovoitov wrote: On 5/23/17 12:42 AM, Peter Zijlstra wrote: On Mon, May 22, 2017 at 03:48:39PM -0700, Alexei Starovoitov wrote: From: Teng Qin This commit adds support for attach BPF program to RAW a

Re: [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs

2017-05-23 Thread Andrew Lunn
> The patches mentioned in the commit message add _some_ support for > the Cortina PHYs - mainly checking for devices at additional > locations. Once they are found, the phy IDs must be read from custom > locations. As a general principle, we don't add hacks in generic code to handle broken devic

[PATCH V2 net 3/3] virtio-net: enable TSO/checksum offloads for Q-in-Q vlans

2017-05-23 Thread Vladislav Yasevich
Since virtio does not provide it's own ndo_features_check handler, TSO, and now checksum offload, are disabled for stacked vlans. Re-enable the support and let the host take care of it. This restores/improves Guest-to-Guest performance over Q-in-Q vlans. Acked-by: Jason Wang Acked-by: Michael S.

[PATCH V2 net 2/3] be2net: Fix offload features for Q-in-Q packets

2017-05-23 Thread Vladislav Yasevich
At least some of the be2net cards do not seem to be capabled of performing checksum offload computions on Q-in-Q packets. In these case, the recevied checksum on the remote is invalid and TCP syn packets are dropped. This patch adds a call to check disbled acceleration features on Q-in-Q tagged tr

[PATCH V2 net 0/3] Fix checksum issues with Q-in-Q vlans

2017-05-23 Thread Vladislav Yasevich
TCP checksum appear broken on a lot of devices that advertise NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM. This problem becomes very visible/reproducable since the series commit afb0bc972b526 ("Merge branch 'stacked_vlan_tso'"). In particular, the issue appeared consistently on bnx2 and be2net drivers (n

[PATCH V2 net 1/3] vlan: Fix tcp checksum offloads in Q-in-Q vlans

2017-05-23 Thread Vladislav Yasevich
It appears that TCP checksum offloading has been broken for Q-in-Q vlans. The behavior was execerbated by the series that that enabled accleleration features on stacked vlans (commit afb0bc972b526 "Merge branch 'stacked_vlan_tso'") However, event without that series, it is possible to trigger thi

[Patch net-next] net_sched: only create filter chains for new filters/actions

2017-05-23 Thread Cong Wang
tcf_chain_get() always creates a new filter chain if not found in existing ones. This is totally unnecessary when we get or delete filters, new chain should be only created for new filters (or new actions). Fixes: 5bc1701881e3 ("net: sched: introduce multichain support for filters") Cc: Jamal Hadi

[patch net-next v2 5/5] mlxsw: spectrum_flower: Add support for tcp flags

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko Allow to offload rules that contain tcp flags within the mask. Signed-off-by: Jiri Pirko Reviewed-by: Ido Schimmel --- .../ethernet/mellanox/mlxsw/spectrum_acl_tcam.c| 1 + .../net/ethernet/mellanox/mlxsw/spectrum_flower.c | 29 ++ 2 files changed, 3

[patch net-next v2 4/5] mlxsw: spectrum: Add acl block containing tcp flags for ipv4

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko Add acl block called "ipv4" which contains tcp flags. Signed-off-by: Jiri Pirko Reviewed-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_ac

[patch net-next v2 2/5] net/sched: flower: add support for matching on tcp flags

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko Benefit from the support of tcp flags dissection and allow user to insert rules matching on tcp flags. Signed-off-by: Jiri Pirko --- include/uapi/linux/pkt_cls.h | 3 +++ net/sched/cls_flower.c | 13 - 2 files changed, 15 insertions(+), 1 deletion(-) diff -

[patch net-next v2 3/5] mlxsw: acl: Add tcp flags acl element

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko Define new element for tcp flags and place it into scratch area. Signed-off-by: Jiri Pirko Reviewed-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h | 2 ++ drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c| 1 + 2 files changed, 3 inserti

[patch net-next v2 1/5] net: flow_dissector: add support for dissection of tcp flags

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko Add support for dissection of tcp flags. Uses similar function call to tcp dissection function as arp, mpls and others. Signed-off-by: Jiri Pirko Acked-by: Or Gerlitz --- include/net/flow_dissector.h | 9 + net/core/flow_dissector.c| 29 ++

[patch net-next v2 0/5] add tcp flags match support to flower and offload it

2017-05-23 Thread Jiri Pirko
From: Jiri Pirko This patch adds support to dissect tcp flags, match on them using flower classifier and offload such rules to mlxsw Spectrum devices. --- v1->v2: - removed no longer relevant comment from patch 1 as suggested by Or - sent correct patches this time Jiri Pirko (5): net: flow_di

Re: tipc: Delete error messages for failed memory allocations in three functions

2017-05-23 Thread Joe Perches
On Tue, 2017-05-23 at 18:23 +0200, SF Markus Elfring wrote: > > tipc_subseq_alloc does a kcalloc (memset to 0), > > half of which is immediately overwritten. > > > > In other words, don't just blindly remove stuff, > > understand what it does and improve it. > > Do you suggest another specific so

Re: [PATCH 2/2] at803x: double check SGMII side autoneg

2017-05-23 Thread Timur Tabi
On 05/23/2017 11:07 AM, Andrew Lunn wrote: >> > I will test that to see what happens, but I believe the real problem is >> > that >> > the at803x driver is lying when it says that the link is not okay. I think >> > the link is okay, and that's why I'm not getting any more interrupts. I >> > don'

RE: [PATCH 2/2] drivers: phy: Add Cortina CS4340 driver

2017-05-23 Thread Bogdan Purcareata
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Tuesday, May 23, 2017 6:57 PM > To: Bogdan Purcareata > Cc: f.faine...@gmail.com; netdev@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH 2/2] drivers: phy: Add Cortina CS4340 driver > > On Tue,

  1   2   3   >