Re: [Bridge] [PATCH net] net: bridge: remove ipv6 zero address check in mcast queries

2019-02-21 Thread Hangbin Liu
Hi Linus, Sorry, my mail client somehow droped your message and I didn't see your reply. I find this mail after Nikolay pointed out yesterday. > Hi and thanks for your reply! > > On Fri, Dec 14, 2018 at 10:32:16AM +0800, Ying Xu wrote: > > I think the scenario mentioned above is abnormal. > >

[PATCH v2] iwlwifi: mvm: Use div_s64 instead of do_div in iwl_mvm_debug_range_resp

2019-02-21 Thread Nathan Chancellor
Clang warns: drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:465:2: warning: comparison of distinct pointer types ('typeof ((rtt_avg)) *' (aka 'long long *') and 'uint64_t *' (aka 'unsigned long long *')) [-Wcompare-distinct-pointer-types] do_div(rtt_avg, ); ^~~~

[RFC] coallocating struct socket and struct socket_wq

2019-02-21 Thread Al Viro
All instances of struct socket are embedded into some bigger structure - most into struct socket_alloc (with struct inode following struct socket), some into struct tun_file or struct tap_queue. In the last two cases the corresponding struct socket_wq (the one whose address goes in

[PATCH 3/4] af_key: unconditionally clone on broadcast

2019-02-21 Thread Steffen Klassert
From: Sean Tranchetti Attempting to avoid cloning the skb when broadcasting by inflating the refcount with sock_hold/sock_put while under RCU lock is dangerous and violates RCU principles. It leads to subtle race conditions when attempting to free the SKB, as we may reference sockets that have al

pull request (net): ipsec 2019-02-21

2019-02-21 Thread Steffen Klassert
1) Don't do TX bytes accounting for the esp trailer when sending from a request socket as this will result in an out of bounds memory write. From Martin Willi. 2) Destroy xfrm_state synchronously on net exit path to avoid nested gc flush callbacks that may trigger a warning in xfrm6_tu

[PATCH 4/4] xfrm: Fix inbound traffic via XFRM interfaces across network namespaces

2019-02-21 Thread Steffen Klassert
From: Tobias Brunner After moving an XFRM interface to another namespace it stays associated with the original namespace (net in `struct xfrm_if` and the list keyed with `xfrmi_net_id`), allowing processes in the new namespace to use SAs/policies that were created in the original namespace. For

[PATCH 1/4] esp: Skip TX bytes accounting when sending from a request socket

2019-02-21 Thread Steffen Klassert
From: Martin Willi On ESP output, sk_wmem_alloc is incremented for the added padding if a socket is associated to the skb. When replying with TCP SYNACKs over IPsec, the associated sk is a casted request socket, only. Increasing sk_wmem_alloc on a request socket results in a write at an arbitrary

[PATCH 2/4] xfrm: destroy xfrm_state synchronously on net exit path

2019-02-21 Thread Steffen Klassert
From: Cong Wang xfrm_state_put() moves struct xfrm_state to the GC list and schedules the GC work to clean it up. On net exit call path, xfrm_state_flush() is called to clean up and xfrm_flush_gc() is called to wait for the GC work to complete before exit. However, this doesn't work because one

Re: [PATCH v2] kcm: remove any offset before parsing messages

2019-02-21 Thread Dominique Martinet
Tom Herbert wrote on Wed, Feb 20, 2019: > > When the client closes the socket, some messages are obviously still "in > > flight", and the server will recv a POLLERR notification on the csock at > > some point with many messages left. > > The documentation says to unattach the csock when you get POL

[PATCH] bpf: test_bpf: turn of preemption in function __run_once

2019-02-21 Thread Anders Roxell
When running test seccomp_bpf the following splat occurs: [ RUN ] global.secseccomp_bpf.c:2136:global.detect_seccomp_filter_flags:Expected 22 (22) == (*__errno_location ()) (14) seccomp_bpf.c:2138:global.detect_seccomp_filter_flags:Failed to detect that an unknown filter flag (0x8) is un

Re: Handling an Extra Signal at PHY Reset

2019-02-21 Thread Paul Kocialkowski
Hi Andrew, On Thu, 2019-02-21 at 02:49 +0100, Andrew Lunn wrote: > On Tue, Feb 19, 2019 at 10:14:20AM +0100, Paul Kocialkowski wrote: > > Hi, > > > > We are dealing with an Ethernet PHY (Marvell 88E1512) that comes with a > > CONFIG pin that must be connected to one of the other pins of the PHY >

Re: [PATCH bpf-next v2] bpf, seccomp: fix false positive preemption splat for cbpf->ebpf progs

2019-02-21 Thread Daniel Borkmann
On 02/21/2019 06:31 AM, Kees Cook wrote: > On Wed, Feb 20, 2019 at 8:03 PM Alexei Starovoitov > wrote: >> >> On Wed, Feb 20, 2019 at 3:59 PM Alexei Starovoitov >> wrote: >>> >>> On Thu, Feb 21, 2019 at 12:01:35AM +0100, Daniel Borkmann wrote: In 568f196756ad ("bpf: check that BPF programs ru

Re: Handling an Extra Signal at PHY Reset

2019-02-21 Thread Paul Kocialkowski
Hi Florian, On Tue, 2019-02-19 at 08:07 -0800, Florian Fainelli wrote: > > On February 19, 2019 1:14:20 AM PST, Paul Kocialkowski > wrote: > > Hi, > > > > We are dealing with an Ethernet PHY (Marvell 88E1512) that comes with a > > CONFIG pin that must be connected to one of the other pins of t

Re: [PATCH RFC 3/5] sched/cpufreq: Fix incorrect RCU API usage

2019-02-21 Thread Peter Zijlstra
On Thu, Feb 21, 2019 at 12:49:40AM -0500, Joel Fernandes (Google) wrote: > @@ -34,8 +34,12 @@ void cpufreq_add_update_util_hook(int cpu, struct > update_util_data *data, > if (WARN_ON(!data || !func)) > return; > > - if (WARN_ON(per_cpu(cpufreq_update_util_data, cpu))) >

Re: [PATCH RFC 5/5] rcuwait: Replace rcu_assign_pointer() with WRITE_ONCE

2019-02-21 Thread Peter Zijlstra
On Thu, Feb 21, 2019 at 12:49:42AM -0500, Joel Fernandes (Google) wrote: > This suppresses a sparse error generated due to the recently added > rcu_assign_pointer sparse check below. It seems WRITE_ONCE should be > sufficient here. > > >> kernel//locking/percpu-rwsem.c:162:9: sparse: error: incomp

Re: [PATCH RFC 4/5] sched/topology: Annonate RCU pointers properly

2019-02-21 Thread Peter Zijlstra
On Thu, Feb 21, 2019 at 12:49:41AM -0500, Joel Fernandes (Google) wrote: > Also replace rcu_assign_pointer call on rq->sd with WRITE_ONCE. This > should be sufficient for the rq->sd initialization. > @@ -668,7 +668,7 @@ cpu_attach_domain(struct sched_domain *sd, struct > root_domain *rd, int cpu

[PATCH bpf-next v6 1/3] libbpf: add support for using AF_XDP sockets

2019-02-21 Thread Magnus Karlsson
This commit adds AF_XDP support to libbpf. The main reason for this is to facilitate writing applications that use AF_XDP by offering higher-level APIs that hide many of the details of the AF_XDP uapi. This is in the same vein as libbpf facilitates XDP adoption by offering easy-to-use higher level

[PATCH bpf-next v6 3/3] xsk: add FAQ to facilitate for first time users

2019-02-21 Thread Magnus Karlsson
Added an FAQ section in Documentation/networking/af_xdp.rst to help first time users with common problems. As problems are getting identified, entries will be added to the FAQ. Signed-off-by: Magnus Karlsson --- Documentation/networking/af_xdp.rst | 36 +++- 1 fil

[PATCH bpf-next v6 0/3] libbpf: adding AF_XDP support

2019-02-21 Thread Magnus Karlsson
This patch proposes to add AF_XDP support to libbpf. The main reason for this is to facilitate writing applications that use AF_XDP by offering higher-level APIs that hide many of the details of the AF_XDP uapi. This is in the same vein as libbpf facilitates XDP adoption by offering easy-to-use hig

[PATCH bpf-next v6 2/3] samples/bpf: convert xdpsock to use libbpf for AF_XDP access

2019-02-21 Thread Magnus Karlsson
This commit converts the xdpsock sample application to use the AF_XDP functions present in libbpf. This cuts down the size of it by nearly 300 lines of code. The default ring sizes plus the batch size has been increased and the size of the umem area has decreased. This so that the sample applicati

[PATCH net-next 6/7] net: mvpp2: Add 2.5GBaseT support

2019-02-21 Thread Maxime Chevallier
The PPv2 controller is able to support 2.5G speeds, allowing to use 2.5GBASET in conjunction with PHYs that use 2500BASEX as their MII interface when using this mode. Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 1 + 1 file chan

[PATCH net-next 4/7] net: phy: marvell10g: Use a #define for 88X3310 family id

2019-02-21 Thread Maxime Chevallier
The PHY ID corresponding to the 88X3310 is also used for other PHYs in the same family, such as the 88E2010. Use a #define for the PHY id, that ignores the last nibble. Signed-off-by: Maxime Chevallier --- drivers/net/phy/marvell10g.c | 4 ++-- include/linux/marvell_phy.h | 1 + 2 files changed

[PATCH net-next 0/7] net: phy: marvell10g: Add 2.5GBaseT

2019-02-21 Thread Maxime Chevallier
This series adds the missing bits necessary to fully support 2.5GBaseT in the Marvell Alaska PHYs. The main points for that support are : - Making use of the .get_features call, recently introduced by Heiner and Andrew, that allows having a fully populated list of supported modes, includin

[PATCH net-next 2/7] net: phy: marvell10g: Use linkmode_set_bit helper instead of __set_bit

2019-02-21 Thread Maxime Chevallier
Cosmetic patch making use of helpers dedicated to linkmodes handling. Signed-off-by: Maxime Chevallier --- drivers/net/phy/marvell10g.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index 65ef469adf58..8e2d6039

[PATCH net-next 1/7] net: phy: marvell10g: Use get_features to get the PHY abilities

2019-02-21 Thread Maxime Chevallier
The Alaska family of 10G PHYs has more abilities than the ones listed in PHY_10GBIT_FULL_FEATURES, the exact list depending on the model. Make use of the newly introduced .get_features call to build this list, using genphy_c45_pma_read_abilities to build the list of supported linkmodes, and adding

[PATCH net-next 7/7] net: phy: marvell10g: add support for the 88x2110 PHY

2019-02-21 Thread Maxime Chevallier
This patch adds support for the 88x2110 PHY, which is similar to the already supported 88x3310 PHY without the SFP interface. It supports 10/100/1000BASET along with 2.5GBASET, 5GBASET and 10GBASET, with the same interface modes that are used by the 3310. This PHY don't have the same issue as the

[PATCH net-next 5/7] net: phy: marvell10g: Force reading of 2.5/5G

2019-02-21 Thread Maxime Chevallier
As per 802.3bz, if bit 14 of (1.11) "PMA Extended Abilities" indicates whether or not we should read register (1.21) "2.52/5G PMA Extended Abilities", which contains information on the support of 2.5GBASET and 5GBASET. After testing on several variants of PHYS of this family, it appears that bit 1

[PATCH net-next 3/7] net: phy: marvell10g: Use 2500BASEX when using 2.5GBASET

2019-02-21 Thread Maxime Chevallier
The Marvell Alaska family of PHYs supports 2.5GBaseT and 5GBaseT modes, as defined in the 802.3bz specification. Upon establishing a 2.5GBASET link, the PHY will reconfigure it's MII interface to 2500BASEX. At 5G, the PHY will reconfigure it's interface to 5GBASE-R, but this mode isn't supported

Re: [RFC PATCH net-next v3 00/21] ethtool netlink interface, part 1

2019-02-21 Thread Michal Kubecek
On Wed, Feb 20, 2019 at 07:21:18PM -0800, Florian Fainelli wrote: > > Main changes between RFC v2 and RFC v3: > > > > - do not allow building as a module (no netdev notifiers needed) > > I would very much prefer that we could build this as a module. Some > systems might be memory constrained or o

Re: [PATCH net-next v3 1/8] net: switchdev: Add PORT_PRE_BRIDGE_FLAGS

2019-02-21 Thread Ido Schimmel
On Wed, Feb 20, 2019 at 04:58:19PM -0800, Florian Fainelli wrote: > In preparation for removing switchdev_port_attr_get(), introduce > PORT_PRE_BRIDGE_FLAGS which will be called through > switchdev_port_attr_set(), in the caller's context (possibly atomic) and > which must be checked by the switchd

Re: [PATCH net-next v3 2/8] mlxsw: spectrum: Handle PORT_PRE_BRIDGE_FLAGS

2019-02-21 Thread Ido Schimmel
On Wed, Feb 20, 2019 at 04:58:20PM -0800, Florian Fainelli wrote: > In preparation for getting rid of switchdev_port_attr_get(), have mlxsw > check for the bridge flags being set through switchdev_port_attr_set() > when the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier is > used. >

Re: [PATCH net-next v3 6/8] net: bridge: Stop calling switchdev_port_attr_get()

2019-02-21 Thread Ido Schimmel
On Wed, Feb 20, 2019 at 04:58:24PM -0800, Florian Fainelli wrote: > Now that all switchdev drivers have been converted to check the > SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS flags and report flags that they > do not support accordingly, we can migrate the bridge code to try to set > that attribute

Re: [RFC PATCH net-next v3 14/21] ethtool: provide link mode names as a string set

2019-02-21 Thread Michal Kubecek
On Wed, Feb 20, 2019 at 07:21:58PM -0800, Florian Fainelli wrote: > > +const char *const link_mode_names[] = { > > Maybe you can define a macro (totally untested) to build the table an > avoid some of the repetition, something like: > > #define ETHTOOL_LINK_NAME(speed, duplex) \ > [ETHTOOL_

Re: [PATCH] perf record: Add support for limit perf output file size

2019-02-21 Thread Jiri Olsa
On Thu, Feb 21, 2019 at 02:44:19PM +0800, Jiwei Sun wrote: > The patch adds a new option to limit the output file size, then based > on it, we can create a wrapper of the perf command that uses the option > to avoid exhausting the disk space by the unconscious user. > > Signed-off-by: Jiwei Sun >

Re: [PATCH net-next v3 8/8] net: Get rid of switchdev_port_attr_get()

2019-02-21 Thread Ido Schimmel
On Wed, Feb 20, 2019 at 04:58:26PM -0800, Florian Fainelli wrote: > With the bridge no longer calling switchdev_port_attr_get() to obtain > the supported bridge port flags from a driver but instead trying to set > the bridge port flags directly and relying on driver to reject > unsupported configur

Re: [PATCH net-next v3 1/8] net: switchdev: Add PORT_PRE_BRIDGE_FLAGS

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:19AM CET, f.faine...@gmail.com wrote: >In preparation for removing switchdev_port_attr_get(), introduce >PORT_PRE_BRIDGE_FLAGS which will be called through >switchdev_port_attr_set(), in the caller's context (possibly atomic) and >which must be checked by the switchdev dr

Re: [PATCH net-next v3 7/8] net: Remove SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:25AM CET, f.faine...@gmail.com wrote: >Now that we have converted the bridge code and the drivers to check for >bridge port(s) flags at the time we try to set them, there is no need >for a get() -> set() sequence anymore and >SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT th

Re: [PATCH net-next v3 4/8] net: dsa: Add setter for SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:22AM CET, f.faine...@gmail.com wrote: >In preparation for removing SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT, >add support for a function that processes the >SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS and >SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attributes and returns not >sup

Re: [PATCH net-next v3 5/8] rocker: Check Handle PORT_PRE_BRIDGE_FLAGS

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:23AM CET, f.faine...@gmail.com wrote: >In preparation for getting rid of switchdev_port_attr_get(), have rocker >check for the bridge flags being set through switchdev_port_attr_set() >with the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier. > >Signed-off-by

Re: [PATCH net-next v3 6/8] net: bridge: Stop calling switchdev_port_attr_get()

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:24AM CET, f.faine...@gmail.com wrote: >Now that all switchdev drivers have been converted to check the >SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS flags and report flags that they >do not support accordingly, we can migrate the bridge code to try to set >that attribute first

Re: [PATCH net-next v3 8/8] net: Get rid of switchdev_port_attr_get()

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:26AM CET, f.faine...@gmail.com wrote: >With the bridge no longer calling switchdev_port_attr_get() to obtain >the supported bridge port flags from a driver but instead trying to set >the bridge port flags directly and relying on driver to reject >unsupported configuration

Re: [PATCH net-next v3 3/8] staging: fsl-dpaa2: ethsw: Handle PORT_PRE_BRIDGE_FLAGS

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:21AM CET, f.faine...@gmail.com wrote: >In preparation for removing SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT, >handle the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute and check >that the bridge port flags being configured are supported. > >Signed-off-by: Florian Fa

Re: [PATCH net-next v3 2/8] mlxsw: spectrum: Handle PORT_PRE_BRIDGE_FLAGS

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:58:20AM CET, f.faine...@gmail.com wrote: >In preparation for getting rid of switchdev_port_attr_get(), have mlxsw >check for the bridge flags being set through switchdev_port_attr_set() >when the SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS attribute identifier is >used. > >Signe

Re: [RFC PATCH net-next v3 15/21] ethtool: provide link settings and link modes in GET_SETTINGS request

2019-02-21 Thread Michal Kubecek
On Wed, Feb 20, 2019 at 07:14:50PM -0800, Florian Fainelli wrote: > On 2/18/2019 10:22 AM, Michal Kubecek wrote: > > +#define ETH_SETTINGS_IM_LINKINFO 0x01 > > +#define ETH_SETTINGS_IM_LINKMODES 0x02 > > + > > +#define ETH_SETTINGS_IM_ALL0x03 > > You coul

[PATCH net v2 1/2] ipv6: route: enforce RCU protection in rt6_update_exception_stamp_rt()

2019-02-21 Thread Paolo Abeni
We must access rt6_info->from under RCU read lock: move the dereference under such lock, with proper annotation. v1 -> v2: - avoid using multiple, racy, fetch operations for rt->from Fixes: a68886a69180 ("net/ipv6: Make from in rt6_info rcu protected") Signed-off-by: Paolo Abeni --- net/ipv6/r

[PATCH net v2 0/2] ipv6: route: enforce RCU protection for fib6_info->from

2019-02-21 Thread Paolo Abeni
This series addresses a couple of RCU left-over dating back to rt6_info->from conversion to RCU v1 -> v2: - fix a possible race in patch 1 Paolo Abeni (2): ipv6: route: enforce RCU protection in rt6_update_exception_stamp_rt() ipv6: route: enforce RCU protection in ip6_route_check_nh_onlink(

[PATCH net v2 2/2] ipv6: route: enforce RCU protection in ip6_route_check_nh_onlink()

2019-02-21 Thread Paolo Abeni
We need a RCU critical section around rt6_info->from deference, and proper annotation. Fixes: 4ed591c8ab44 ("net/ipv6: Allow onlink routes to have a device mismatch if it is the default route") Signed-off-by: Paolo Abeni --- net/ipv6/route.c | 6 +- 1 file changed, 5 insertions(+), 1 deleti

Re: mlx5 stable backport help

2019-02-21 Thread Or Gerlitz
On Wed, Feb 20, 2019 at 10:03 PM Saeed Mahameed wrote: > On Tue, 2019-02-19 at 22:36 -0800, David Miller wrote: >> I need help backporting two changes for -stable. Namely: > Hi Dave Thanks for trying, here too > > 6707f74be8621ae067d2cf1c4485900e2742c20f ("net/mlx5e: Update hw flows > > when e

[PATCH net-next v4 2/2] net: phy: at803x: disable delay only for RGMII mode

2019-02-21 Thread Vinod Koul
Per "Documentation/devicetree/bindings/net/ethernet.txt" RGMII mode should not have delay in PHY whereas RGMII_ID and RGMII_RXID/RGMII_TXID can have delay in PHY. So disable the delay only for RGMII mode and enable for other modes. Also treat the default case as disabled delays. Fixes: cd28d1d6e5

[PATCH net-next v4 1/2] net: phy: at803x: don't inline helpers

2019-02-21 Thread Vinod Koul
Some helpers were declared with the "inline" function specifier. It is preferable to let the compiler pick the right optimizations, so drop the specifier for at803x_disable_rx_delay() and at803x_disable_tx_delay() Reviewed-by: Niklas Cassel Tested-by: Peter Ujfalusi Reviewed-by: Marc Gonzalez S

[PATCH net-next v4 0/2] net: phy: at803x: Update delays for RGMII modes

2019-02-21 Thread Vinod Koul
Peter[1] reported that patch cd28d1d6e52e: ("net: phy: at803x: Disable phy delay for RGMII mode") caused regression on am335x-evmsk board. This board expects the Phy delay to be enabled but specified RGMII mode which refers to delays being disabled. So fix this by disabling delay only for RGMII mod

Re: [PATCH net-next 1/7] net: phy: marvell10g: Use get_features to get the PHY abilities

2019-02-21 Thread Russell King - ARM Linux admin
On Thu, Feb 21, 2019 at 10:51:22AM +0100, Maxime Chevallier wrote: > The Alaska family of 10G PHYs has more abilities than the ones listed in > PHY_10GBIT_FULL_FEATURES, the exact list depending on the model. > > Make use of the newly introduced .get_features call to build this list, > using genph

Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read

2019-02-21 Thread Paul Kocialkowski
Hi, On Wed, 2019-02-20 at 07:58 +0100, Michal Simek wrote: > Hi, > > On 19. 02. 19 18:25, Andrew Lunn wrote: > > > Thanks for the suggestion! So I had a closer look at that driver to try > > > and see what could go wrong and it looks like I found a few things > > > there. > > > > Hi Paul > > >

Re: [PATCH net-next 1/7] net: phy: marvell10g: Use get_features to get the PHY abilities

2019-02-21 Thread Maxime Chevallier
Hello Russell, On Thu, 21 Feb 2019 10:22:15 + Russell King - ARM Linux admin wrote: >> +return 0; >> +} >> + >> +static int mv3310_get_features(struct phy_device *phydev) >> +{ >> +int ret, val; > >Please try to keep the formatting/style consistent in the file you are >editing. A

m88e6390_config_aneg will always reset the phy

2019-02-21 Thread Rundong Ge
Hi Andrew Before the "net: phy: marvell: Errata for mv88e6390 internal PHYs", phydev will only be soft reset when register value was changed. But after this patch, the phydev will always be reset when entering the "m88e6390_config_aneg". So is there any side effect of this change? Thanks Rundong

Re: KASAN: use-after-free Read in br_mdb_ip_get

2019-02-21 Thread Dmitry Vyukov
On Wed, Feb 20, 2019 at 11:23 AM Herbert Xu wrote: > > On Mon, Jan 28, 2019 at 09:28:36AM +0100, Dmitry Vyukov wrote: > > > > > Weird, this is the kfree() on the error path of br_multicast_new_group() > > > when rhashtable_lookup_insert_fast() fails, which means the entry should > > > not be linke

Re: KMSAN: uninit-value in br_mdb_ip_get

2019-02-21 Thread Dmitry Vyukov
On Mon, Jan 28, 2019 at 8:13 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:02f2d5aea531 kmsan: (presumably) fix dma_map_page_attrs() > git tree: kmsan > console output: https://syzkaller.appspot.com/x/log.txt?x=173a7310c0 > kernel config: https

Re: [PATCH] tcp: Reset tcp connections in SYN-SENT state

2019-02-21 Thread Devi Sandeep Endluri V V
On Wed, Feb 20, 2019 at 07:47:59AM -0800, Eric Dumazet wrote: > On Wed, Feb 20, 2019 at 6:28 AM Devi Sandeep Endluri V V > wrote: > > > > Userspace sends tcp connection (sock) destroy on network permission > > change. Kernel though doesn't send reset for the connections in > > SYN-SENT state and t

RECRUTEMENT ACTION AGAINST HUNGER CANADA

2019-02-21 Thread ACTION CONTRE LA FAIM MONTRÉAL
ACTION AGAINST HUNGER CANADA(ACF-États-Unis-CANADA) pour le développement international Siège Social: 304 Rue Saint Antoine E, Montréal, QC H2Y 1A3, Canada ÉMAIL: actioncontrelaf...@post.com PROGRAMME DE RECRUTEMENT ACTION AGAINST HUNGER CANADA Bonjour Cher citoyen, Dans le cadre de lutter

Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read

2019-02-21 Thread Michal Simek
On 21. 02. 19 11:24, Paul Kocialkowski wrote: > Hi, > > On Wed, 2019-02-20 at 07:58 +0100, Michal Simek wrote: >> Hi, >> >> On 19. 02. 19 18:25, Andrew Lunn wrote: Thanks for the suggestion! So I had a closer look at that driver to try and see what could go wrong and it looks like I foun

[patch iproute2 v2] devlink: relax dpipe table show dependency on resources

2019-02-21 Thread Jiri Pirko
From: Jiri Pirko Dpipe table show command has a depencency on getting resources. If resource get command is not supported by the driver, dpipe table show fails. However, resource is only additional information in dpipe table show output. So relax the dependency and let the dpipe tables be shown e

linux-next: Fixes tags need some work in the net-next tree

2019-02-21 Thread Stephen Rothwell
Hi all, In commit 1c50d369f560 ("net/mlx5: E-Switch, Disable esw manager vport correctly") Fixes tag Fixes: de9e6a8136c5 ("net/mlx5: E-Switch, Properly refer to host PF vport as other vport") has these problem(s): - Target SHA1 does not exist Did you mean Fixes: cbc44e76bfcd ("net/

[PATCH net-next 1/2] xdp: Always use a devmap for XDP_REDIRECT to a device

2019-02-21 Thread Toke Høiland-Jørgensen
An XDP program can redirect packets between interfaces using either the xdp_redirect() helper or the xdp_redirect_map() helper. Apart from the flexibility of updating maps from userspace, the redirect_map() helper also uses the map structure to batch packets, which results in a significant (around

[PATCH net-next 2/2] xdp: Add devmap_idx map type for looking up devices by ifindex

2019-02-21 Thread Toke Høiland-Jørgensen
A common pattern when using xdp_redirect_map() is to create a device map where the lookup key is simply ifindex. Because device maps are arrays, this leaves holes in the map, and the map has to be sized to fit the largest ifindex, regardless of how many devices actually are actually needed in the m

[PATCH net 1/1] net/smc: fix smc_poll in SMC_INIT state

2019-02-21 Thread Ursula Braun
smc_poll() returns with mask bit EPOLLPRI if the connection urg_state is SMC_URG_VALID. Since SMC_URG_VALID is zero, smc_poll signals EPOLLPRI errorneously if called in state SMC_INIT before the connection is created, for instance in a non-blocking connect scenario. This patch switches to non-zero

[PATCH net-next 5/6] net/smc: add pnet table namespace support

2019-02-21 Thread Ursula Braun
From: Hans Wippel This patch adds namespace support to the pnet table code. Each network namespace gets its own pnet table. Infiniband and smcd device pnetids can only be modified in the initial namespace. In other namespaces they can still be used as if they were set by the underlying hardware.

[PATCH net-next 6/6] net/smc: allow PCI IDs as ib device names in the pnet table

2019-02-21 Thread Ursula Braun
From: Hans Wippel SMC-D devices are identified by their PCI IDs in the pnet table. In order to make usage of the pnet table more consistent for users, this patch adds this form of identification for ib devices as well. Signed-off-by: Hans Wippel Signed-off-by: Ursula Braun --- net/smc/smc_pne

[PATCH net-next 3/6] net/smc: rework pnet table

2019-02-21 Thread Ursula Braun
From: Hans Wippel If a device does not have a pnetid, users can set a temporary pnetid for said device in the pnet table. This patch reworks the pnet table to make it more flexible. Multiple entries with the same pnetid but differing devices are now allowed. Additionally, the netlink interface no

[PATCH net-next 0/6] net/smc: patches 2019-02-21

2019-02-21 Thread Ursula Braun
Dave, here are patches for SMC: * patch 1 is a cleanup without functional change * patches 2-6 enhance SMC pnetid support Thanks, Ursula Hans Wippel (5): s390/net: convert pnetids to ascii net/smc: rework pnet table net/smc: add smcd support to the pnet table net/smc: add pnet table name

[PATCH net-next 2/6] s390/net: convert pnetids to ascii

2019-02-21 Thread Ursula Braun
From: Hans Wippel Pnetids are retrieved from the underlying hardware as EBCDIC. This patch converts pnetids to ASCII. Signed-off-by: Hans Wippel Signed-off-by: Ursula Braun --- arch/s390/net/pnet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/s390/net/pnet.c b/arch/s390/net/pne

[PATCH net-next 4/6] net/smc: add smcd support to the pnet table

2019-02-21 Thread Ursula Braun
From: Hans Wippel Currently, users can only set pnetids for netdevs and ib devices in the pnet table. This patch adds support for smcd devices to the pnet table. Signed-off-by: Hans Wippel Signed-off-by: Ursula Braun --- include/net/smc.h | 1 + net/smc/smc_pnet.c | 87 +

[PATCH net-next 1/6] net/smc: cleanup for smcr_tx_sndbuf_nonempty

2019-02-21 Thread Ursula Braun
Use local variable pflags from the beginning of function smcr_tx_sndbuf_nonempty Signed-off-by: Ursula Braun --- net/smc/smc_tx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/smc/smc_tx.c b/net/smc/smc_tx.c index a3bff08ff8c8..f0de323d15d6 100644 --- a/net/smc/smc

[PATCH bpf] Revert "xsk: simplify AF_XDP socket teardown"

2019-02-21 Thread Björn Töpel
From: Björn Töpel This reverts commit e2ce3674883ecba2605370404208c9d4a07ae1c3. It turns out that the sock destructor xsk_destruct was needed after all. The cleanup simplification broke the skb transmit cleanup path, due to that the umem was prematurely destroyed. The umem cannot be destroyed u

[PATCH] ip_tunnel: Add ip tunnel tunnel_info dst_cache in ip_tunnel_xmit

2019-02-21 Thread wenxu
From: wenxu ip l add dev tun type gretap key 1000 Non-tunnel-dst ip tunnel device can send packet through lwtunnel. This patch provide the tun_info dst cache support for this mode Signed-off-by: wenxu --- net/ipv4/ip_tunnel.c | 25 - 1 file changed, 20 insertions(+), 5

Re: [PATCH mlx5-next] net/mlx5: Separate ODP capabilities

2019-02-21 Thread Leon Romanovsky
On Tue, Feb 19, 2019 at 03:06:37PM +0200, Leon Romanovsky wrote: > From: Moni Shoua > > ODP support for XRC transport is not enabled by default in FW, > so we need separate ODP checks to enable/disable it. > > While that, rewrite the set of ODP SRQ support capabilities in way > that tests each fie

[PATCH net-next 1/2] devlink: Rename devlink health attributes

2019-02-21 Thread Eran Ben Elisha
From: Aya Levin Rename devlink health attributes for better reflect the attributes use. Add COUNT prefix on error counter attribute and recovery counter attribute. Fixes: 7afe335a8bed ("devlink: Add health get command") Signed-off-by: Aya Levin Signed-off-by: Eran Ben Elisha Acked-by: Jiri Pir

[PATCH net-next 0/2] Devlink health fixes series

2019-02-21 Thread Eran Ben Elisha
This series includes two small fixes from Aya for the devlink health infrastructure introduced earlier in this window. First patch rename some UAPI attributes to better reflect their use. Second patch reduces the amount of data passed from the devlink to the netlink layer upon get reporter command

[PATCH net-next 2/2] devlink: Modify reply of DEVLINK_CMD_HEALTH_REPORTER_GET

2019-02-21 Thread Eran Ben Elisha
From: Aya Levin Avoid sending attributes related to recovery: DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD and DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER in reply to DEVLINK_CMD_HEALTH_REPORTER_GET for a reporter which didn't register a recover operation. These parameters can't be configured on a

Re: [PATCH mlx5-next] net/mlx5: Separate ODP capabilities

2019-02-21 Thread Leon Romanovsky
On Thu, Feb 21, 2019 at 12:10:06PM +, Leon Romanovsky wrote: > On Tue, Feb 19, 2019 at 03:06:37PM +0200, Leon Romanovsky wrote: > > From: Moni Shoua > > > > ODP support for XRC transport is not enabled by default in FW, > > so we need separate ODP checks to enable/disable it. > > > > While tha

[PATCH][next] rsi: fix missing null pointer check from a failed ieee80211_probereq_get call

2019-02-21 Thread Colin King
From: Colin Ian King The call to ieee80211_probereq_get can return NULL if a skb allocation fails, so add a null pointer check and free an earlier skb on the error exit return path. Fixes: 7fdcb8e12660 ("rsi: add support for hardware scan offload") Signed-off-by: Colin Ian King --- drivers/net

[PATCH net-next v2 4/7] net/packet: Ask driver for protocol if not provided by user

2019-02-21 Thread Maxim Mikityanskiy
If a socket was created with socket(AF_PACKET, SOCK_RAW, 0), the protocol number is unavailable. Try to ask the driver to extract it from the L2 header in order for skb_try_probe_transport_header to succeed. Signed-off-by: Maxim Mikityanskiy --- net/packet/af_packet.c | 15 --- 1 fil

[PATCH net-next v2 2/7] net: Introduce parse_protocol header_ops callback

2019-02-21 Thread Maxim Mikityanskiy
Introduce a new optional header_ops callback called parse_protocol and a wrapper function dev_parse_header_protocol, similar to dev_parse_header. The new callback's purpose is to extract the protocol number from the L2 header, the format of which is known to the driver, but not to the upper layers

[PATCH net-next v2 3/7] net/ethernet: Add parse_protocol header_ops support

2019-02-21 Thread Maxim Mikityanskiy
The previous commit introduced parse_protocol callback which should extract the protocol number from the L2 header. Make all Ethernet devices support it. Signed-off-by: Maxim Mikityanskiy --- include/linux/etherdevice.h | 1 + net/ethernet/eth.c | 13 + 2 files changed, 14

[PATCH net-next v2 5/7] net/packet: Remove redundant skb->protocol set

2019-02-21 Thread Maxim Mikityanskiy
c72219b75f introduced tpacket_set_protocol that parses the Ethernet L2 header and sets skb->protocol if it's unset. It is no longer needed since the introduction of packet_parse_headers. In case of SOCK_RAW and unset skb->protocol, packet_parse_headers asks the driver to tell the protocol number, a

[PATCH net-next v2 7/7] net/mlx5e: Trust kernel regarding transport offset

2019-02-21 Thread Maxim Mikityanskiy
After AF_PACKET is fixed to calculate the transport header offset correctly, trust the value set by the kernel. If the offset wasn't set, it means there is no transport header in the packet. Signed-off-by: Maxim Mikityanskiy Reviewed-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/cor

[PATCH net-next v2 1/7] net: Don't set transport offset to invalid value

2019-02-21 Thread Maxim Mikityanskiy
If the socket was created with socket(AF_PACKET, SOCK_RAW, 0), skb->protocol will be unset, __skb_flow_dissect() will fail, and skb_probe_transport_header() will fall back to the offset_hint, making the resulting skb_transport_offset incorrect. If, however, there is no transport header in the pack

[PATCH net-next v2 0/7] AF_PACKET transport_offset fix

2019-02-21 Thread Maxim Mikityanskiy
This patch series contains the implementation of the RFC that was posted on this mailing list previously: https://www.spinics.net/lists/netdev/msg541709.html It fixes having incorrect skb->transport_header values in cases when dissect fails. Having correct values set by the kernel fixes mlx5 opera

[PATCH net-next v2 6/7] net/mlx5e: Remove the wrong assumption about transport offset

2019-02-21 Thread Maxim Mikityanskiy
skb_transport_offset() == 0 is not a special value. The only special value is when skb->transport_header is ~0U, and it's checked by skb_transport_header_was_set(). Signed-off-by: Maxim Mikityanskiy Reviewed-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 11 ++-

Re: [PATCH net-next 1/2] devlink: Rename devlink health attributes

2019-02-21 Thread Jiri Pirko
Thu, Feb 21, 2019 at 01:12:01PM CET, era...@mellanox.com wrote: >From: Aya Levin > >Rename devlink health attributes for better reflect the attributes use. >Add COUNT prefix on error counter attribute and recovery counter >attribute. > >Fixes: 7afe335a8bed ("devlink: Add health get command") >Sign

Re: [PATCH bpf-next v2] bpf, seccomp: fix false positive preemption splat for cbpf->ebpf progs

2019-02-21 Thread Jann Horn
On Thu, Feb 21, 2019 at 9:53 AM Daniel Borkmann wrote: > On 02/21/2019 06:31 AM, Kees Cook wrote: > > On Wed, Feb 20, 2019 at 8:03 PM Alexei Starovoitov > > wrote: > >> > >> On Wed, Feb 20, 2019 at 3:59 PM Alexei Starovoitov > >> wrote: > >>> > >>> On Thu, Feb 21, 2019 at 12:01:35AM +0100, Danie

[PATCH] dt-bindings: Add bindings for mdio mux consumers

2019-02-21 Thread Pankaj Bansal
When we use the bindings defined in Documentation/devicetree/bindings/mux to define mdio mux in producer and consumer terms, it results in two devices. one is mux producer and other is mux consumer. Add the bindings needed for Mdio mux consumer devices. Signed-off-by: Pankaj Bansal --- .../devi

[PATCH] drivers: net: phy: mdio-mux: Add support for Generic Mux controls

2019-02-21 Thread Pankaj Bansal
Add support for Generic Mux controls, when Mdio mux node is a consumer of mux produced by some other device. Signed-off-by: Pankaj Bansal --- drivers/net/phy/Kconfig| 1 + drivers/net/phy/mdio-mux.c | 81 2 files changed, 82 insertions(+) diff --git a/d

Re: [PATCH] net: dsa: add missing phy address offset

2019-02-21 Thread Andrew Lunn
> Thank you very much for your hints. Yes that works indeed too. I > just assumed it was intended to work automatically with the > built-in phys as it does with the other switches I am using. Hi Marcel The basic assumption is there is a one to one mapping of port number to PHY address. All the o

Re: [Bridge] [PATCH net] net: bridge: remove ipv6 zero address check in mcast queries

2019-02-21 Thread Nikolay Aleksandrov
On 21/02/2019 10:01, Hangbin Liu wrote: > Hi Linus, > > Sorry, my mail client somehow droped your message and I didn't see your reply. > I find this mail after Nikolay pointed out yesterday. > >> Hi and thanks for your reply! >> >> On Fri, Dec 14, 2018 at 10:32:16AM +0800, Ying Xu wrote: >>> I t

Re: m88e6390_config_aneg will always reset the phy

2019-02-21 Thread Andrew Lunn
On Thu, Feb 21, 2019 at 06:55:54PM +0800, Rundong Ge wrote: > Hi Andrew > > Before the "net: phy: marvell: Errata for mv88e6390 internal PHYs", > phydev will only be soft reset when register value was changed. > But after this patch, the phydev will always be reset when entering > the "m88e6390_co

Re: [PATCH] drivers: net: phy: mdio-mux: Add support for Generic Mux controls

2019-02-21 Thread Andrew Lunn
On Thu, Feb 21, 2019 at 01:00:44PM +, Pankaj Bansal wrote: > Add support for Generic Mux controls, when Mdio mux node is a consumer > of mux produced by some other device. > > Signed-off-by: Pankaj Bansal > --- > drivers/net/phy/Kconfig| 1 + > drivers/net/phy/mdio-mux.c | 81 ++

[PATCH net-next 4/5] net/mlx5e: Deletes unnecessary setting of esw_attr->parse_attr

2019-02-21 Thread xiangxia . m . yue
From: Tonghao Zhang This patch deletes unnecessary setting of the esw_attr->parse_attr to parse_attr in parse_tc_fdb_actions() because it is already done by the mlx5e_flow_esw_attr_init() function. Signed-off-by: Tonghao Zhang --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 1 - 1 file c

[PATCH net-next 2/5] net/mlx5e: Make the log friendly when decapsulation offload not supported

2019-02-21 Thread xiangxia . m . yue
From: Tonghao Zhang If we try to offload decapsulation actions to VFs hw, we get the log [1]. It's not friendly, because the kind of net device is null, and we don't know what '0' means. [1] "mlx5_core :05:01.2 vf_0: decapsulation offload is not supported for net device (0)" Signed-off-by

[PATCH v2 iproute2-next 10/11] devlink: Add devlink health set command

2019-02-21 Thread Aya Levin
Add devlink set command which enables the user to configure parameters related to the devlink health mechanism per reporter. 1) grace_period [msec] time interval between auto recoveries. 2) auto_recover [true/false] whether the devlink should execute automatic recover on error. Please note that thi

[PATCH v2 iproute2-next 08/11] devlink: Add devlink health dump show command

2019-02-21 Thread Aya Levin
Add devlink dump show command which displays the last saved dump. Devlink health saves a single dump. If a dump is not already stored by the devlink for this reporter, devlink generates a new dump. The dump can be generated automatically when a reporter reports on an error or manually by user's req

  1   2   3   4   >