[GIT] Networking

2016-08-28 Thread David Miller
1) Segregate namespaces properly in conntrack dumps, from Liping Zhang. 2) tcp listener refcount fix in netfilter tproxy, from Eric Dumazet. 3) Fix timeouts in qed driver due to xmit_more, from Yuval Mintz. 4) Fix use-after-free in tcp_xmit_retransmit_queue(). 5) Userspace header fixups

Re: [net-next PATCH] e1000: add initial XDP support

2016-08-28 Thread John Fastabend
On 16-08-28 08:56 AM, William Tu wrote: > Hi, > > Reading through the patch, I found some minor typos below. > > On Sat, Aug 27, 2016 at 12:11 AM, John Fastabend > wrote: >> From: Alexei Starovoitov >> >> This patch adds initial support for XDP on e1000

Re: [net-next PATCH] e1000: add initial XDP support

2016-08-28 Thread John Fastabend
On 16-08-27 10:55 PM, Or Gerlitz wrote: > On Sat, Aug 27, 2016 at 10:11 AM, John Fastabend > wrote: >> From: Alexei Starovoitov > >> This patch adds initial support for XDP on e1000 driver. Note e1000 >> driver does not support page recycling in general

Re: [PATCH v3 net-next 1/1] net_sched: Introduce skbmod action

2016-08-28 Thread Cong Wang
On Sun, Aug 28, 2016 at 9:07 AM, Eric Dumazet wrote: > > Adding an action with a spinlock held in fast path in 2016 is > a way to tell people : It is a toy, do not use it for real. > > Sorry guys. Friends do not let friends do that anymore. > Please stop joking, this is

[PATCH net v2 6/9] net: ethernet: mediatek: fix issue of driver removal with interface is up

2016-08-28 Thread sean.wang
From: Sean Wang mtk_stop() must be called to stop for freeing DMA resources acquired and restoring state changed by mtk_open() firstly when module removal. Signed-off-by: Sean Wang --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 8 1

[PATCH net v2 8/9] net: ethernet: mediatek: use devm_mdiobus_alloc instead of mdiobus_alloc inside mtk_mdio_init

2016-08-28 Thread sean.wang
From: Sean Wang a lot of parts in the driver uses devm_* APIs to gain benefits from the device resource management, so devm_mdiobus_alloc is also used instead of mdiobus_alloc to have more elegant code flow. Using common code provided by the devm_* helps to 1) have

[PATCH net v2 5/9] net: ethernet: mediatek: fix logic unbalance between probe and remove

2016-08-28 Thread sean.wang
From: Sean Wang original mdio_cleanup is not in the symmetric place against where mdio_init is, so relocate mdio_cleanup to the right one. Signed-off-by: Sean Wang Acked-by: John Crispin ---

[PATCH net v2 2/9] net: ethernet: mediatek: fix incorrect return value of devm_clk_get with EPROBE_DEFER

2016-08-28 Thread sean.wang
From: Sean Wang 1) If the return value of devm_clk_get is EPROBE_DEFER, we should defer probing the driver. The change is verified and works based on 4.8-rc1 staying with the latest clk-next code for MT7623. 2) Changing with the usage of loops to work out if all clocks

[PATCH net v2 3/9] net: ethernet: mediatek: fix API usage with skb_free_frag

2016-08-28 Thread sean.wang
From: Sean Wang use skb_free_frag() instead of legacy put_page() Signed-off-by: Sean Wang Acked-by: John Crispin --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH net v2 7/9] net: ethernet: mediatek: fix the missing of_node_put() after node is used done inside mtk_mdio_init

2016-08-28 Thread sean.wang
From: Sean Wang This patch adds the missing of_node_put() after finishing the usage of of_get_child_by_name. Signed-off-by: Sean Wang Acked-by: John Crispin --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 + 1 file

[PATCH net v2 4/9] net: ethernet: mediatek: remove redundant free_irq for devm_request_irq allocated irq

2016-08-28 Thread sean.wang
From: Sean Wang these irqs are not used for shared irq and disabled during ethernet stops. irq requested by devm_request_irq is safe to be freed automatically on driver detach. Signed-off-by: Sean Wang Acked-by: John Crispin

[PATCH net v2 0/9] net: ethernet: mediatek: a couple of fixes

2016-08-28 Thread sean.wang
From: Sean Wang a couple of fixes come out from integrating with linux-4.8 rc1 they all are verified and workable on linux-4.8 rc1 changes since v1: - usage of loops to work out if all required clock are ready instead of tedious coding - remove redundant pinctrl setup

Re: [PATCH net-next V3 4/4] net/sched: Introduce act_tunnel_key

2016-08-28 Thread Cong Wang
On Fri, Aug 26, 2016 at 12:16 PM, Eric Dumazet wrote: > On Fri, 2016-08-26 at 11:26 -0700, Cong Wang wrote: >> 1) Currently there are only a few actions using lockless, and they are >> questionable, as we already discussed before, there could be some >> race condition when

[PATCH net v2 1/9] net: ethernet: mediatek: fix fails from TX housekeeping due to incorrect port setup

2016-08-28 Thread sean.wang
From: Sean Wang which net device the SKB is complete for depends on the forward port on txd4 on the corresponding TX descriptor, but the information isn't set up well in case of SKB fragments that would lead to watchdog timeout from the upper layer, so fix it up.

[PATCH net v2 9/9] net: ethernet: mediatek: fix error handling inside mtk_mdio_init

2016-08-28 Thread sean.wang
From: Sean Wang return -ENODEV if no child is found in MDIO bus. Signed-off-by: Sean Wang Acked-by: John Crispin --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 4/5] net_sched: fix use of uninitialized ethertype variable in cls_flower

2016-08-28 Thread David Miller
From: Arnd Bergmann Date: Fri, 26 Aug 2016 17:25:45 +0200 > The addition of VLAN support caused a possible use of uninitialized > data if we encounter a zero TCA_FLOWER_KEY_ETH_TYPE key, as pointed > out by "gcc -Wmaybe-uninitialized": > > net/sched/cls_flower.c: In function

Re: [PATCH 5/5] net/xgene: fix error handling during reset

2016-08-28 Thread David Miller
From: Arnd Bergmann Date: Fri, 26 Aug 2016 17:25:46 +0200 > The newly added reset logic uses helper functions for the MMIO that > may fail. However, when the read operation fails, we end up writing > back uninitialized data to the register, as gcc warns: > >

[Patch net] kcm: fix a socket double free

2016-08-28 Thread Cong Wang
Dmitry reported a double free on kcm socket, which could be easily reproduced by: #include #include int main() { int fd = syscall(SYS_socket, 0x29ul, 0x5ul, 0x0ul, 0, 0, 0); syscall(SYS_ioctl, fd, 0x89e2ul, 0x20a98000ul, 0, 0, 0);

Re: [PATCH net-next] net: ethtool: add support for 1000BaseX and missing 10G link modes

2016-08-28 Thread David Miller
From: Vidya Sagar Ravipati Date: Fri, 26 Aug 2016 01:25:50 -0700 > From: Vidya Sagar Ravipati > > This patch enhances ethtool link mode bitmap to include > missing interface modes for 1G/10G speeds ... > Signed-off-by: Vidya Sagar Ravipati

Re: [RESEND PATCH net 06/10] net: ethernet: mediatek: fix the loss

2016-08-28 Thread Sean Wang
Date: Fri, 26 Aug 2016 16:17:59 +0200, Andrew Lunn wrote: >> Hi Andrew, >> >> Here pinctrl is used to setup what function the group of the pins is >> for. > >Agreed. > >> The group of the pins could be configured for the function provided >> by the SoC, such as general purpose I/O or specific

Re: [PATCH net-next] amd-xgbe: Reset running devices after resume from hibernate

2016-08-28 Thread David Miller
From: James Morse Date: Fri, 26 Aug 2016 09:21:23 +0100 > After resume from hibernate on arm64, any amd-xgbe devices that were > running when we hibernated are reported as down, even when it is not. > > Re-plugging the cables does not cause the interface to come back, the >

Re: [PATCH 1/1] net: add killer E2500 device id

2016-08-28 Thread David Miller
From: Owen Lin Date: Fri, 26 Aug 2016 05:55:45 + > From 5a40989933c7dcd904bebd3c64eaf84445fad1fd Mon Sep 17 00:00:00 2001 > From: Owen Lin > Date: Fri, 26 Aug 2016 13:49:09 +0800 > Subject: [PATCH] Add Killer E2500 device ID in alx driver.

Re: [PATCH net-next] tcp: add tcp_add_backlog()

2016-08-28 Thread David Miller
From: Eric Dumazet Date: Sat, 27 Aug 2016 07:37:54 -0700 > From: Eric Dumazet > > When TCP operates in lossy environments (between 1 and 10 % packet > losses), many SACK blocks can be exchanged, and I noticed we could > drop them on busy senders, if

Re: [PATCH v2] net: smc91x: fix SMC accesses

2016-08-28 Thread David Miller
From: Russell King Date: Sat, 27 Aug 2016 17:33:03 +0100 > Commit b70661c70830 ("net: smc91x: use run-time configuration on all ARM > machines") broke some ARM platforms through several mistakes. Firstly, > the access size must correspond to the following rule: > >

Re: [PATCH] Documentation: networking: dsa: Remove platform device TODO

2016-08-28 Thread David Miller
From: Florian Fainelli Date: Sat, 27 Aug 2016 15:34:20 -0700 > Since commit 83c0afaec7b7 ("net: dsa: Add new binding implementation"), > the shortcomings of the dsa platform device have been addressed, remove > that TODO item. > > Signed-off-by: Florian Fainelli

Re: [PATCH] wan/fsl_ucc_hdlc: fix spelling mistake "prameter" -> "parameter"

2016-08-28 Thread David Miller
From: Colin King Date: Sun, 28 Aug 2016 11:40:41 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err message. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH] cxgb4/cxgb4vf: fix spelling mistake "provissioned" -> "provisioned"

2016-08-28 Thread David Miller
From: Colin King Date: Sun, 28 Aug 2016 12:07:02 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_warn message. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH] net: ucc_geth: fix spelling mistake "propperty" -> "property"

2016-08-28 Thread David Miller
From: Colin King Date: Sun, 28 Aug 2016 12:03:27 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_warn message. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH v3 0/5] meson: Meson8b and GXBB DWMAC glue driver

2016-08-28 Thread David Miller
From: Martin Blumenstingl Date: Sun, 28 Aug 2016 18:16:32 +0200 > This adds a DWMAC glue driver for the PRG_ETHERNET registers found in > Meson8b and GXBB SoCs. Based on the "old" meson6b-dwmac glue driver > the register layout is completely different. > Thus

Re: [PATCH net-next 0/3] strp: Generalize stream parser to work with other socket types

2016-08-28 Thread David Miller
From: Tom Herbert Date: Sun, 28 Aug 2016 14:43:16 -0700 > Add a read_sock protocol operation function that allows something like > tcp_read_sock to be called for other protocol types. > > Specific changes in this patch set: > - Add read_sock function to proto_ops. This

Re: [PATCH net 0/9] Mellanox 100G mlx5 fixes 2016-08-29

2016-08-28 Thread David Miller
From: Saeed Mahameed Date: Mon, 29 Aug 2016 01:13:41 +0300 > This series contains some bug fixes for the mlx5 core and mlx5 > ethernet driver. > > From Saeed, Fix UMR to consider hardware translation table field > size limitation when calculating the maximum number of MTTs

Re: kcm: use-after-free in fput of kcm socket

2016-08-28 Thread Cong Wang
On Sun, Aug 28, 2016 at 3:10 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers use-after-free: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > > int main() > { > int fd = syscall(SYS_socket, 0x29ul, 0x5ul,

Re: [PATCH nf-next] netfilter: log: Check param to avoid overflow in nf_log_set

2016-08-28 Thread Feng Gao
On Sun, Aug 28, 2016 at 10:30 PM, wrote: > From: Gao Feng > > The nf_log_set is an interface function, so it should do the strict sanity > check of parameters. Add one sanity check for pf, it could not exceed > NFPROTO_NUMPROTO, and print error log when pf is

[PATCH net 7/9] net/mlx5e: Fix memory leak if refreshing TIRs fails

2016-08-28 Thread Saeed Mahameed
From: Kamal Heib Free 'in' command object also when mlx5_core_modify_tir fails. Fixes: 724b2aa15126 ("net/mlx5e: TIRs management refactoring") Signed-off-by: Kamal Heib Signed-off-by: Saeed Mahameed ---

[PATCH net 3/9] net/mlx5e: Don't post fragmented MPWQE when RQ is disabled

2016-08-28 Thread Saeed Mahameed
ICO (Internal control operations) SQ (Send Queue) is closed/disabled after RQ (Receive Queue). After RQ is closed an ICO SQ completion might post a fragmented MPWQE (Multi Packet Work Queue Element) into that RQ. As on regular RQ post, check if we are allowed to post to that RQ (RQ is enabled).

[PATCH net 6/9] net/mlx5e: Add ethtool counter for TX xmit_more

2016-08-28 Thread Saeed Mahameed
From: Tariq Toukan Add a counter in ethtool for the number of times that TX xmit_more was used. Signed-off-by: Tariq Toukan Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 +

[PATCH net 2/9] net/mlx5e: Don't wait for RQ completions on close

2016-08-28 Thread Saeed Mahameed
This will significantly reduce receive queue flush time on interface down. Instead of asking the firmware to flush the RQ (Receive Queue) via asynchronous completions when moved to error, we handle RQ flush manually (mlx5e_free_rx_descs) same as we did when RQ flush got timed out. This will

[PATCH net 4/9] net/mlx5e: Don't wait for SQ completions on close

2016-08-28 Thread Saeed Mahameed
Instead of asking the firmware to flush the SQ (Send Queue) via asynchronous completions when moved to error, we handle SQ flush manually (mlx5e_free_tx_descs) same as we did when SQ flush got timed out or on tx_timeout. This will reduce SQs flush time and speedup interface down procedure. Moved

[PATCH net 1/9] net/mlx5e: Limit UMR length to the device's limitation

2016-08-28 Thread Saeed Mahameed
ConnectX-4 UMR (User Memory Region) MTT translation table offset in WQE is limited to U16_MAX, before this patch we ignored that limitation and requested the maximum possible UMR translation length that the netdev might need (MAX channels * MAX pages per channel). In case of a system with #cores >

[PATCH net 9/9] net/mlx5: Increase number of ethtool steering priorities

2016-08-28 Thread Saeed Mahameed
From: Maor Gottlieb Ethtool has 11 flow tables, each flow table has its own priority. Increase the number of priorities to be aligned with the number of flow tables. Fixes: 1174fce8d141 ('net/mlx5e: Support l3/l4 flow type specs in ethtool flow steering') Signed-off-by:

[PATCH net 5/9] net/mlx5e: Fix ethtool -g/G rx ring parameter report with striding RQ

2016-08-28 Thread Saeed Mahameed
From: Eran Ben Elisha The driver RQ has two possible configurations: striding RQ and non-striding RQ. Until this patch, the driver always reported the number of hardware WQEs (ring descriptors). For non striding RQ configuration, this was OK since we have one WQE per

[PATCH net 8/9] net/mlx5: Add error prints when validate ETS failed

2016-08-28 Thread Saeed Mahameed
From: Eran Ben Elisha Upon set ETS failure due to user invalid input, add error prints to specify the exact error to the user. Fixes: cdcf11212b22 ('net/mlx5e: Validate BW weight values of ETS') Signed-off-by: Eran Ben Elisha Signed-off-by: Saeed

[PATCH net 0/9] Mellanox 100G mlx5 fixes 2016-08-29

2016-08-28 Thread Saeed Mahameed
Hi Dave, This series contains some bug fixes for the mlx5 core and mlx5 ethernet driver. >From Saeed, Fix UMR to consider hardware translation table field size limitation when calculating the maximum number of MTTs required by the driver. Three patches to speed-up netdevice close time by

[PATCH net-next 0/3] strp: Generalize stream parser to work with other socket types

2016-08-28 Thread Tom Herbert
Add a read_sock protocol operation function that allows something like tcp_read_sock to be called for other protocol types. Specific changes in this patch set: - Add read_sock function to proto_ops. This has the same signature as tcp_read_sock. sk_read_actor_t is also defined in net.h. -

[PATCH net-next 3/3] kcm: Remove TCP specific references from kcm and strparser

2016-08-28 Thread Tom Herbert
kcm and strparser need to work with any type of stream socket not just TCP. Eliminate references to TCP and call generic proto_ops functions of read_sock and peek_len. Also in strp_init check if the socket support the proto_ops read_sock and peek_len. Signed-off-by: Tom Herbert

[PATCH net-next 1/3] net: Add read_sock proto_op

2016-08-28 Thread Tom Herbert
Add new function in proto_ops structure. This includes moving the typedef got sk_read_actor into net.h and removing the definition from tcp.h. Signed-off-by: Tom Herbert --- include/linux/net.h | 6 ++ include/net/tcp.h | 2 -- 2 files changed, 6 insertions(+), 2

[PATCH net-next 2/3] tcp: Set read_sock and peek_len proto_ops

2016-08-28 Thread Tom Herbert
In inet_stream_ops we set read_sock to tcp_read_sock and peek_len to tcp_peek_len (which is just a stub function that calls tcp_inq). Signed-off-by: Tom Herbert --- include/net/tcp.h | 2 ++ net/ipv4/af_inet.c | 2 ++ net/ipv4/tcp.c | 6 ++ net/ipv6/af_inet6.c

Re: [PATCH v2] ipv6: Use inbound ifaddr as source addresses for ICMPv6 errors

2016-08-28 Thread Eli Cooper
Hello, On 2016/8/29 1:18, Guillaume Nault wrote: > On Sun, Aug 28, 2016 at 11:34:06AM +0800, Eli Cooper wrote: >> According to RFC 1885 2.2(c), the source address of ICMPv6 >> errors in response to forwarded packets should be set to the >> unicast address of the forwarding interface in order to

Re: [PATCH] net: ethernet: renesas: sh_eth: do not access POST registers if not exist

2016-08-28 Thread Sergei Shtylyov
Hello. Oh, and I'll have to correct your language and terminology. :-/ Should be "if they don't exist" in the subject. On 08/26/2016 11:01 PM, Chris Brandt wrote: The RZ/A1 has a TSU, but since it only has one Ethernet port, it does not have POST registers. Therefore, if you try to write

Re: [PATCH] net: ethernet: renesas: sh_eth: do not access POST registers if not exist

2016-08-28 Thread Sergei Shtylyov
Hello. On 08/26/2016 11:01 PM, Chris Brandt wrote: The RZ/A1 has a TSU, but since it only has one Ethernet port, it does not have POST registers. I'm not sure the reason is having one port... do you have the old SH manuals somewhere? :-) Therefore, if you try to write to register

[PATCH] i40e: avoid potential null pointer dereference when assigning len

2016-08-28 Thread Colin King
From: Colin Ian King There is a sanitcy check for desc being null in the first line of function i40evf_debug_aq. However, before that, aq_desc is cast from desc, and aq_desc is being dereferenced on the assignment of len, so this could be a potential null pointer

Re: [PATCH v2] ipv6: Use inbound ifaddr as source addresses for ICMPv6 errors

2016-08-28 Thread Guillaume Nault
On Sun, Aug 28, 2016 at 11:34:06AM +0800, Eli Cooper wrote: > According to RFC 1885 2.2(c), the source address of ICMPv6 > errors in response to forwarded packets should be set to the > unicast address of the forwarding interface in order to be helpful > in diagnosis. > FWIW, this behaviour has

[PATCH v3 2/5] clk: gxbb: expose MPLL2 clock for use by DT

2016-08-28 Thread Martin Blumenstingl
This exposes the MPLL2 clock as this is one of the input clocks of the ethernet controller's internal mux. Signed-off-by: Martin Blumenstingl --- drivers/clk/meson/gxbb.h | 2 +- include/dt-bindings/clock/gxbb-clkc.h | 1 + 2 files changed, 2

[PATCH v3 5/5] ARM64: dts: meson-gxbb: use the new GXBB DWMAC glue driver

2016-08-28 Thread Martin Blumenstingl
The Amlogic reference driver uses the "mc_val" devicetree property to configure the PRG_ETHERNET_ADDR0 register. Unfortunately it uses magic values for this configuration. According to the datasheet the PRG_ETHERNET_ADDR0 register is at address 0xc8834108. However, the reference driver uses

[PATCH v3 0/5] meson: Meson8b and GXBB DWMAC glue driver

2016-08-28 Thread Martin Blumenstingl
This adds a DWMAC glue driver for the PRG_ETHERNET registers found in Meson8b and GXBB SoCs. Based on the "old" meson6b-dwmac glue driver the register layout is completely different. Thus I introduced a separate driver. Changes since v2: - fixed unloading the glue driver when built as module.

[PATCH v3 3/5] stmmac: introduce get_stmmac_bsp_priv() helper

2016-08-28 Thread Martin Blumenstingl
From: Joachim Eastwood Create a helper to retrive dwmac private data from a dev pointer. This is useful in PM callbacks and driver remove. Signed-off-by: Joachim Eastwood Tested-by: Martin Blumenstingl ---

[PATCH v3 4/5] net: stmmac: add a glue driver for the Amlogic Meson 8b / GXBB DWMAC

2016-08-28 Thread Martin Blumenstingl
The Ethernet controller available in Meson8b and GXBB SoCs is a Synopsys DesignWare MAC IP core which is already supported by the stmmac driver. In addition to the standard stmmac driver some Meson8b / GXBB specific registers have to be configured for the PHY clocks. These SoC specific registers

[PATCH v3 1/5] net: dt-bindings: Document the new Meson8b and GXBB DWMAC bindings

2016-08-28 Thread Martin Blumenstingl
This patch adds the documentation for the DWMAC ethernet controller found in Amlogic Meson 8b (S805) and GXBB (S905) SoCs. The main difference between the Meson6 glue is that different registers (with different layout) are used. Signed-off-by: Martin Blumenstingl

Re: [PATCH v2 1/4] net: dt-bindings: Document the new Meson8b and GXBB DWMAC bindings

2016-08-28 Thread Martin Blumenstingl
On Mon, Aug 22, 2016 at 5:25 PM, Arnd Bergmann wrote: > It really depends on the kind of SoC. Some may have a suboptimal > binding, on some others there may be a distinct register area that > just contains a few additional registers for the dwmac. the dwmac PHY configuration

Re: [PATCH v3 net-next 1/1] net_sched: Introduce skbmod action

2016-08-28 Thread Eric Dumazet
On Sun, 2016-08-28 at 08:19 -0400, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim ... > +static int tcf_skbmod_run(struct sk_buff *skb, const struct tc_action *a, > + struct tcf_result *res) > +{ > + struct tcf_skbmod *d = to_skbmod(a); > + > +

Re: [net-next PATCH] e1000: add initial XDP support

2016-08-28 Thread William Tu
Hi, Reading through the patch, I found some minor typos below. On Sat, Aug 27, 2016 at 12:11 AM, John Fastabend wrote: > From: Alexei Starovoitov > > This patch adds initial support for XDP on e1000 driver. Note e1000 > driver does not support page

Re: [PATCH] Documentation: networking: dsa: Remove platform device TODO

2016-08-28 Thread Andrew Lunn
On Sat, Aug 27, 2016 at 03:34:20PM -0700, Florian Fainelli wrote: > Since commit 83c0afaec7b7 ("net: dsa: Add new binding implementation"), > the shortcomings of the dsa platform device have been addressed, remove > that TODO item. > > Signed-off-by: Florian Fainelli

Re: [PATCH v3 net-next 1/1] net_sched: Introduce skbmod action

2016-08-28 Thread Alexei Starovoitov
On Sun, Aug 28, 2016 at 08:19:16AM -0400, Jamal Hadi Salim wrote: > --- /dev/null > +++ b/include/uapi/linux/tc_act/tc_skbmod.h > @@ -0,0 +1,49 @@ > +/* > + * Copyright (c) 2016, Jamal Hadi Salim > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the

[PATCH nf-next] netfilter: log: Check param to avoid overflow in nf_log_set

2016-08-28 Thread fgao
From: Gao Feng The nf_log_set is an interface function, so it should do the strict sanity check of parameters. Add one sanity check for pf, it could not exceed NFPROTO_NUMPROTO, and print error log when pf is invalid. Signed-off-by: Gao Feng ---

[PATCH net iproute2] devlink: Add e-switch support

2016-08-28 Thread Or Gerlitz
Implement kernel devlink e-switch interface. Currently we allow to get and set the device e-switch mode. Signed-off-by: Or Gerlitz Signed-off-by: Roi Dayan --- Hi Stephen, The patch is rebased over the net-next branch of iproute2 which has the 4.8

Hello Beautiful,

2016-08-28 Thread Jack
Good day dear, i hope this mail meets you well? my name is Jack, from the U.S. I know this may seem inappropriate so i ask for your forgiveness but i wish to get to know you better, if I may be so bold. I consider myself an easy-going man, adventurous, honest and fun loving person but I am

[iproute2 3/3] police: bug fix man page

2016-08-28 Thread Jamal Hadi Salim
From: Roman Mashak Signed-off-by: Roman Mashak Signed-off-by: Jamal Hadi Salim --- man/man8/tc-police.8 | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/man/man8/tc-police.8 b/man/man8/tc-police.8 index

[iproute2 2/3] police: improve usage message

2016-08-28 Thread Jamal Hadi Salim
From: Roman Mashak Signed-off-by: Roman Mashak Signed-off-by: Jamal Hadi Salim --- tc/m_police.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tc/m_police.c b/tc/m_police.c index d7fa8f6..226e20e 100644

[iproute2 1/3] police: add extra space to improve police result printing

2016-08-28 Thread Jamal Hadi Salim
From: Roman Mashak Signed-off-by: Roman Mashak Signed-off-by: Jamal Hadi Salim --- tc/m_police.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/m_police.c b/tc/m_police.c index f0b179f..d7fa8f6 100644 ---

Re: [net-next PATCH] e1000: add initial XDP support

2016-08-28 Thread Jamal Hadi Salim
On 16-08-27 03:11 AM, John Fastabend wrote: From: Alexei Starovoitov This patch adds initial support for XDP on e1000 driver. Note e1000 driver does not support page recycling in general which could be added as a further improvement. However for XDP_DROP and XDP_XMIT the xdp code

[PATCH v3 net-next 1/1] net_sched: Introduce skbmod action

2016-08-28 Thread Jamal Hadi Salim
From: Jamal Hadi Salim This action is intended to be an upgrade from a usability perspective from pedit (as well as operational debugability). Compare this: sudo tc filter add dev $ETH parent 1: protocol ip prio 10 \ u32 match ip protocol 1 0xff flowid 1:2 \ action pedit

Re: [PATCH net 0/2] ppp: fix deadlock upon recursive xmit

2016-08-28 Thread Feng Gao
On Sun, Aug 28, 2016 at 4:20 AM, Guillaume Nault wrote: > This series fixes the issue reported by Feng where packets looping > through a ppp device makes the module deadlock: > https://marc.info/?l=linux-netdev=147134567319038=2 > > The problem can occur on virtual

Re: [PATCH v2 net-next 1/1] net_sched: Introduce skbmod action

2016-08-28 Thread Jamal Hadi Salim
On 16-08-28 08:13 AM, Jamal Hadi Salim wrote: +#if 0 + if (lflags & SKBMOD_F_SWAPMAC) + if ((lflags & SKBMOD_F_DMAC) || (lflags & SKBMOD_F_SMAC)) + return -EINVAL; +#endif Sorry - left over from earlier. Will send v3 shortly. cheers, jamal

[PATCH v2 net-next 1/1] net_sched: Introduce skbmod action

2016-08-28 Thread Jamal Hadi Salim
From: Jamal Hadi Salim This action is intended to be an upgrade from a usability perspective from pedit (as well as operational debugability). Compare this: sudo tc filter add dev $ETH parent 1: protocol ip prio 10 \ u32 match ip protocol 1 0xff flowid 1:2 \ action pedit

[PATCH] cxgb4/cxgb4vf: fix spelling mistake "provissioned" -> "provisioned"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_warn message. Signed-off-by: Colin Ian King --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] net: ucc_geth: fix spelling mistake "propperty" -> "property"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_warn message. Signed-off-by: Colin Ian King --- drivers/net/ethernet/freescale/ucc_geth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] wan/fsl_ucc_hdlc: fix spelling mistake "prameter" -> "parameter"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err message. Signed-off-by: Colin Ian King --- drivers/net/wan/fsl_ucc_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c

kcm: use-after-free in fput of kcm socket

2016-08-28 Thread Dmitry Vyukov
Hello, The following program triggers use-after-free: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include int main() { int fd = syscall(SYS_socket, 0x29ul, 0x5ul, 0x0ul, 0, 0, 0); syscall(SYS_ioctl, fd, 0x89e2ul, 0x20a98000ul, 0, 0, 0); return 0; } [

Re: [RFC v2 09/10] landlock: Handle cgroups (performance)

2016-08-28 Thread Mickaël Salaün
On 28/08/2016 10:13, Andy Lutomirski wrote: > On Aug 27, 2016 11:14 PM, "Mickaël Salaün" wrote: >> >> >> On 27/08/2016 22:43, Alexei Starovoitov wrote: >>> On Sat, Aug 27, 2016 at 09:35:14PM +0200, Mickaël Salaün wrote: On 27/08/2016 20:06, Alexei Starovoitov wrote: >

Re: [PATCH 3/5] rxrpc: fix last_call processing

2016-08-28 Thread David Howells
This is fixed by: commit 2266ffdef5737fdfa96005204fc5606dbd559956 subject: rxrpc: Fix conn-based retransmit which is in net-next. David

Re: [RFC v2 09/10] landlock: Handle cgroups

2016-08-28 Thread Andy Lutomirski
On Aug 27, 2016 8:12 PM, "Alexei Starovoitov" wrote: > > On Sat, Aug 27, 2016 at 12:30:36AM -0700, Andy Lutomirski wrote: > > > cgroup is the common way to group multiple tasks. > > > Without cgroup only parent<->child relationship will be possible, > > > which will

Re: [RFC v2 09/10] landlock: Handle cgroups (performance)

2016-08-28 Thread Andy Lutomirski
On Aug 27, 2016 11:14 PM, "Mickaël Salaün" wrote: > > > On 27/08/2016 22:43, Alexei Starovoitov wrote: > > On Sat, Aug 27, 2016 at 09:35:14PM +0200, Mickaël Salaün wrote: > >> On 27/08/2016 20:06, Alexei Starovoitov wrote: > >>> On Sat, Aug 27, 2016 at 04:06:38PM +0200, Mickaël