Re: [PATCH] e1000e: Fix e1000_check_for_copper_link_ich8lan return value.

2018-01-14 Thread Greg KH
On Wed, Jan 10, 2018 at 10:34:43AM +0900, Benjamin Poirier wrote: > On 2018/01/10 01:29, rwar...@gmx.de wrote: > > hallo > > > > any chance to get this patch into stable and 4.15 ? > > > > https://marc.info/?l=linux-kernel=151297726823919=2 > > > > It was part of the last network pull request

[PATCH] kernel:bpf Remove structure passing and assignment to save stack and no coping structures

2018-01-14 Thread Karim Eshapa
>> Use pointers to structure as arguments to function instead of coping >> structures and less stack size. Also transfer TNUM(_v, _m) to >> tnum.h file to be used in differnet files for creating anonymous structures >> statically. >> >> Signed-off-by: Karim Eshapa ... >>

[patch net-next v2 5/5] mlxsw: spectrum: qdiscs: Support stats for PRIO qdisc

2018-01-14 Thread Jiri Pirko
From: Nogah Frankel Support basic stats for PRIO qdisc, which includes tx packets and bytes count, drops count and backlog size. The rest of the stats are irrelevant for this qdisc offload. Since backlog is not only incremental but reflecting momentary value, in case of a

[patch net-next v2 1/5] mlxsw: reg: add rdpm register

2018-01-14 Thread Jiri Pirko
From: Yuval Mintz Add rdpm definition - router DSCP to priority mapping register. This register will be utilized later to align the default mapping between packet DSCP and switch-priority to the kernel's mapping between packet priority and skb priority. This is the first

[patch net-next v2 3/5] net: sch: prio: Add offload ability to PRIO qdisc

2018-01-14 Thread Jiri Pirko
From: Nogah Frankel Add the ability to offload PRIO qdisc by using ndo_setup_tc. There are three commands for PRIO offloading: * TC_PRIO_REPLACE: handles set and tune * TC_PRIO_DESTROY: handles qdisc destroy * TC_PRIO_STATS: updates the qdiscs counters (given as reference)

Re: [net 02/11] net/mlx5: Fix get vector affinity helper function

2018-01-14 Thread Sagi Grimberg
Hi Saeed, mlx5_get_vector_affinity used to call pci_irq_get_affinity and after reverting the patch that sets the device affinity via PCI_IRQ_AFFINITY API, calling pci_irq_get_affinity becomes useless and it breaks RDMA mlx5 users. To fix this, this patch provides an alternative way to retrieve

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-14 Thread Tariq Toukan
Thanks Jianchao for your patch. And Thank you guys for your reviews, much appreciated. I was off-work on Friday and Saturday. On 14/01/2018 4:40 AM, jianchao.wang wrote: Dear all Thanks for the kindly response and reviewing. That's really appreciated. On 01/13/2018 12:46 AM, Eric Dumazet

[PATCH net-next v3] xfrm: Add ESN support for IPSec HW offload

2018-01-14 Thread yossefe
From: Yossef Efraim This patch adds ESN support to IPsec device offload. Adding new xfrm device operation to synchronize device ESN. Signed-off-by: Yossef Efraim --- Changes from v1: - Added documentation Changes from v2: - Due to Shannon Nelson's

[PATCH v2 net-next 0/5] l2tp: set l2specific_len based on l2specific_type

2018-01-14 Thread Lorenzo Bianconi
Do not rely on l2specific_len value provided by userspace but set sublayer length according to l2specific_type. Fix a harmless issue in the switch default case in l2tp_nl_cmd_session_create(). Changes since v1: - remove l2specific_len parameter - add sanity check on l2specific_type provided by

[PATCH v2 net-next 3/5] l2tp: remove l2specific_len dependency in l2tp_core

2018-01-14 Thread Lorenzo Bianconi
Remove l2specific_len dependency while building l2tpv3 header or parsing the received frame since default L2-Specific Sublayer is always four bytes long and we don't need to rely on a user supplied value. Moreover in l2tp netlink code there are no sanity checks to enforce the relation between

[PATCH v2 net-next 5/5] l2tp: mark L2TP_ATTR_L2SPEC_LEN as not used

2018-01-14 Thread Lorenzo Bianconi
Signed-off-by: Lorenzo Bianconi --- include/uapi/linux/l2tp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/l2tp.h b/include/uapi/linux/l2tp.h index 71e62795104d..7d570c7bd117 100644 --- a/include/uapi/linux/l2tp.h +++

[PATCH v2 net-next 4/5] l2tp: remove l2specific_len configurable parameter

2018-01-14 Thread Lorenzo Bianconi
Remove l2specific_len configuration parameter since now L2-Specific Sublayer length is computed according to l2specific_type provided by userspace. Signed-off-by: Lorenzo Bianconi --- net/l2tp/l2tp_core.c| 1 - net/l2tp/l2tp_core.h| 2 --

[PATCH v2 net-next 1/5] l2tp: fix switch default error handling in l2tp_nl_cmd_session_create()

2018-01-14 Thread Lorenzo Bianconi
Although this issue is harmless since that code path is protected by the check on l2tp_nl_cmd_ops[]/l2tp_nl_cmd_ops[]->session_create(), fix error handling for L2TP_PWTYPE_IP/default case in l2tp_nl_cmd_session_create() Signed-off-by: Lorenzo Bianconi ---

[PATCH v2 net-next 2/5] l2tp: double-check l2specific_type provided by userspace

2018-01-14 Thread Lorenzo Bianconi
Add sanity check on l2specific_type provided by userspace in l2tp_nl_cmd_session_create() since just L2TP_L2SPECTYPE_DEFAULT and L2TP_L2SPECTYPE_NONE are currently supported. Moreover do not always initialize l2specific_type if userspace requests a given l2-specific sublayer type Signed-off-by:

Congratulations

2018-01-14 Thread mikhail fridman
-- Dear Congratulation i have selected you Just as I have declared on May 23, 2016 to give my fortune as charity get back to me now. Best Regards mikhail fridman

Re: [PATCH] [net-next] net: netsec: use dma_addr_t for storing dma address

2018-01-14 Thread David Miller
From: Arnd Bergmann Date: Sat, 13 Jan 2018 22:13:44 +0100 > On targets that have different sizes for phys_addr_t and dma_addr_t, > we get a type mismatch error: > > drivers/net/ethernet/socionext/netsec.c: In function 'netsec_alloc_dring': >

Re: divide error in ___bpf_prog_run

2018-01-14 Thread David Miller
From: Daniel Borkmann Date: Sun, 14 Jan 2018 01:16:17 +0100 > Will get them in as soon as DaveM pulled the current batch into net. This is now done.

[PATCH v2] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Dominik Brodowski
As ieee80211_bss_get_ie() derefences an RCU, it needs to be called with rcu_read_lock held. Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") Signed-off-by: Dominik Brodowski --- > This uses the ssid_ie, so that doesn't really seem right?

Re: [PATCH 13/38] ext4: Define usercopy region in ext4_inode_cache slab cache

2018-01-14 Thread Matthew Wilcox
On Thu, Jan 11, 2018 at 03:05:14PM -0800, Kees Cook wrote: > On Thu, Jan 11, 2018 at 9:01 AM, Theodore Ts'o wrote: > > On Wed, Jan 10, 2018 at 06:02:45PM -0800, Kees Cook wrote: > >> The ext4 symlink pathnames, stored in struct ext4_inode_info.i_data > >> and therefore contained in

linux-next: manual merge of the bpf-next tree with Linus' tree

2018-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: arch/x86/lib/Makefile between commit: 76b043848fd2 ("x86/retpoline: Add initial retpoline support") from Linus' tree and commit: 540adea3809f ("error-injection: Separate error-injection from kprobe") from the

[PATCH net-next 1/2] cxgb4: rework on-chip memory read

2018-01-14 Thread Rahul Lakkireddy
Export callback to register supported intrinsic instructions to speed up reading EDC and MC. By default, use 32-bit reads. Also rework logic to read EDC and MC. Signed-off-by: Rahul Lakkireddy Signed-off-by: Ganesh Goudar ---

[PATCH net-next 2/2] cxgb4: speed up on-chip memory read

2018-01-14 Thread Rahul Lakkireddy
Register and use AVX CPU intrinsic instructions when available to do 256-bit reads to speed up reading EDC and MC. Otherwise, fallback to 32-bit reads. Also align destination buffer on 32-byte boundary. Signed-off-by: Rahul Lakkireddy Signed-off-by: Ganesh Goudar

[PATCH net-next 0/2] cxgb4: speed up reading on-chip memory

2018-01-14 Thread Rahul Lakkireddy
This series of patches speed up reading on-chip memory (EDC and MC) by using AVX intrinsic instructions when available. Patch 1 exports callback to register supported intrinsic instructions when available. Also rework logic to read EDC and MC. Patch 2 adds AVX CPU intrinsic instructions to read

[PATCH net-next] kcm: do not attach sockets if sk_user_data is already used

2018-01-14 Thread James Chapman
SIOCKCMATTACH writes a connected socket's sk_user_data for its own use. Prevent it doing so if the socket's sk_user_data is already set since some sockets (e.g. encapsulated sockets) use sk_user_data internally. This issue was found by syzbot. kernel BUG at net/l2tp/l2tp_ppp.c:176! invalid

[patch net-next v2 0/5] mlxsw: Offload PRIO qdisc

2018-01-14 Thread Jiri Pirko
From: Jiri Pirko Nogah says: Add an offload support for PRIO qdisc for mlxsw driver. PRIO qdisc is being offloaded by using ndo_setup_tc. It has three commands, to set or tune the qdisc, to remove it and to get its stats. Like RED offloading, offloading this qdisc is not

[patch net-next v2 2/5] mlxsw: spectrum_router: Configure default routing priority

2018-01-14 Thread Jiri Pirko
From: Yuval Mintz When routing ip packets, the kernel is setting the SKB's priority based on the tos field of the packet. Imitate this behavior in the mlxsw router, having the internal switch priority of a routed packet determined according to its DS field. Signed-off-by:

[patch net-next v2 4/5] mlxsw: spectrum: qdiscs: Support PRIO qdisc offload

2018-01-14 Thread Jiri Pirko
From: Nogah Frankel Add support for offloading PRIO qdisc as root qdisc. The support is for up to 8 bands. Routed packets priority is determined by the DSCP field with the default translations. Bridged packets priority is determined by the PCP field, if exist, otherwise it

Re: [PATCH net-next 1/2] net: netfilter: export xt_policy match_policy_in() as xt_policy_match_policy_in()

2018-01-14 Thread Eyal Birger
On Fri, Jan 12, 2018 at 4:00 PM, Pablo Neira Ayuso wrote: > On Fri, Jan 12, 2018 at 03:56:21PM +0200, Eyal Birger wrote: >> On Fri, Jan 12, 2018 at 3:41 PM, Pablo Neira Ayuso >> wrote: >> > On Fri, Jan 12, 2018 at 02:57:24PM +0200, Eyal Birger wrote: >>

[RFT net-next v4 3/5] net: stmmac: dwmac-meson8b: fix internal RGMII clock configuration

2018-01-14 Thread Martin Blumenstingl
Tests (using an oscilloscope and an Odroid-C1 board with a RTL8211F RGMII PHY) have shown that the PRG_ETH0 register behaves as follows: - bit 4 is a mux to choose between two parent clocks. according to the public S805 datasheet the only supported parent clock is MPLL2 (this was not verified

[RFT net-next v4 0/5] dwmac-meson8b: clock fixes for Meson8b

2018-01-14 Thread Martin Blumenstingl
Hi Dave, please do not apply this series until it got a Tested-by from Emiliano. Hi Emiliano, you reported [0] that you couldn't get dwmac-meson8b to work on your Odroid-C1. With your findings (register dumps, clk_summary output, etc.) I think I was able to find a fix: it consists of two

[RFT net-next v4 5/5] net: stmmac: dwmac-meson8b: propagate rate changes to the parent clock

2018-01-14 Thread Martin Blumenstingl
On Meson8b the only valid input clock is MPLL2. The bootloader configures that to run at 52394Hz which cannot be divided evenly down to 125MHz using the m250_div clock. Currently the common clock framework chooses a m250_div of 2 - with the internal fixed "divide by 10" this results in a RGMII

[RFT net-next v4 1/5] net: stmmac: dwmac-meson8b: only configure the clocks in RGMII mode

2018-01-14 Thread Martin Blumenstingl
Neither the m25_div_clk nor the m250_div_clk or m250_mux_clk are used in RMII mode. The m25_div_clk output is routed to the RGMII PHY's "RGMII clock". This means that we don't need to configure the clocks in RMII mode. The driver however did this - with no effect since the clocks are not routed to

[RFT net-next v4 2/5] net: stmmac: dwmac-meson8b: simplify generating the clock names

2018-01-14 Thread Martin Blumenstingl
Instead of using a custom buffer, snprintf() and devm_kstrdup() we can simplify this by using devm_kasprintf(). No functional changes - this just makes the code shorter. Signed-off-by: Martin Blumenstingl ---

[RFT net-next v4 4/5] net: stmmac: dwmac-meson8b: fix setting the RGMII TX clock on Meson8b

2018-01-14 Thread Martin Blumenstingl
Meson8b only supports MPLL2 as clock input. The rate of the MPLL2 clock set by Odroid-C1's u-boot is close to (but not exactly) 500MHz. The exact rate is 52394Hz, which is calculated in drivers/clk/meson/clk-mpll.c using the following formula: DIV_ROUND_UP_ULL((u64)parent_rate * SDM_DEN,

Re: [PATCH] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Johannes Berg
Hi, > Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") > Signed-off-by: Dominik Brodowski > --- > > This patch fixes the regression I reported in the last couple of weeks for > various v4.15-rcX revisions to netdev, where a "suspicious RCU

Re: [PATCH bpf] bpf: fix 32-bit divide by zero

2018-01-14 Thread Daniel Borkmann
On 01/13/2018 03:59 AM, Alexei Starovoitov wrote: > due to some JITs doing if (src_reg == 0) check in 64-bit mode > for div/mod opreations mask upper 32-bits of src register > before doing the check > > Fixes: 622582786c9e ("net: filter: x86: internal BPF JIT") > Fixes: 7a12b5031c6b ("sparc64:

Re: [PATCH v2] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Johannes Berg
On Sun, 2018-01-14 at 23:22 +0100, Dominik Brodowski wrote: > > + rcu_read_lock(); > ssid_ie = ieee80211_bss_get_ie(>current_bss->pub, > WLAN_EID_SSID); > if (!ssid_ie) > - break; nit-picking

Re: [PATCH bpf-next v2 07/15] bpf: offload: add map offload infrastructure

2018-01-14 Thread Daniel Borkmann
Hi Jakub, Series looks fine, just stumbled over one small thing here below. On 01/12/2018 05:29 AM, Jakub Kicinski wrote: [...] > +bool bpf_offload_dev_match(struct bpf_prog *prog, struct bpf_map *map) > +{ > + struct bpf_offloaded_map *offmap; > + struct bpf_prog_offload *offload; > +

Re: [PATCH bpf-next v2 07/15] bpf: offload: add map offload infrastructure

2018-01-14 Thread Daniel Borkmann
On 01/15/2018 12:52 AM, Jakub Kicinski wrote: > On Sun, Jan 14, 2018 at 3:37 PM, Daniel Borkmann wrote: >> Hi Jakub, >> >> Series looks fine, just stumbled over one small thing here below. >> >> On 01/12/2018 05:29 AM, Jakub Kicinski wrote: >> [...] >>> +bool

Re: [patch net-next] mlxsw: spectrum_router: Add support for IPv6 non-equal-cost multipath

2018-01-14 Thread David Miller
From: Jiri Pirko Date: Fri, 12 Jan 2018 17:15:59 +0100 > From: Ido Schimmel > > Since commit eb789980d0aa ("mlxsw: spectrum_router: Populate adjacency > entries according to weights") the driver includes support for > non-equal-cost multipath, but IPv4

Re: [PATCH 2/2] ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY

2018-01-14 Thread David Miller
From: Jim Westfall Date: Sat, 13 Jan 2018 16:01:39 -0800 > > + if(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) There must be a space between 'if' and the opennening parenthesis. Please do not just repost this patch to fix this problem, you must repost the

Re: [PATCH net-next 0/2] cxgb4: speed up reading on-chip memory

2018-01-14 Thread David Miller
From: Rahul Lakkireddy Date: Sun, 14 Jan 2018 15:02:03 +0530 > This series of patches speed up reading on-chip memory (EDC and MC) > by using AVX intrinsic instructions when available. > > Patch 1 exports callback to register supported intrinsic instructions > when

[PATCH 0/2] sh_eth: simplify TSU initialization

2018-01-14 Thread Sergei Shtylyov
Hello! Here's a set of 2 patches against DaveM's 'net-next.git' repo. With those, I'm somewhat simplifying the TSU init code in the driver probe() method... [1/2] sh_eth: gather all TSU init code in one place [2/2] sh_eth: get Ether port # only when needed MBR, Sergei

[PATCH 1/2] sh_eth: gather all TSU init code in one place

2018-01-14 Thread Sergei Shtylyov
The sh_eth_cpu_data::chip_reset() method always resets using ARSTR and this register is always located at the start of the TSU register region. Therefore, we can only call this method if we know TSU is there and thus simplify the probing code a bit... Signed-off-by: Sergei Shtylyov

[PATCH] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Dominik Brodowski
As ieee80211_bss_get_ie() derefences an RCU, it needs to be called with rcu_read_lock held. Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") Signed-off-by: Dominik Brodowski --- This patch fixes the regression I reported in the last couple

Re: [PATCH 02/38] usercopy: Enhance and rename report_usercopy()

2018-01-14 Thread Kees Cook
On Thu, Jan 11, 2018 at 9:06 AM, Christopher Lameter wrote: > On Wed, 10 Jan 2018, Kees Cook wrote: > >> diff --git a/mm/slab.h b/mm/slab.h >> index ad657ffa44e5..7d29e69ac310 100644 >> --- a/mm/slab.h >> +++ b/mm/slab.h >> @@ -526,4 +526,10 @@ static inline int

[PATCH 2/2] sh_eth: get Ether port # only when needed

2018-01-14 Thread Sergei Shtylyov
The dual-port Ether configurations always have a shared TSU to e.g. pass the packets between those ports. With the TSU init. code gathered under the single *if*, we now can only get the port # from 'platform_device::id' only when we actually need it (and not recalculate it each time)...

Re: [PATCH v2] net: phy: Have __phy_modify return 0 on success

2018-01-14 Thread David Miller
From: Andrew Lunn Date: Sun, 14 Jan 2018 19:04:11 +0100 > Is there any particular reason you have not picked up this patch? Do > you want more testing? An O.K. from Russell? I just haven't gotten to it yet, and it's the weekend, so...

Re: [PATCH] kernel:bpf Remove structure passing and assignment to save stack and no coping structures

2018-01-14 Thread Alexei Starovoitov
On Sun, Jan 14, 2018 at 01:18:35PM +0200, Karim Eshapa wrote: > >> Use pointers to structure as arguments to function instead of coping > >> structures and less stack size. Also transfer TNUM(_v, _m) to > >> tnum.h file to be used in differnet files for creating anonymous structures > >>

Re: [PATCH v2] net: phy: Have __phy_modify return 0 on success

2018-01-14 Thread Andrew Lunn
On Fri, Jan 12, 2018 at 03:01:36PM +0100, Andrew Lunn wrote: > __phy_modify would return the old value of the register before it was > modified. Thus on success, it does not return 0, but a positive value. > Thus functions using phy_modify, which is a wrapper around > __phy_modify, can start

Re: [PATCH v2] bpf: fix divides by zero

2018-01-14 Thread Alexei Starovoitov
On Fri, Jan 12, 2018 at 05:43:23PM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > Divides by zero are not nice, lets avoid them if possible. > > Also do_div() seems not needed when dealing with 32bit operands, > but this seems a minor detail. > > Fixes: bd4cf0ed331a

Re: [net-next 00/10][pull request] 10GbE Intel Wired LAN Driver Updates 2018-01-12

2018-01-14 Thread David Miller
From: Jeff Kirsher Date: Fri, 12 Jan 2018 09:29:22 -0800 > This series contains updates to ixgbe, fm10k and net core. ... > The following are changes since commit > 6bd39bc3da0f4a301fae69c4a32db2768f5118be: > Merge branch

Re: [PATCH net-next 0/2] mv88e6xxx: ATU and VTU interrupts

2018-01-14 Thread David Miller
From: Andrew Lunn Date: Sun, 14 Jan 2018 02:32:43 +0100 > Both the ATU and VTU of Mavell switches can generate interrupts when > violations occur. Trap this interrupts and print what violation > occurred. Series applied, thanks Andrew.

Re: [patch net-next v2 0/5] mlxsw: Offload PRIO qdisc

2018-01-14 Thread David Miller
From: Jiri Pirko Date: Sun, 14 Jan 2018 12:33:12 +0100 > Add an offload support for PRIO qdisc for mlxsw driver. Series applied, thanks.

[PATCH v2 0/2] ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY

2018-01-14 Thread Jim Westfall
This used to be the previous behavior in older kernels but became broken in a263b3093641f (ipv4: Make neigh lookups directly in output packet path) and then later removed because it was broken in 0bb4087cbec0 (ipv4: Fix neigh lookup keying over loopback/point-to-point devices) Not having this

[PATCH v2 1/2] net: Allow neigh contructor functions ability to modify the primary_key

2018-01-14 Thread Jim Westfall
Use n->primary_key instead of pkey to account for the possibility that a neigh constructor function may have modified the primary_key value. Signed-off-by: Jim Westfall --- net/core/neighbour.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 2/2] ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY

2018-01-14 Thread Jim Westfall
Map all lookup neigh keys to INADDR_ANY for loopback/point-to-point devices to avoid making an entry for every remote ip the device needs to talk to. This used the be the old behavior but became broken in a263b3093641f (ipv4: Make neigh lookups directly in output packet path) and later removed in

Re: [PATCH 04/36] usercopy: Prepare for usercopy whitelisting

2018-01-14 Thread Matthew Wilcox
On Wed, Jan 10, 2018 at 12:28:23PM -0600, Christopher Lameter wrote: > On Tue, 9 Jan 2018, Kees Cook wrote: > > +struct kmem_cache *kmem_cache_create_usercopy(const char *name, > > + size_t size, size_t align, slab_flags_t flags, > > + size_t useroffset, size_t

Re: [PATCH bpf-next v2 07/15] bpf: offload: add map offload infrastructure

2018-01-14 Thread Jakub Kicinski
On Sun, Jan 14, 2018 at 3:37 PM, Daniel Borkmann wrote: > Hi Jakub, > > Series looks fine, just stumbled over one small thing here below. > > On 01/12/2018 05:29 AM, Jakub Kicinski wrote: > [...] >> +bool bpf_offload_dev_match(struct bpf_prog *prog, struct bpf_map *map) >>

linux-next: manual merge of the net-next tree with the net tree

2018-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: include/linux/mlx5/mlx5_ifc.h between commit: 8978cc921fc7 ("{net,ib}/mlx5: Don't disable local loopback multicast traffic when needed") from the net tree and commit: 40817cdbb695 ("net/mlx5: Add hairpin

Re: [PATCH bpf-next v2 00/15] bpf: support creating maps on networking devices

2018-01-14 Thread Daniel Borkmann
On 01/12/2018 05:29 AM, Jakub Kicinski wrote: > Hi! > > This set adds support for creating maps on networking devices. BPF is > programs+maps, the pure program offload has been around for quite some > time, this patchset adds the map part of the equation. > > Maps are allocated on the target

[PATCH net-next v2] net: sched: red: don't reset the backlog on every stat dump

2018-01-14 Thread Jakub Kicinski
Commit 0dfb33a0d7e2 ("sch_red: report backlog information") copied child's backlog into RED's backlog. Back then RED did not maintain its own backlog counts. This has changed after commit 2f5fb43f ("net_sched: update hierarchical backlog too") and commit d7f4f332f082 ("sch_red: update

[PATCH v6 31/36] dt-bindings: nds32 CPU Bindings

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 CPU binding documents. Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by: Zong Li Signed-off-by: Greentime Hu

[PATCH v6 32/36] dt-bindings: nds32 L2 cache controller Bindings

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 L2 cache controller binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/nds32/atl2c.txt | 29 + 1 file

[PATCH v6 29/36] nds32: Build infrastructure

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds Makefile, Kconfig and vmlinux.lds.S files required for building an nds32 kernel. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig | 107

[PATCH v6 28/36] nds32: defconfig

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 defconfig. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/defconfig | 107 ++ 1 file changed, 107

[PATCH v6 27/36] nds32: Miscellaneous header files

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch introduces some miscellaneous header files. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/delay.h | 39 +++

[PATCH v6 34/36] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds an irqchip driver document for the Andestech Internal Vector Interrupt Controller. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Reviewed-by: Rob Herring ---

[PATCH v6 30/36] MAINTAINERS: Add nds32

2018-01-14 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,17 @@

[PATCH v6 33/36] dt-bindings: nds32 SoC Bindings

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- .../devicetree/bindings/nds32/andestech-boards | 40 1 file

[PATCH net-next 1/1] forcedeth: remove unused variable

2018-01-14 Thread Zhu Yanjun
The variable miistat is not used. So it is removed. CC: Srinivas Eeda CC: Joe Jin CC: Junxiao Bi Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/nvidia/forcedeth.c | 7 ++- 1 file changed, 2

[PATCH v6 11/36] nds32: Cache and TLB routines

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 12 +

[PATCH v6 20/36] nds32: Signal handling support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for signal handling. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/sigcontext.h | 60 ++ arch/nds32/kernel/signal.c

[PATCH v6 18/36] nds32: System calls handling

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for system calls. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/syscall.h | 188 ++

[PATCH v6 13/36] nds32: IRQ handling

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 36

[PATCH v6 15/36] nds32: Device specific operations

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch introduces ioremap implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 83 +++

[PATCH v6 16/36] nds32: DMA mapping API

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/dma-mapping.h | 14 ++

[PATCH v6 17/36] nds32: ELF definitions

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h |

linux-next: manual merge of the rdma tree with the net tree

2018-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rdma tree got a conflict in: drivers/infiniband/hw/mlx5/main.c between commits: 8978cc921fc7 ("{net,ib}/mlx5: Don't disable local loopback multicast traffic when needed") 72f36be06138 ("net/mlx5: Fix mlx5_get_uars_page to return error code") from

[PATCH v6 09/36] nds32: MMU initialization

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 79 + arch/nds32/mm/init.c

[PATCH v6 19/36] nds32: VDSO support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v6 04/36] earlycon: add reg-offset to physical address before mapping

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called Signed-off-by: Greentime Hu --- drivers/tty/serial/earlycon.c |3

[PATCH v6 02/36] openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it.

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will be built failed if commit id: d25ea659 is selected. This patch can fix this build error. Signed-off-by: Greentime Hu --- arch/openrisc/include/asm/io.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v6 05/36] nds32: Assembly macros and definitions

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 39

[PATCH v6 07/36] nds32: Exception handling

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 66 +

[PATCH net-next] net: sched: fix use before alloc of per cpu stats

2018-01-14 Thread Prashant Bhole
About bug: During init of clsact/ingress, it links qdisc's cpu_bstats,cpu_qstats with mini qdisc. TCQ_F_CPUSTATS is set in qdisc->flags during init and this flag is checked after init to allocate memory for stats. Hence mini qdisc points to null per-cpu-stats. The problem isn't caught while

[PATCH v6 00/36] Andes(nds32) Linux Kernel Port

2018-01-14 Thread Greentime Hu
This is the 6th version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v5 patchseries has been addressed. Thanks to everyone who provided feedback on the previous version. This patchset adds core architecture support to Linux for Andestech's

[PATCH v6 01/36] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-01-14 Thread Greentime Hu
From: Greentime Hu It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann ---

[PATCH v6 03/36] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will be built failed if commit id: d25ea659 is selected. This patch can fix this build error. Signed-off-by: Greentime Hu --- arch/sparc/include/asm/io_32.h |5 - arch/sparc/kernel/ioport.c |4 ++-- 2

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-14 Thread jianchao.wang
Hi Tariq Thanks for your kindly response. On 01/14/2018 05:47 PM, Tariq Toukan wrote: > Thanks Jianchao for your patch. > > And Thank you guys for your reviews, much appreciated. > I was off-work on Friday and Saturday. > > On 14/01/2018 4:40 AM, jianchao.wang wrote: >> Dear all >> >> Thanks

[PATCH v6 2/3] clocksource/drivers/atcpit100: VDSO support

2018-01-14 Thread Greentime Hu
From: Rick Chen VDSO needs real-time cycle count to ensure the time accuracy. Unlike others, nds32 architecture does not define clock source, hence VDSO needs atcpit100 offering real-time cycle count to derive the correct time. Signed-off-by: Vincent Chen

[PATCH v6 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-14 Thread Greentime Hu
From: Rick Chen ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source

[PATCH v6 36/36] net: faraday add nds32 support.

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch is used to support nds32 architecture to use these faraday mac IP. Signed-off-by: Greentime Hu --- drivers/net/ethernet/faraday/Kconfig |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH v6 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2018-01-14 Thread Greentime Hu
From: Rick Chen Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Acked-by: Rob Herring ---

[PATCH v6 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-14 Thread Greentime Hu
ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source and count downwards until underflow and

[PATCH v6 21/36] nds32: Library functions

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch add support for various library functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/asm/swab.h| 35

[PATCH v6 25/36] nds32: Generic timers support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij --- arch/nds32/kernel/time.c | 11 +++ 1

[PATCH v6 26/36] nds32: Device tree support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for device tree. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 arch/nds32/boot/dts/ae3xx.dts | 85

[PATCH v6 24/36] nds32: Loadable modules

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds support for loadable modules. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/module.h | 11 ++ arch/nds32/kernel/module.c | 286

[PATCH v6 22/36] nds32: Debugging support

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds ptrace support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/ptrace.h | 25 +++ arch/nds32/kernel/ptrace.c | 311

  1   2   >