Re: [PATCH resend 2/2] userns: control capabilities of some user namespaces

2017-11-05 Thread महेश बंडेवार
On Sat, Nov 4, 2017 at 4:53 PM, Serge E. Hallyn wrote: > > Quoting Mahesh Bandewar (mah...@bandewar.net): > > Init-user-ns is always uncontrolled and a process that has SYS_ADMIN > > that belongs to uncontrolled user-ns can create another (child) user- > > namespace that is

[PATCH net-next] net: netlink: Update attr validation to require exact length for some types

2017-11-05 Thread David Ahern
Attributes using NLA_U* and NLA_S* (where * is 8, 16,32 and 64) are expected to be an exact length. Split these data types from nla_attr_minlen into nla_attr_len and update validate_nla to require the attribute to have exact length for them. Signed-off-by: David Ahern ---

[PATCH net-next 1/3] net: neigh: Add helper to flush entries on carrier down

2017-11-05 Thread David Ahern
Add neigh_carrier_down helper to flush non-permanent entries on carrier down. Signed-off-by: David Ahern --- include/net/neighbour.h | 1 + net/core/neighbour.c| 26 ++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] reduce the spinlock conflict during massive connect

2017-11-05 Thread Eric Dumazet
On Mon, 2017-11-06 at 14:48 +0800, Liu Yu wrote: > On Mon, Nov 6, 2017 at 1:27 PM, Eric Dumazet wrote: > > On Mon, 2017-11-06 at 10:28 +0800, Liu Yu wrote: > >> From: Liu Yu > >> > >> When a mount of processes connect to the same port at the same

[PATCH net-next 2/3] net: ipv4: flush neighbor entries when carrier is off

2017-11-05 Thread David Ahern
Commit a6db4494d218c ("net: ipv4: Consider failed nexthops in multipath routes") added support for checking neighbor state when selecting a path for multipath route lookups. It works but incurs a delay waiting for the neighbor entry to timeout. Improve the path selection by flushing non-permanent

[PATCH net-next 0/3] net: flush neighbor entries when carrier is off

2017-11-05 Thread David Ahern
Commit a6db4494d218c ("net: ipv4: Consider failed nexthops in multipath routes") added support for checking neighbor state when selecting a path for multipath route lookups. It works but incurs a delay waiting for the neighbor entry to timeout. Improve the path selection by flushing non-permanent

[PATCH net-next 3/3] net: ipv6: flush neighbor entries when carrier is off

2017-11-05 Thread David Ahern
Similar to IPv4, flush non-permanent neighbor entries on carrier down to improve path selection for multipath routes. Signed-off-by: Satish Ashok Signed-off-by: David Ahern --- net/ipv6/addrconf.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH] reduce the spinlock conflict during massive connect

2017-11-05 Thread Liu Yu
On Mon, Nov 6, 2017 at 1:27 PM, Eric Dumazet wrote: > On Mon, 2017-11-06 at 10:28 +0800, Liu Yu wrote: >> From: Liu Yu >> >> When a mount of processes connect to the same port at the same address >> simultaneously, they are likely getting the same

Re: [PATCH] reduce the spinlock conflict during massive connect

2017-11-05 Thread Liu Yu
On Mon, Nov 6, 2017 at 12:12 PM, Cong Wang wrote: > On Sun, Nov 5, 2017 at 6:28 PM, Liu Yu wrote: >> - spin_lock_bh(>lock); >> + ret = spin_trylock(>lock); > > Clearly you want spin_trylock_bh() instead. Good catch!

[patch net-next 8/9] mlxsw: spectrum: Support RED xstats

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel Add support for ndo_setup_tc with enum tc_setup_type value of TC_SETUP_RED_XSTATS. This call returns the RED qdisc xstats from the cache if the handle ID that is asked for matching the root qdisc ID and fails otherwise. Signed-off-by: Nogah Frankel

[patch net-next 9/9] mlxsw: spectrum: Support general qdisc stats

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel Add support for ndo_setup_tc with enum tc_setup_type value of TC_SETUP_QDISC_STATS. This call updates the generic qdisc stats from the cache if the handle ID that is asked for matching the root qdisc ID and fails otherwise. Currently doesn't support qlen

[patch net-next 6/9] mlxsw: reg: Add ext and tc-cong counter groups

2017-11-05 Thread Jiri Pirko
From: Yuval Mintz This adds the counter group definitions for 2 new counter groups which are necessary for gaining ECN & wred counters. Signed-off-by: Yuval Mintz Signed-off-by: Nogah Frankel Signed-off-by: Jiri Pirko

[patch net-next 3/9] net_sch: cbs: Change TC_SETUP_CBS to TC_SETUP_QDISC_CBS

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel Change TC_SETUP_CBS to TC_SETUP_QDISC_CBS to match the new convention.. Signed-off-by: Nogah Frankel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/intel/igb/igb_main.c | 2 +- include/linux/netdevice.h

[patch net-next 7/9] mlxsw: spectrum: Collect tclass related stats periodically

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel Add more statistics to be collected from the HW periodically. These stats are tclass based (beside ECN marked packet, that exist only port based). They are needed to expose RED qdisc stats and xstats correctly. Signed-off-by: Nogah Frankel

[patch net-next 4/9] mlxsw: reg: Add cwtp & cwtpm registers

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel This patch adds 2 new registers: - Congestion WRED ECN TClass Profile Register [CWTP] - Congestion WRED ECN TClass and Pool Mapping Register [CWTPM] These registers would later be needed to offload RED-related functionality to the HW. Signed-off-by:

[patch net-next 5/9] mlxsw: spectrum: Support RED qdisc offload

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel Add support for ndo_setup_tc with enum tc_setup_type value of TC_SETUP_RED. This call sets RED qdisc on a traffic class. This patch supports RED qdisc only as a root qdisc and set in on the default tclass. It can be set with or without ECN.

[patch net-next 2/9] net_sch: mqprio: Change TC_SETUP_MQPRIO to TC_SETUP_QDISC_MQPRIO

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel Change TC_SETUP_MQPRIO to TC_SETUP_QDISC_MQPRIO to match the new convention. Signed-off-by: Nogah Frankel Signed-off-by: Jiri Pirko --- drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 2 +-

[patch net-next 1/9] net_sch: red: Add offload ability to RED qdisc

2017-11-05 Thread Jiri Pirko
From: Nogah Frankel Add the ability to offload RED qdisc by using ndo_setup_tc. There are four commands for RED offloading: * TC_RED_SET: handles set and change. * TC_RED_DESTROY: handle qdisc destroy. * TC_RED_STATS: update the qdiscs counters (given as reference) *

[patch net-next 0/9] qdisc RED offload

2017-11-05 Thread Jiri Pirko
From: Jiri Pirko Nogah says: Add an offload support for RED qdisc for mlxsw driver. The first patch adds the ability to offload RED qdisc by using ndo_setup_tc. It gives RED three commands, to offload, change or delete the qdisc, to get the qdisc generic stats and to get it's

[PATCH net-next V3 2/3] tools: bpftool: show filenames of pinned objects

2017-11-05 Thread Prashant Bhole
Added support to show filenames of pinned objects. For example: root@test# ./bpftool prog 3: tracepoint name tracepoint__irq tag f677a7dd722299a3 loaded_at Oct 26/11:39 uid 0 xlated 160B not jited memlock 4096B map_ids 4 pinned /sys/fs/bpf/softirq_prog 4: tracepoint name

[PATCH net-next V3 3/3] tools: bpftool: optionally show filenames of pinned objects

2017-11-05 Thread Prashant Bhole
Making it optional to show file names of pinned objects because it scans complete bpf-fs filesystem which is costly. Added option -f|--bpffs. Documentation updated. Signed-off-by: Prashant Bhole --- v2: - Change command line option from {-l|--pinned} to

[PATCH net-next V3 1/3] tools: bpftool: open pinned object without type check

2017-11-05 Thread Prashant Bhole
This was needed for opening any file in bpf-fs without knowing its object type Signed-off-by: Prashant Bhole --- v2: - No change v3: - No change tools/bpf/bpftool/common.c | 15 +-- tools/bpf/bpftool/main.h | 1 + 2 files changed, 14

[PATCH net-next V3 0/3] tools: bpftool: show filenames of pinned objects

2017-11-05 Thread Prashant Bhole
This patchset adds support to show pinned objects in object details. Patch1 adds a funtionality to open a path in bpf-fs regardless of its object type. Patch2 adds actual functionality by scanning the bpf-fs once and adding object information in hash table, with object id as a key. One object

Re: Bond recovery from BOND_LINK_FAIL state not working

2017-11-05 Thread Jarod Wilson
On 2017-11-02 9:11 PM, Jay Vosburgh wrote: Alex Sidorenko wrote: ...> I think I see the flaw in the logic. 1) bond_miimon_inspect finds link_state = 0, then makes a call to bond_propose_link_state(BOND_LINK_FAIL), setting link_new_state to

RE: [PATCH net-next V2 2/3] tools: bpftool: show filenames of pinned objects

2017-11-05 Thread Prashant Bhole
> From: Quentin Monnet [mailto:quentin.mon...@netronome.com] > > 2017-11-02 16:59 UTC+0900 ~ Prashant Bhole > > > Added support to show filenames of pinned objects. > > > > For example: > > > > […] > > > > > Signed-off-by: Prashant Bhole

[RFC 8/9] net: move adaptive interrpt coalescing code to lib/

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek This takes the code that is not generically named to lib/. This move allows drivers to add private structure elements to track the number of packets, bytes, and interrupts events per ring. A driver also defines a workqueue handler to act on this

[RFC 3/9] mlx5_en: remove rq references in mlx5e_rx_am

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek This makes mlx5e_am_sample more generic so that it can be called easily from a driver that does not use the same data structure to store these values in a single structure. Signed-off-by: Andy Gospodarek ---

[RFC 5/9] mlx5_en: move generic functions to new file

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek These functions were identified as ones that could be made generic and used by multiple drivers. Most of the contents of en_rx_am.c are moved to net_rx_am.c. Signed-off-by: Andy Gospodarek ---

[RFC 6/9] mlx5_en: rename en_rx_am.h to net_rx_am.h

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek This is so net_rx_am.h can be easily moved out of mlx5/core. Signed-off-by: Andy Gospodarek --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.h | 108

[RFC 4/9] mlx5_en: move AM logic enums

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek More movement to help make this code more generic. Signed-off-by: Andy Gospodarek --- drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c | 25 - drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.h | 26

[RFC 9/9] bnxt_en: add support for software adaptive interrupt moderation

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek This implements the changes needed for the bnxt_en driver to add support for adaptive interrupt moderation per ring. This does add additional counters in the receive path, but testing shows that any additional instructions are offset by throughput gain

[RFC 8/9] net: move adaptive interrupt coalescing code to lib/

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek This takes the code that is not generically named to lib/. This move allows drivers to add private structure elements to track the number of packets, bytes, and interrupts events per ring. A driver also defines a workqueue handler to act on this

[RFC 7/9] mlx5_en: remove Mellanox references in AM code

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek Remove all mlx5* and MLX* references to net_ and NET_, respectively in code that handles software interrupt moderation. Signed-off-by: Andy Gospodarek --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 7 +-

[RFC 1/9] mlx5_en: move interrupt moderation structs to new file

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek Create new header file to prepare to move code that handles irq moderation to a library. Signed-off-by: Andy Gospodarek --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 32 +-

[RFC 2/9] mlx5_en: move interrupt moderation forward delcarations

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek Move these to newly created file to prepare to move these functions to a library. Signed-off-by: Andy Gospodarek --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 4 drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.h |

[RFC 2/9] mlx5_en: move interrupt moderation forward declarations

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek Move these to newly created file to prepare to move these functions to a library. Signed-off-by: Andy Gospodarek --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 4 drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.h |

[RFC 0/9] net: create adaptive software irq moderation library

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek This RFC converts the adaptive interrupt moderation library from the mlx5_en driver into a library so it can be used by any driver. The last patch in this set adds support for interrupt moderation in the bnxt_en driver. The main purpose of this code in

[RFC 0/9] net: create adaptive software irq moderation library

2017-11-05 Thread Andy Gospodarek
From: Andy Gospodarek This RFC converts the adaptive interrupt moderation library from the mlx5_en driver into a library so it can be used by any driver. The last patch in this set adds support for interrupt moderation in the bnxt_en driver. The main purpose of this code in

Re: [PATCH net-next] bpf: Rename tcp_bbf.readme to tcp_bpf.readme

2017-11-05 Thread Daniel Borkmann
On 11/06/2017 03:44 AM, Lawrence Brakmo wrote: The original patch had the wrong filename. Fixes: bfdf75693875 ("bpf: create samples/bpf/tcp_bpf.readme") Signed-off-by: Lawrence Brakmo Acked-by: Daniel Borkmann

Re: [PATCH] reduce the spinlock conflict during massive connect

2017-11-05 Thread Eric Dumazet
On Mon, 2017-11-06 at 10:28 +0800, Liu Yu wrote: > From: Liu Yu > > When a mount of processes connect to the same port at the same address > simultaneously, they are likely getting the same bhash and therefore > conflict with each other. > > The more the cpu number, the

Re: [PATCH net-next] bpf: Rename tcp_bbf.readme to tcp_bpf.readme

2017-11-05 Thread Alexei Starovoitov
On 11/6/17 11:44 AM, Lawrence Brakmo wrote: The original patch had the wrong filename. Fixes: bfdf75693875 ("bpf: create samples/bpf/tcp_bpf.readme") Signed-off-by: Lawrence Brakmo Acked-by: Alexei Starovoitov

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-05 Thread Sandipan Das
Hi Alexei, Naveen, On 11/04/2017 11:01 PM, Naveen N. Rao wrote: > > I think the offsets described in dwarf were incorrect with > CONFIG_GCC_PLUGIN_RANDSTRUCT, but I'll let Sandipan confirm that. > I think that the offsets described in dwarf are probably incorrect when

Re: [PATCH net-next v15] openvswitch: enable NSH support

2017-11-05 Thread Yang, Yi
On Sat, Nov 04, 2017 at 10:29:46PM +0800, Pravin Shelar wrote: > On Tue, Oct 31, 2017 at 9:03 PM, Yi Yang wrote: > > +int nsh_push(struct sk_buff *skb, const struct nshhdr *pushed_nh) > > +{ > > + struct nshhdr *nh; > > + size_t length = nsh_hdr_len(pushed_nh); >

[PATCH net-next v16] openvswitch: enable NSH support

2017-11-05 Thread Yi Yang
v15->v16 - Add csum recalculation for nsh_push, nsh_pop and set_nsh pointed out by Pravin - Move nsh key into the union with ipv4 and ipv6 and add check for nsh key in match_validate pointed out by Pravin - Add nsh check in validate_set and __ovs_nla_copy_actions v14->v15 - Check size

Re: [PATCH] reduce the spinlock conflict during massive connect

2017-11-05 Thread Cong Wang
On Sun, Nov 5, 2017 at 6:28 PM, Liu Yu wrote: > - spin_lock_bh(>lock); > + ret = spin_trylock(>lock); Clearly you want spin_trylock_bh() instead.

[PATCH net-next] bpf: Rename tcp_bbf.readme to tcp_bpf.readme

2017-11-05 Thread Lawrence Brakmo
The original patch had the wrong filename. Fixes: bfdf75693875 ("bpf: create samples/bpf/tcp_bpf.readme") Signed-off-by: Lawrence Brakmo --- samples/bpf/{tcp_bbf.readme => tcp_bpf.readme} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename samples/bpf/{tcp_bbf.readme =>

Re: [PATCH net-next 4/6] net: hns3: add support for set_link_ksettings

2017-11-05 Thread lipeng (Y)
On 2017/11/4 3:52, Florian Fainelli wrote: On 11/02/2017 09:18 PM, Lipeng wrote: From: Fuyun Liang This patch adds set_link_ksettings support for ethtool cmd. Signed-off-by: Fuyun Liang Signed-off-by: Lipeng ---

[PATCH] reduce the spinlock conflict during massive connect

2017-11-05 Thread Liu Yu
From: Liu Yu When a mount of processes connect to the same port at the same address simultaneously, they are likely getting the same bhash and therefore conflict with each other. The more the cpu number, the worse in this case. Use spin_trylock instead for this scene,

RE: [PATCH net v5 2/2] net: fec: Let fec_ptp have its own interrupt routine

2017-11-05 Thread Andy Duan
From: Troy Kisky Sent: Saturday, November 04, 2017 1:30 AM >This is better for code locality and should slightly speed up normal >interrupts. > >This also allows PPS clock output to start working for i.mx7. This is because >i.mx7 was already using the limit of 3

Re: [PATCH] net/mlx5e/core/en_fs: fix pointer dereference after free in mlx5e_execute_l2_action

2017-11-05 Thread Gustavo A. R. Silva
Hi Saeed, Quoting Saeed Mahameed : On Sat, Nov 4, 2017 at 8:54 PM, Gustavo A. R. Silva wrote: hn is being kfree'd in mlx5e_del_l2_from_hash and then dereferenced by accessing hn->ai.addr Fix this by copying the MAC address into a local

[PATCHv2 net] bonding: discard lowest hash bit for 802.3ad layer3+4

2017-11-05 Thread Hangbin Liu
After commit 07f4c90062f8 ("tcp/dccp: try to not exhaust ip_local_port_range in connect()"), we will try to use even ports for connect(). Then if an application (seen clearly with iperf) opens multiple streams to the same destination IP and port, each stream will be given an even source port. So

Re: [PATCH net] bonding: discard lowest hash bit for 802.3ad layer3+4

2017-11-05 Thread Hangbin Liu
On Sun, Nov 05, 2017 at 01:38:47PM -0800, Eric Dumazet wrote: > > diff --git a/drivers/net/bonding/bond_main.c > > b/drivers/net/bonding/bond_main.c > > index c99dc59..728fa08 100644 > > --- a/drivers/net/bonding/bond_main.c > > +++ b/drivers/net/bonding/bond_main.c > > @@ -3237,7 +3237,7 @@ u32

Re: How to identify net namespace in kernel messages?

2017-11-05 Thread David Ahern
On 11/6/17 5:56 AM, Vasily Averin wrote: > On 2017-11-05 15:48, David Miller wrote: >> From: Vasily Averin >>> I doubt that pointer to freed net have value for someone except >>> developers, on the other hand it helps to speed up the problem >>> investigation. >> >> Any kernel

[PATCH v2 net-next 5/5] ila: Add ila.txt

2017-11-05 Thread Tom Herbert
Add documenation for kernel ILA. This describes ILA, features, configuration gives some examples. Signed-off-by: Tom Herbert --- Documentation/networking/ila.txt | 286 +++ 1 file changed, 286 insertions(+) create mode 100644

Re: [PATCH 4/4] RFC: net: dsa: realtek-smi: Add Realtek SMI driver

2017-11-05 Thread Andrew Lunn
Hi Linus > +static int realtek_smi_read_reg(struct realtek_smi *smi, u32 addr, u32 *data) > +{ > + unsigned long flags; > + u8 lo = 0; > + u8 hi = 0; > + int ret; > + > + spin_lock_irqsave(>lock, flags); > + > + realtek_smi_start(smi); > + > + /* send READ command */ >

[PATCH v2 net-next 4/5] ila: Add a hook type for LWT routes

2017-11-05 Thread Tom Herbert
In LWT tunnels both an input and output route method is defined. If both of these are executed in the same path then double translation happens and the effect is not correct. This patch adds a new attribute that indicates the hook type. Two values are defined for route output and route output.

[PATCH v2 net-next 3/5] ila: allow configuration of identifier type

2017-11-05 Thread Tom Herbert
Allow identifier to be explicitly configured for a mapping. This can either be one of the identifier types specified in the ILA draft or a value of ILA_ATYPE_USE_FORMAT which means the identifier type is inferred from the identifier type field. If a value other than ILA_ATYPE_USE_FORMAT is set for

[PATCH v2 net-next 1/5] ila: cleanup checksum diff

2017-11-05 Thread Tom Herbert
Consolidate computing checksum diff into one function. Add get_csum_diff_iaddr that computes the checksum diff between an address argument and locator being written. get_csum_diff calls this using the destination address in the IP header as the argument. Also moved ila_init_saved_csum to be

[PATCH v2 net-next 0/5] ila: make identifier format optional and other fixes

2017-11-05 Thread Tom Herbert
The identifier type and checksum neutral mapping bits are optional in identifier formats. This patch set fixes the implementation to make them optional and configurable. Specific items: - Clean up checksum diff code in ILA - Add checksum neutral mapping auto so that checksum neutral

[PATCH v2 net-next 2/5] ila: add checksum neutral map auto

2017-11-05 Thread Tom Herbert
Add checksum neutral auto that performs checksum neutral mapping without using the C-bit. This is enabled by configuration of a mapping. The checksum neutral function has been split into ila_csum_do_neutral_fmt and ila_csum_do_neutral_nofmt. The former handles the C-bit and includes it in the

Re: [PATCH] NFC: fix device-allocation error return

2017-11-05 Thread Samuel Ortiz
Hi Johan, On Sun, Jul 09, 2017 at 01:08:58PM +0200, Johan Hovold wrote: > A recent change fixing NFC device allocation itself introduced an > error-handling bug by returning an error pointer in case device-id > allocation failed. This is clearly broken as the callers still expected > NULL to be

Re: [PATCH 3/4] RFC: net: dsa: Add bindings for Realtek SMI DSAs

2017-11-05 Thread Andrew Lunn
> This interrupt construction is similar to how we handle > interrupt controllers inside PCI bridges etc. Hi Linus Your interrupt handling is going in the right direction, but needs further work. The PHY interrupt is a phy property, so should be in the PHY node in device tree. The Marvell

[PATCH 1/4] RFC: net/dsa: Allow DSA PHYs to define link IRQs

2017-11-05 Thread Linus Walleij
PHYs attached to DSAs may provide IRQs from GPIOs or other interrupt controllers in the device tree. For these cases, we need to go and grab the IRQ before registering the slave so the PHY core can grab and enable this IRQ. Cc: Antti Seppälä Cc: Roman Yeryomin

[PATCH 4/4] RFC: net: dsa: realtek-smi: Add Realtek SMI driver

2017-11-05 Thread Linus Walleij
This adds a driver core for the Realtek SMI chips and a subdriver for the RTL8366RB. I just added this chip simply because it is all I can test. The code is a massaged variant of the code that has been sitting out-of-tree in OpenWRT for years in the absence of a proper switch subsystem. I have

[PATCH 3/4] RFC: net: dsa: Add bindings for Realtek SMI DSAs

2017-11-05 Thread Linus Walleij
The Realtek SMI family is a set of DSA chips that provide switching in routers. This binding just follows the pattern set by other switches but with the introduction of an embedded irqchip to demux and handle the interrupts fired by the single line from the chip. This interrupt construction is

[PATCH 2/4] RFC: net: phy: realtek: Support RTL8366RB variant

2017-11-05 Thread Linus Walleij
The RTL8366RB is an ASIC with five internal PHYs for LAN0..LAN3 and WAN. The PHYs are spawn off the main device so they can be handled in a distributed manner by the Realtek PHY driver. All that is really needed is the power save feature enablement and letting the PHY driver core pick up the IRQ

[PATCH 0/4] RFC: Realtek 83xx SMI driver core

2017-11-05 Thread Linus Walleij
Hi folks, I'm working a bit on this. Since DSA is big, complex and hard for a novice I just wanted to throw what I have in my tree out there so you can take a look at how I hacked this up and give me some help how to continue. I am running it for trials on the D-Link DIR-685 and it looks fun,

Re: [PATCH net] bonding: discard lowest hash bit for 802.3ad layer3+4

2017-11-05 Thread Eric Dumazet
On Sun, Nov 5, 2017 at 6:56 AM, Hangbin Liu wrote: > After commit 07f4c90062f8 ("tcp/dccp: try to not exhaust ip_local_port_range > in connect()"), we will try to use even ports for connect(). Then If an > application (seen clearly with iperf) opens multiple streams to the

How to identify net namespace in kernel messages?

2017-11-05 Thread Vasily Averin
On 2017-11-05 15:48, David Miller wrote: > From: Vasily Averin >> I doubt that pointer to freed net have value for someone except >> developers, on the other hand it helps to speed up the problem >> investigation. > > Any kernel pointer printed has value to attackers. David,

Removal of IrDA

2017-11-05 Thread Petr Cvek
Hello, I got a time to update from v4.10 to v4.14-rc and I've found IrDA is in the staging (and it is scheduled to be removed). I'm still using the driver nsc-ircc on Thinkpad T60p and the driver pxaficp_ir (I have some kingsun-sir dongles and an use for irtty-sir too). Actually I'm pretty

Kopie von: "Re:禹娄越

2017-11-05 Thread MOVIDA
Dieses ist eine Kopie der folgenden Nachricht, die an Contact Movida International via MOVIDA gesendet wurde: Dies ist eine Mailanfrage via https://movida-net.com/ von: 竺那姜 周末优惠不打烊,狂享加赠得意金! 每逢周六、周日,任意进行电子游艺游戏,次日即享加赠得意金,最高11000元。让您兴致连连,无比得意! 老牌信誉,大额无忧: www.6660605.com/?

Re: [PATCH 06/21] nfs client: exit_net cleanup check added

2017-11-05 Thread Trond Myklebust
On Sun, 2017-11-05 at 19:48 +0300, Vasily Averin wrote: > On 2017-11-05 19:02, Trond Myklebust wrote: > > On Sun, 2017-11-05 at 13:00 +0300, Vasily Averin wrote: > > > Be sure that nfs_client_list and nfs_volume_list lists > > > initialized > > > in net_init hook were return to initial state in

[net-next:master 2025/2045] net/dsa/dsa2.c:659:7: error: implicit declaration of function 'of_property_read_variable_u32_array'

2017-11-05 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 2798b80b385384d51a81832556ee9ad25d175f9b commit: 975e6e32215e6cbc09b65d762865b1a46e8e9103 [2025/2045] net: dsa: rework switch parsing config: x86_64-randconfig-u0-11060023 (attached as .config) compiler:

[PATCH net-next 2/3] ip6_gre: Refactor ip6gre xmit codes

2017-11-05 Thread William Tu
This patch refactors the ip6gre_xmit_{ipv4, ipv6}. It is a prep work to add the ip6erspan tunnel. Signed-off-by: William Tu --- net/ipv6/ip6_gre.c | 124 - 1 file changed, 76 insertions(+), 48 deletions(-) diff --git

[PATCH net-next 1/3] ip_gre: Refector the erpsan tunnel code.

2017-11-05 Thread William Tu
Move two erspan functions to header file, erspan.h, so ipv6 erspan implementation can use it. Signed-off-by: William Tu --- include/net/erspan.h | 51 + net/ipv4/ip_gre.c| 54

[PATCH net-next 3/3] ip6_gre: Add ERSPAN native tunnel support

2017-11-05 Thread William Tu
The patch adds support for ERSPAN tunnel over ipv6. Signed-off-by: William Tu --- include/net/ip6_tunnel.h | 1 + net/ipv6/ip6_gre.c | 266 ++- 2 files changed, 263 insertions(+), 4 deletions(-) diff --git

[PATCH net-next 0/3] ip6_gre: add erspan native tunnel for ipv6

2017-11-05 Thread William Tu
The patch series add support for ERSPAN tunnel over ipv6. The first patch refectors the existing ipv4 gre implementation and the second refactors the ipv6 gre's xmit code. Finally the last patch introduces erspan protocol. William Tu (3): ip_gre: Refector the erpsan tunnel code. ip6_gre:

[PATCH net-next iproute2] ip6_gre: add support for ERSPAN tunnel

2017-11-05 Thread William Tu
The patch adds ERSPAN type II tunnel support for IPv6. Signed-off-by: William Tu --- ip/ipaddress.c | 5 +++-- ip/iplink.c | 6 +++--- ip/link_gre6.c | 28 +++- man/man8/ip-address.8.in | 1 + man/man8/ip-link.8.in

[PATCH v2 21/21] sunrpc: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that all_clients list initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/sunrpc/sunrpc_syms.c | 4 1 file changed, 4 insertions(+) diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c index

[PATCH v2 20/21] phonet: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that pndevs.list initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/phonet/pn_dev.c | 4 1 file changed, 4 insertions(+) diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index 2cb4c5d..81b4eb0 100644 ---

[PATCH v2 19/21] packet: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that packet.sklist initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/packet/af_packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index bec01a3..7ceb97c 100644

[PATCH v2 18/21] recent: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that tables list initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/netfilter/xt_recent.c | 4 1 file changed, 4 insertions(+) diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c index 245fa35..230d00f

[PATCH v2 17/21] hashlimit: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that htables array initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/netfilter/xt_hashlimit.c | 4 1 file changed, 4 insertions(+) diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c index

[PATCH v2 16/21] x_tables: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that xt.tables array initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/netfilter/x_tables.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index

[PATCH v2 14/21] nfnetlink_log: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that instance_table array initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/netfilter/nfnetlink_log.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c

[PATCH v2 13/21] nf_tables: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that lists initialized in net_init hook were return to initial state. Signed-off-by: Vasily Averin --- net/netfilter/nf_tables_api.c | 9 + 1 file changed, 9 insertions(+) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index

[PATCH v2 15/21] nfnetlink_gueue: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that instance_table array initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/netfilter/nfnetlink_queue.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/net/netfilter/nfnetlink_queue.c

[PATCH v2 09/21] clusterip: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that configs list initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/ipv4/netfilter/ipt_CLUSTERIP.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c

[PATCH v2 11/21] af_key: replace BUG_ON on WARN_ON in net_exit hook

2017-11-05 Thread Vasily Averin
Signed-off-by: Vasily Averin --- net/key/af_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/key/af_key.c b/net/key/af_key.c index a00d607..3dffb89 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -3845,7 +3845,7 @@ static void __net_exit

[PATCH v2 12/21] l2tp: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that l2tp_session_hlist array initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/l2tp/l2tp_core.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c index 02d6110..1136341

[PATCH v2 10/21] xfrm6_tunnel: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that spi_byaddr and spi_byspi arrays initialized in net_init hook were return to initial state Signed-off-by: Vasily Averin --- net/ipv6/xfrm6_tunnel.c | 12 1 file changed, 12 insertions(+) diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c

[PATCH v2 08/21] fib_rules: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that rules_ops list initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/core/fib_rules.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 9a6d97c..5ab4fac 100644

[PATCH v2 07/21] fib_notifier: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that fib_notifier_ops list initilized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- net/core/fib_notifier.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/net/core/fib_notifier.c b/net/core/fib_notifier.c index

[PATCH v2 06/21] nfs client: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that nfs_client_list and nfs_volume_list lists initialized in net_init hook were return to initial state in net_exit hook. Signed-off-by: Vasily Averin --- fs/nfs/client.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index

[PATCH v2 05/21] nfs4blocklayout: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that bl_wq wait queue initialized in net_init hook is not used anymore. Signed-off-by: Vasily Averin --- fs/nfs/blocklayout/rpc_pipefs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/nfs/blocklayout/rpc_pipefs.c b/fs/nfs/blocklayout/rpc_pipefs.c index

[PATCH v2 02/21] ppp: exit_net cleanup checks added

2017-11-05 Thread Vasily Averin
Be sure that lists initialized in net_init hook were return to initial state. Signed-off-by: Vasily Averin --- drivers/net/ppp/ppp_generic.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index

[PATCH v2 04/21] netdev: exit_net cleanup check added

2017-11-05 Thread Vasily Averin
Be sure that dev_base_head list initialized in net_init hook was return to initial state Signed-off-by: Vasily Averin --- net/core/dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 588b473..198f137 100644 --- a/net/core/dev.c

[PATCH v2 01/21] exit_net cleanup: geneve sock_list check

2017-11-05 Thread Vasily Averin
Be sure that sock_list initialized in net_init hook was return to initial state. Signed-off-by: Vasily Averin --- drivers/net/geneve.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index f640407..dece711 100644 ---

[PATCH v2 03/21] vxlan: exit_net cleanup checks added

2017-11-05 Thread Vasily Averin
Be sure that sock_list array initialized in net_init hook was return to initial state Signed-off-by: Vasily Averin --- drivers/net/vxlan.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index d7c49cf..f72c1de 100644 ---

[PATCH v2 00/21] exit_net checks for objects initialized in net_init hook

2017-11-05 Thread Vasily Averin
This patch set checks that lists initialized in net_init hooks were return to initial state at end of net_exit hooks. I hope such checks allows to detect leaked per-netns objects. Also I hope that all new pernet_operations will inherit such checks too. I assume that elements added into per-net

  1   2   >