[PATCH net-next 3/3] net: veth: set features for MPLS

2016-08-10 Thread Roopa Prabhu
From: David Ahern With hw checksum and gso set, netperf through veth for mpls is on par without mpls. Signed-off-by: David Ahern Reported-by: Lennert Buytenhek --- drivers/net/veth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/veth.c b/drivers/net/veth.c index f37a6e6..5db

[PATCH net-next 2/3] net: mpls fixes for GSO

2016-08-10 Thread Roopa Prabhu
From: David Ahern Signed-off-by: David Ahern Reported-by: Lennert Buytenhek --- net/mpls/mpls_gso.c | 24 net/mpls/mpls_iptunnel.c | 7 +++ 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/net/mpls/mpls_gso.c b/net/mpls/mpls_gso.c index 2055e57

[PATCH net-next 0/3] lwtunnel, mpls fragmentation and gso fixes

2016-08-10 Thread Roopa Prabhu
From: Roopa Prabhu This series fixes a few issues around mtu and fragmentation for tunnels using lwtunnel output redirect and also fixes a few gso issues recently reported by Lennert Buytenhek. David Ahern (2): net: mpls fixes for GSO net: veth: set features for MPLS Roopa Prabhu (1): lwt

[PATCH net-next 1/3] lwtunnel: xmit redirect

2016-08-10 Thread Roopa Prabhu
From: Roopa Prabhu Today mpls iptunnel lwtunnel_output redirect expects the tunnel output function to handle fragmentation. This is ok but can be avoided if we did not do the mpls output redirect too early. ie we could wait until ip fragmentation is done and then call mpls output for each ip frag

Re: [PATCH 0/9] v4.8 build regressions

2016-08-10 Thread Philipp Zabel
Am Mittwoch, den 10.08.2016, 23:54 +0200 schrieb Arnd Bergmann: > This is a set of patches to address build warnings and errors that have > come up in linux-4.8 but that worked fine in v4.7. I've added the > tinyconfig warning patch in there as well, which is not a regression > but is something tha

Re: [PATCH] openvswitch: do not ignore netdev errors when creating tunnel vports

2016-08-10 Thread David Miller
From: Martynas Pumputis Date: Tue, 9 Aug 2016 16:24:50 +0100 > The creation of a tunnel vport (geneve, gre, vxlan) brings up a > corresponding netdev, a multi-step operation which can fail. > > For example, changing a vxlan vport's netdev state to 'up' binds the > vport's socket to a UDP port -

Re: [PATCH net-next] samples/bpf: fix bpf_perf_event_output prototype

2016-08-10 Thread David Miller
From: Alexei Starovoitov Date: Wed, 10 Aug 2016 09:45:39 -0700 > From: Adam Barth > > The commit 555c8a8623a3 ("bpf: avoid stack copy and use skb ctx for event > output") > started using 20 of initially reserved upper 32-bits of 'flags' argument > in bpf_perf_event_output(). Adjust correspondi

[PATCHv3 net-next 2/2] cxgb4/cxgb4vf: Add set VF mac address support

2016-08-10 Thread Hariprasad Shenai
Add ndo_set_vf_mac support which allows to set the MAC address for cxgb4vf interfaces from the host Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 ++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 24 - drivers/net/ethernet/chelsio/cxg

[PATCHv3 net-next 1/2] cxgb4: Add control net_device for configuring PCIe VF

2016-08-10 Thread Hariprasad Shenai
Issue: For instance, the current APIs assume a 1-to-1 mapping of Network Ports, Physical Functions and the SR-IOV Virtual Functions of those Physical Functions. This is not the case with our cards where any Virtual Function can be hooked up to any Port -- or any number of Ports the current Linux AP

[PATCHv3 net-next 0/2] Add support for IFLA_VF_MAC

2016-08-10 Thread Hariprasad Shenai
Hi, We're struggling to implement the PCI SR-IOV management features for administering Virtual Functions which represent networking devices using the current Linux APIs. The problem is that these APIs incorporate all sorts of assumptions which don't match chelsio networking cards. For instance, t

Re: [PATCH 11/21] net: thunderx: Add support for 16 LMACs of 83xx

2016-08-10 Thread kbuild test robot
Hi Sunil, [auto build test ERROR on net-next/master] [also build test ERROR on v4.8-rc1 next-20160809] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/sunil-kovvuri-gmail-com/net-thunderx-Support

Re: [PATCH] bonding: Allow tun-interfaces as slaves

2016-08-10 Thread Ding Tianhong
On 2016/8/11 8:58, Jay Vosburgh wrote: > Jörn Engel wrote: > >> On Wed, Aug 10, 2016 at 02:26:49PM -0700, Jörn Engel wrote: >>> >>> Having to set one more parameter is a bit annoying. It would have to be >>> documented in a prominent place and people would still often miss it. >>> So I wonder if

Re: [PATCH] bonding: Allow tun-interfaces as slaves

2016-08-10 Thread Ding Tianhong
On 2016/8/11 1:41, Jay Vosburgh wrote: > Ding Tianhong wrote: > >> On 2016/8/10 7:51, Jay Vosburgh wrote: >>> Jörn Engel wrote: >>> On Tue, Aug 09, 2016 at 12:06:36PM -0700, David Miller wrote: >> On Tue, Aug 09, 2016 at 09:28:45PM +0800, Ding Tianhong wrote: >> >> Simply not ch

Re: [PATCH v2] drivers: net: cpsw: fix kmemleak false-positive reports for sk buffers

2016-08-10 Thread David Miller
From: Grygorii Strashko Date: Wed, 10 Aug 2016 20:02:53 +0300 > diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c > index 0805855..5caef77 100644 > --- a/drivers/net/ethernet/ti/cpsw.c > +++ b/drivers/net/ethernet/ti/cpsw.c > @@ -732,6 +732,11 @@ static void cpsw_rx_han

Re: [PATCH] bonding: Allow tun-interfaces as slaves

2016-08-10 Thread Jay Vosburgh
Jörn Engel wrote: >On Wed, Aug 10, 2016 at 02:26:49PM -0700, Jörn Engel wrote: >> >> Having to set one more parameter is a bit annoying. It would have to be >> documented in a prominent place and people would still often miss it. >> So I wonder if we can make the interface a little nicer. >> >

Re: [PATCH 1/1 linux-next] net: hns: fix typo in g_gmac_stats_string[]

2016-08-10 Thread David Miller
From: Fabian Frederick Date: Wed, 10 Aug 2016 17:48:36 +0200 > s/gamc/gmac/ > > Signed-off-by: Fabian Frederick Applied, thank you.

Re: [PATCH net v1 1/1] tipc: fix variable dereference before NULL check

2016-08-10 Thread David Miller
From: Parthasarathy Bhuvaragan Date: Wed, 10 Aug 2016 14:07:34 +0200 > In commit cf6f7e1d5109 ("tipc: dump monitor attributes"), > I dereferenced a pointer before checking if its valid. > This is reported by static check Smatch as: > net/tipc/monitor.c:733 tipc_nl_add_monitor_peer() > warn:

[PATCH 4/5] net: add dscp ranges to net cgroup

2016-08-10 Thread Anoop Naravaram
dscp ranges -- This property controls which dscp values the processes in a cgroup are allowed to use. A process in a cgroup will receive an EACCES error if it tries to do any of these things: * set a socket's IP_TOS option to a value whose dscp field (bits 7:2) is outside the range * use

[PATCH 1/5] net: create the networking cgroup controller

2016-08-10 Thread Anoop Naravaram
This is a skeleton implementation of a cgroup controller for networking properties. It will be used for: * limiting the specific ports that a process in a cgroup is allowed to bind to or listen on * restricting which dscp values processes can use with their sockets * limiting the total number of

[PATCH 5/5] net: add test for net cgroup

2016-08-10 Thread Anoop Naravaram
Created a file scripts/cgroup/net_cgroup_test.py that tests the functionality of the net cgroup as described in previous commit logs. Signed-off-by: Anoop Naravaram --- scripts/cgroup/net_cgroup_test.py | 359 ++ 1 file changed, 359 insertions(+) create mode

[PATCH 3/5] net: add udp limit to net cgroup

2016-08-10 Thread Anoop Naravaram
udp port limit -- This property controls the limit of udp ports that can be used by the processes in a cgroup. The controller manages udp statistics (usage, limit, etc) for each cgroup. Every cgroup also keeps track of the udp ports acquired by its descendants. If a process tries to acq

[PATCH 2/5] net: add bind/listen ranges to net cgroup

2016-08-10 Thread Anoop Naravaram
bind port ranges This property controls which ports the processes in a cgroup are allowed to bind to. If a process in a cgroup tries to bind a socket to a port that is not within the range(s) permitted by the cgroup, it will receive an EACCES error. >From userspace, you can get or

[PATCH 0/5] Networking cgroup controller

2016-08-10 Thread Anoop Naravaram
This patchset introduces a cgroup controller for the networking subsystem as a whole. As of now, this controller will be used for: * Limiting the specific ports that a process in a cgroup is allowed to bind to or listen on. For example, you can say that all the processes in a cgroup can only b

Re: [PATCH 1/1 linux-next] net: hns: fix typo in g_gmac_stats_string[]

2016-08-10 Thread Yisen Zhuang
Hi Fabian, This patch is fine to me, many thanks. Yisen 在 2016/8/10 23:48, Fabian Frederick 写道: > s/gamc/gmac/ > > Signed-off-by: Fabian Frederick > --- > drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/e

Re: [PATCH] net: macb: Add 64 bit addressing support for GEM

2016-08-10 Thread David Miller
From: Harini Katakam Date: Tue, 9 Aug 2016 13:15:53 +0530 > This patch adds support for 64 bit addressing and BDs. > -> Enable 64 bit addressing in DMACFG register. > -> Set DMA mask when design config register shows support for 64 bit addr. > -> Add new BD words for higher address when 64 bit DM

Re: [PATCH net-next] qed*: Add support for ethtool link_ksettings callbacks.

2016-08-10 Thread David Miller
From: Sudarsana Reddy Kalluru Date: Tue, 9 Aug 2016 03:51:23 -0400 > This patch adds the driver implementation for ethtool link_ksettings > callbacks. qed driver now defines/uses the qed specific masks for > representing link capability values. qede driver maps these values to > to new link modes

Re: [PATCH] net: ip_finish_output_gso: If skb_gso_network_seglen exceeds MTU, allow segmentation for gre tunneled skbs

2016-08-10 Thread David Miller
From: we...@ucloud.cn Date: Tue, 9 Aug 2016 15:04:21 +0800 > From: wenxu > > commit b8247f095edd ("net: ip_finish_output_gso: If skb_gso_network_seglen > exceeds MTU, allow segmentation for local udp tunneled skbs") > > Given: > - tap0 and ovs-gre > - ovs-gre stacked on eth0, eth0 ha

Re: [PATCH v3 00/13] net: ethernet: ti: cpsw: split driver data and per ndev data

2016-08-10 Thread David Miller
From: Ivan Khoronzhuk Date: Wed, 10 Aug 2016 02:22:31 +0300 > In dual_emac mode the driver can handle 2 network devices. Each of them can > use > its own private data and common data/resources. This patchset splits common > driver > data/resources and private per net device data. > It leads to:

Re: [PATCH v6 1/1] rps: Inspect PPTP encapsulated by GRE to get flow hash

2016-08-10 Thread David Miller
From: f...@ikuai8.com Date: Tue, 9 Aug 2016 12:38:24 +0800 > From: Gao Feng > > The PPTP is encapsulated by GRE header with that GRE_VERSION bits > must contain one. But current GRE RPS needs the GRE_VERSION must be > zero. So RPS does not work for PPTP traffic. > > In my test environment, the

Re: [PATCH 0/2] Convert qdisc linked list into a hashtable

2016-08-10 Thread David Miller
From: Jiri Kosina Date: Wed, 10 Aug 2016 11:00:42 +0200 (CEST) > This is a respin of the v6 of the original patch [1], split into two-patch > series as requested by davem; first patch fixes all symbol conflicts > that'd happen once netdevice.h starts to include hashtable.h, the second > one pe

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-10 Thread Benjamin Herrenschmidt
On Wed, 2016-08-10 at 08:47 -0700, Alexander Duyck wrote: > > The problem is if we don't do this it becomes possible for a guest to > essentially cripple a device on the host by just accessing VPD > regions that aren't actually viable on many devices.  And ? We already can cripple the device in s

[PATCH 1/1 v3] net: i40e: use matching format identifiers

2016-08-10 Thread Heinrich Schuchardt
i is defined as int but output as %u several times. Adjust the format identifiers. Signed-off-by: Heinrich Schuchardt --- v3: fix typos in title, old title: net: i10e: use matching format indentifiers v2: Keep definition of i as int. drivers/net/ethernet/intel/i40e/i4

Re: [PATCH v6 2/3] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-10 Thread Rob Herring
On Wed, Aug 10, 2016 at 11:20:07AM +0530, Kedareswara rao Appana wrote: > Device-tree binding documentation for xilinx gmiitorgmii converter. > > Signed-off-by: Kedareswara rao Appana > --- > Changes for v6: > ---> Removed mdio description as suggested by Florian. > Changes for v5: > ---> Fixed I

Re: [PATCH v2 1/1] Fix unbound rx buffer

2016-08-10 Thread David Miller
All of these patches need to be resubmitted with a proper subsystem prefix in the Subject line. Thank you.

Re: [PATCH] bonding: Allow tun-interfaces as slaves

2016-08-10 Thread Jörn Engel
On Wed, Aug 10, 2016 at 02:26:49PM -0700, Jörn Engel wrote: > > Having to set one more parameter is a bit annoying. It would have to be > documented in a prominent place and people would still often miss it. > So I wonder if we can make the interface a little nicer. > > Options: > - If there are

Re: [PATCH net-next 2/4] flow_dissector: Get vlan priority in addition to vlan id

2016-08-10 Thread kbuild test robot
Hi Hadar, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Hadar-Hen-Zion/flow_dissector-Get-vlan-info-from-skb-vlan_tci-instead-of-skb-data/20160811-042500 config: cris-etrax-100lx_v2_defconfig (attached as .config) compiler: cris-linux-gcc (GCC) 4.6.3

[PATCH 2/9] dsa: mv88e6xxx: hide unused functions

2016-08-10 Thread Arnd Bergmann
When CONFIG_NET_DSA_HWMON is disabled, we get warnings about two unused functions whose only callers are all inside of an #ifdef: drivers/net/dsa/mv88e6xxx.c:3257:12: 'mv88e6xxx_mdio_page_write' defined but not used [-Werror=unused-function] drivers/net/dsa/mv88e6xxx.c:3244:12: 'mv88e6xxx_mdio_pa

[PATCH 0/9] v4.8 build regressions

2016-08-10 Thread Arnd Bergmann
This is a set of patches to address build warnings and errors that have come up in linux-4.8 but that worked fine in v4.7. I've added the tinyconfig warning patch in there as well, which is not a regression but is something that shows up in the kernelci.org build bots. The other patches address iss

Re: [PATCH] net: ipconfig: fix use after free

2016-08-10 Thread David Miller
From: Geert Uytterhoeven Date: Wed, 10 Aug 2016 12:00:35 +0200 > Hi Uwe, > > On Wed, Aug 10, 2016 at 11:44 AM, Uwe Kleine-König > wrote: >> ic_close_devs() calls kfree() for all devices's ic_device. Since commit >> 2647cffb2bc6 ("net: ipconfig: Support using "delayed" DHCP replies") >> the acti

Re: [PATCH net-next 2/4] flow_dissector: Get vlan priority in addition to vlan id

2016-08-10 Thread kbuild test robot
Hi Hadar, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Hadar-Hen-Zion/flow_dissector-Get-vlan-info-from-skb-vlan_tci-instead-of-skb-data/20160811-042500 config: m68k-sun3_defconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 4.9.0 reproduce

Re: [PATCH] ravb: use proper names for suspend/resume functions

2016-08-10 Thread David Miller
From: Niklas Söderlund Date: Wed, 10 Aug 2016 13:09:49 +0200 > The patch 'ravb: add sleep PM suspend/resume support' used incorrect > function names containing 'runtime' for the suspend and resume > functions. > > Reported-by: Sergei Shtylyov > Signed-off-by: Niklas Söderlund Applied, thanks.

[PATCH v2 0/3] Make /proc per net namespace objects belong to container

2016-08-10 Thread Dmitry Torokhov
Currently [almost] all /proc objects belong to the global root, even if data belongs to a given namespace within a container and (at least for sysctls) we work around permssions checks to allow container's root to access the data. This series changes ownership of net namespace /proc objects (/proc

[PATCH v2 2/3] proc: make proc entries inherit ownership from parent

2016-08-10 Thread Dmitry Torokhov
There are certain parameters that belong to net namespace and that are exported in /proc. They should be controllable by the container's owner, but are currently owned by global root and thus not available. Let's change proc code to inherit ownership of parent entry, and when create per-ns "net" p

[PATCH v2 1/3] netns: do not call pernet ops for not yet set up init_net namespace

2016-08-10 Thread Dmitry Torokhov
When CONFIG_NET_NS is disabled, registering pernet operations causes init() to be called immediately with init_net as an argument. Unfortunately this leads to some pernet ops, such as proc_net_ns_init() to be called too early, when init_net namespace has not been fully initialized. This causes issu

[PATCH v2 3/3] net: make net namespace sysctls belong to container's owner

2016-08-10 Thread Dmitry Torokhov
If net namespace is attached to a user namespace let's make container's root owner of sysctls affecting said network namespace instead of global root. This also allows us to clean up net_ctl_permissions() because we do not need to fudge permissions anymore for the container's owner since it now ow

Re: [PATCH RESEND net-next 13/15] smc: receive data from RMBE

2016-08-10 Thread David Miller
From: Ursula Braun Date: Wed, 10 Aug 2016 15:44:00 +0200 > But there are still usages (and conn->rx_curs_confirmed is one of > them), where I need an 8-byte cursor field to be read and written > atomicaly, even though I do not care whether the write operation has > been beaten or not. But I do ca

Re: [PATCH v3 13/13] net: ethernet: ti: cpsw: move ale, cpts and drivers params under cpsw_common

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > The ale, cpts, version, rx_packet_max, bus_freq, interrupt pacing > parameters are common per net device that uses the same h/w. So, > move them to common driver structure. > > Signed-off-by: Ivan Khoronzhuk Reviewed-by: Mugunthan V

Re: [PATCH v3 10/13] net; ethernet: ti: cpsw: move irq stuff under cpsw_common

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > The irq data are common for net devs in dual_emac mode. So no need to > hold these data in every priv struct, move them under cpsw_common. > Also delete irq_num var, as after optimization it's not needed. > Correct number of irqs to 2,

Re: [PATCH] bonding: Allow tun-interfaces as slaves

2016-08-10 Thread Jörn Engel
On Tue, Aug 09, 2016 at 04:51:04PM -0700, Jay Vosburgh wrote: > > This will cause balance-rr to add the slave to the bond if any > device's dev_set_mac_address call fails. > > If a bond of regular Ethernet devices is connected to a static > link aggregation (Etherchannel channel group

Re: [RFC PATCH 2/3] net: macb: Add support for 1588 for Zynq Ultrascale+ MPSoC

2016-08-10 Thread Andrei Pistirica
Hi Punnaiah, cpts_match(...) has a way to parse frames, while ptp_classify_raw identifies the underlying protocol (in case the frames are parsed on data path), or tx/rxtstamp callbacks can be used with PTP events. But, there is comment in ptp_classify.h which worries me. Unfortunately, I ca

RE: [RFC PATCH v5 2/3] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-10 Thread Appana Durga Kedareswara Rao
Hi Florian, Thanks for the review... > > On 08/09/2016 02:34 AM, Kedareswara rao Appana wrote: > > Device-tree binding documentation for xilinx gmiitorgmii converter. > > > > Signed-off-by: Kedareswara rao Appana > > --- > > Changes for v5: > > ---> Fixed Indentation in the example as s

Re: [PATCH v3 12/13] net: ethernet: ti: cpsw: move napi struct to cpsw_common

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > The napi structs are common for both net devices in dual_emac > mode, In order to not hold duplicate links to them, move to > cpsw_common. > > Signed-off-by: Ivan Khoronzhuk > --- Reviewed-by: Mugunthan V N Regards Mugunthan V N

Re: [PATCH] drivers: net: cpsw: fix kmemleak false-positive reports for sk buffers

2016-08-10 Thread Mugunthan V N
On Tuesday 09 August 2016 05:39 PM, Grygorii Strashko wrote: > Kmemleak reports following false positive memory leaks for each sk > buffers allocated by CPSW (__netdev_alloc_skb_ip_align()) in > cpsw_ndo_open() and cpsw_rx_handler(): > > unreferenced object 0xea915000 (size 2048): > comm "system

Re: [PATCH v3 00/13] net: ethernet: ti: cpsw: split driver data and per ndev data

2016-08-10 Thread Grygorii Strashko
On 08/10/2016 02:22 AM, Ivan Khoronzhuk wrote: In dual_emac mode the driver can handle 2 network devices. Each of them can use its own private data and common data/resources. This patchset splits common driver data/resources and private per net device data. It leads to: - reduce memory usage - i

[PATCH v2] drivers: net: cpsw: fix kmemleak false-positive reports for sk buffers

2016-08-10 Thread Grygorii Strashko
Kmemleak reports following false positive memory leaks for each sk buffers allocated by CPSW (__netdev_alloc_skb_ip_align()) in cpsw_ndo_open() and cpsw_rx_handler(): unreferenced object 0xea915000 (size 2048): comm "systemd-network", pid 713, jiffies 4294938323 (age 102.180s) hex dump (first

RE: [RFC PATCH v5 3/3] net: phy: Add gmiitorgmii converter support

2016-08-10 Thread Appana Durga Kedareswara Rao
Hi Florian, Thanks for the review... > > > > This converter sits between the MAC and the external phy MAC <==> > > GMII2RGMII <==> RGMII_PHY > > This looks good, just a few things, see below: Thanks... > > +config XILINX_GMII2RGMII > > + tristate "Xilinx GMII2RGMII converter driv

Re: [PATCH 2/2] ravb: add sleep PM suspend/resume support

2016-08-10 Thread David Miller
From: Sergei Shtylyov Date: Wed, 10 Aug 2016 13:47:26 +0300 >Ugh, I should have reviewed the patch earlier -- I was postponing this >until I have the time to test it... Since the patch did have some >visible issues, it should've been recast before applying. DaveM, >please in the f

[PATCH 0/2] Convert qdisc linked list into a hashtable

2016-08-10 Thread Jiri Kosina
This is a respin of the v6 of the original patch [1], split into two-patch series as requested by davem; first patch fixes all symbol conflicts that'd happen once netdevice.h starts to include hashtable.h, the second one performs the actual switch to hashtable. I've preserved Cong's Reviewed-by

Re: qdisc hash table changes...

2016-08-10 Thread David Miller
From: Jiri Kosina Date: Tue, 9 Aug 2016 11:02:43 +0200 (CEST) > Does that strictly have to be a show-stopper for the qdisc hash > conversion, given the fact that the whole tree is building properly? I guess not. Please submit that change as a series, first patches that correct the build requir

Re: [PATCH] [v7] net: emac: emac gigabit ethernet controller driver

2016-08-10 Thread Florian Fainelli
On 08/10/2016 09:38 AM, Timur Tabi wrote: > Florian Fainelli wrote: >>> >Is there an easy way for me to stop the RX path before I set >>> rxbuf_size? >>> > Some netif_xxx function I can call? >> napi_disable() should take care of that. > > It appears that if I call netif_stop_queue() *afer* calli

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-10 Thread Hannes Reinecke
On 08/09/2016 08:12 PM, Alexander Duyck wrote: > On Tue, Aug 9, 2016 at 5:54 AM, Alexey Kardashevskiy wrote: >> On 10/02/16 08:04, Bjorn Helgaas wrote: >>> On Wed, Jan 13, 2016 at 12:25:34PM +0100, Hannes Reinecke wrote: PCI-2.2 VPD entries have a maximum size of 32k, but might actually

Re: [Patch net 0/5] net_sched: tc action fixes and updates

2016-08-10 Thread Jamal Hadi Salim
On 16-08-08 04:46 PM, Cong Wang wrote: This patchset fixes several regressions caused by the previous code refactor. Thanks to Jamal for catching them! Note, patch 3/5 and 4/5 are not strictly necessary, I just want to carry them together. Cong - there's good news and bad news. The good news

Re: [PATCH v3 09/13] net: ethernet: ti: cpsw: move cpdma resources to cpsw_common

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > Every net device private struct holds links to shared cpdma resources. > No need to save and every time synchronize these resources per net dev. > So, move it to common driver struct. > > Signed-off-by: Ivan Khoronzhuk Reviewed-by: M

Re: [PATCH] bonding: Allow tun-interfaces as slaves

2016-08-10 Thread Jay Vosburgh
Ding Tianhong wrote: >On 2016/8/10 7:51, Jay Vosburgh wrote: >> Jörn Engel wrote: >> >>> On Tue, Aug 09, 2016 at 12:06:36PM -0700, David Miller wrote: > On Tue, Aug 09, 2016 at 09:28:45PM +0800, Ding Tianhong wrote: > > Simply not checking errors when setting the mac address solves

Re: [PATCH v3 11/13] net: ethernet: ti: cpsw: move platform data and slaves info to cpsw_common

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > These data are common for net devs in dual_emac mode. No need to hold > it for every priv instance, so move them under cpsw_common. > > Signed-off-by: Ivan Khoronzhuk Reviewed-by: Mugunthan V N Regards Mugunthan V N

Re: [PATCH v3 06/13] net: ethernet: ti: cpsw: create common struct to hold shared driver data

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > This patch simply create holder for common data and as a start moves > pdev var to it. > > Signed-off-by: Ivan Khoronzhuk Reviewed-by: Mugunthan V N Regards Mugunthan V N

[Patch net v2 1/5] net_sched: remove the leftover cleanup_a()

2016-08-10 Thread Cong Wang
After refactoring tc_action into tcf_common, we no longer need to cleanup temporary "actions" in list, they are permanently stored in the hashtable. Fixes: a85a970af265 ("net_sched: move tc_action into tcf_common") Reported-by: Jamal Hadi Salim Cc: Jamal Hadi Salim Signed-off-by: Cong Wang ---

Re: [PATCH v4 1/1] Add timer to handle OOM situations

2016-08-10 Thread Stefan Hajnoczi
On Thu, Aug 04, 2016 at 04:09:11PM +0200, ggar...@abra.uab.cat wrote: > From: Gerard Garcia > > Set up a rx timer to avoid packets being discarded when there is not > available memory in the host. > > Signed-off-by: Gerard Garcia > > --- > v4: > * Fix style. > > v3: > * Avoid race conditio

[PATCH 2/2] net: sched: convert qdisc linked list to hashtable

2016-08-10 Thread Jiri Kosina
From: Jiri Kosina Convert the per-device linked list into a hashtable. The primary motivation for this change is that currently, we're not tracking all the qdiscs in hierarchy (e.g. excluding default qdiscs), as the lookup performed over the linked list by qdisc_match_from_root() is rather ex

Re: [PATCH RESEND] net: can: Introduce MEN 16Z192-00 CAN controller driver

2016-08-10 Thread Oliver Hartkopp
Hi Andreas, On 08/09/2016 08:10 AM, Andreas Werner wrote: On Mon, Aug 08, 2016 at 04:35:34PM +0200, Wolfgang Grandegger wrote: You specify here one echo_skb but it's not used anywhere. Local loopback seems not to be implemented. Agree with you, will set it to "0". No, the local loopback

Re: [PATCH v2 1/1] Fix unbound rx buffer

2016-08-10 Thread Stefan Hajnoczi
On Thu, Aug 04, 2016 at 04:09:57PM +0200, ggar...@abra.uab.cat wrote: > From: Gerard Garcia > > Reset connection and close rx socket when the sender is ignoring our > announced available buffer. > > Signed-off-by: Gerard Garcia > > --- > v2: > * Get vvs->rx_lock lock before checking if next

[Patch net v2 4/5] net_sched: move tc offload macros to pkt_cls.h

2016-08-10 Thread Cong Wang
struct tcf_exts belongs to filters, should not be visible to plain tc actions. Cc: Ido Schimmel Signed-off-by: Cong Wang --- include/net/act_api.h | 19 +++ include/net/pkt_cls.h | 19 +++ 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/include/n

[Patch net v2 0/5] net_sched: tc action fixes and updates

2016-08-10 Thread Cong Wang
This patchset fixes a few regressions caused by the previous code refactor. Thanks to Jamal for catching them! Note, patch 3/5 and 4/5 are not strictly necessary for this patchset, I just want to carry them together. --- v2: replace flex_array with regular dynamic array keep tcf_action_stats_

[Patch net v2 2/5] net_sched: remove an unnecessary list_del()

2016-08-10 Thread Cong Wang
This list_del() for tc action is not needed actually, because we only use this list to chain bulk operations, therefore should not be carried for latter operations. Fixes: ec0595cc4495 ("net_sched: get rid of struct tcf_common") Cc: Jamal Hadi Salim Signed-off-by: Cong Wang --- net/sched/act_ap

[Patch net v2 3/5] net_sched: fix a typo in tc_for_each_action()

2016-08-10 Thread Cong Wang
It is harmless because all users pass 'a' to this macro. Fixes: 00175aec941e ("net/sched: Macro instead of CONFIG_NET_CLS_ACT ifdef") Cc: Amir Vadai Signed-off-by: Cong Wang --- include/net/act_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/act_api.h b/inc

[Patch net v2 5/5] net_sched: convert tcf_exts from list to pointer array

2016-08-10 Thread Cong Wang
As pointed out by Jamal, an action could be shared by multiple filters, so we can't use list to chain them any more after we get rid of the original tc_action. Instead, we could just save pointers to these actions in tcf_exts, since they are refcount'ed, so convert the list to an array of pointers.

Re: [PATCH RESEND net-next 13/15] smc: receive data from RMBE

2016-08-10 Thread Ursula Braun
On 08/09/2016 11:32 PM, David Miller wrote: From: Ursula Braun Date: Tue, 9 Aug 2016 12:12:58 +0200 + xchg(&conn->rx_curs_confirmed.acurs, +smc_curs_read(conn->local_tx_ctrl.cons.acurs)); Why in the world do you need to use xchg() in all of these places?

Re: [Patch net 0/5] net_sched: tc action fixes and updates

2016-08-10 Thread Cong Wang
On Wed, Aug 10, 2016 at 7:34 AM, Jamal Hadi Salim wrote: > On 16-08-08 04:46 PM, Cong Wang wrote: >> >> This patchset fixes several regressions caused by the previous >> code refactor. Thanks to Jamal for catching them! >> > > Cong, > > Good news: oops gone. I havent done more testing than I did >

Re: [PATCH 2/2] ravb: add sleep PM suspend/resume support

2016-08-10 Thread Niklas Söderlund
On 2016-08-10 13:40:51 +0300, Sergei Shtylyov wrote: > Hello. > > On 8/3/2016 4:56 PM, Niklas Söderlund wrote: > > > The interface would not function after the system had been woken up > > after have been suspended (echo mem > /sys/power/state) cycle. The > > reason for this is that all device re

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-10 Thread Alexander Duyck
On Tue, Aug 9, 2016 at 5:03 PM, Benjamin Herrenschmidt wrote: > On Tue, 2016-08-09 at 11:12 -0700, Alexander Duyck wrote: >> >> The PCI spec is what essentially assumes that there is only one block. >> If I am not mistaken in the case of this device the second block here >> actually contains devic

[PATCH 15/21] net: thunderx: Improvement for MBX interface debug messages

2016-08-10 Thread sunil . kovvuri
From: Radoslaw Biernacki Adding debug messages in case of NACK for a mailbox message, also did small cleanups. Signed-off-by: Radoslaw Biernacki Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nic_main.c | 16 ++-- drivers/net/ethernet/cavium/thunder/nicvf_m

[PATCH 1/1 linux-next] net: hns: fix typo in g_gmac_stats_string[]

2016-08-10 Thread Fabian Frederick
s/gamc/gmac/ Signed-off-by: Fabian Frederick --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c index 1235c7f..1e1eb92

[PATCH v6 3/3] net: phy: Add gmiitorgmii converter support

2016-08-10 Thread Kedareswara rao Appana
This patch adds support for gmiitorgmii converter. The GMII to RGMII IP core provides the Reduced Gigabit Media Independent Interface (RGMII) between Ethernet physical media Devices and the Gigabit Ethernet controller. This core can Switch dynamically between the three different speed modes of Ope

[PATCH v6 2/3] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-10 Thread Kedareswara rao Appana
Device-tree binding documentation for xilinx gmiitorgmii converter. Signed-off-by: Kedareswara rao Appana --- Changes for v6: ---> Removed mdio description as suggested by Florian. Changes for v5: ---> Fixed Indentation in the example as suggested by Michal. Changes for v4: --> Modified compatibl

[PATCH] net/xfrm_input: fix possible NULL deref of tunnel.ip6->parms.i_key

2016-08-10 Thread Alexey Kodanev
Running LTP 'icmp-uni-basic.sh -6 -p ipcomp -m tunnel' test over openvswitch + veth can trigger kernel panic: BUG: unable to handle kernel NULL pointer dereference at 00e0 IP: [] xfrm_input+0x82/0x750 ... [] xfrm6_rcv_spi+0x1e/0x20 [] xfrm6_tunnel_rcv+0x42/0x50 [xfrm6_tunnel]

[iproute PATCH] ip-route: Pretty-print expired routes

2016-08-10 Thread Phil Sutter
Instead of printing 'expires -23sec' for expired (but not yet garbage collected) routes, print 'expired 23sec' instead. Signed-off-by: Phil Sutter --- ip/iproute.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ip/iproute.c b/ip/iproute.c index c52294d298210..a

Re: [PATCH v3 07/13] net: ethernet: ti: cpsw: replace pdev on dev

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > No need to hold pdev link when only dev is needed. > This allows to simplify a bunch of cpsw->pdev->dev now and farther. > > Signed-off-by: Ivan Khoronzhuk Reviewed-by: Mugunthan V N Regards Mugunthan V N

Re: [net-next v2 v2 1/2] bpf: Add bpf_current_task_in_cgroup helper

2016-08-10 Thread Daniel Borkmann
On 08/10/2016 06:40 AM, Sargun Dhillon wrote: On Tue, Aug 09, 2016 at 08:52:01PM -0700, Alexei Starovoitov wrote: On Tue, Aug 09, 2016 at 08:40:05PM -0700, Sargun Dhillon wrote: On Tue, Aug 09, 2016 at 08:27:32PM -0700, Alexei Starovoitov wrote: On Tue, Aug 09, 2016 at 06:26:37PM -0700, Sargun

Re: [PATCH v3 08/13] net: ethernet: ti: cpsw: move links on h/w registers to cpsw_common

2016-08-10 Thread Mugunthan V N
On Wednesday 10 August 2016 04:52 AM, Ivan Khoronzhuk wrote: > The pointers on h/w registers are common for every cpsw_private > instance, so no need to hold them for every ndev. > > Signed-off-by: Ivan Khoronzhuk Reviewed-by: Mugunthan V N Regards Mugunthan V N

[PATCH 07/21] net: thunderx: Support for different LMAC types within BGX

2016-08-10 Thread sunil . kovvuri
From: Sunil Goutham On 88xx all LMACs in a BGX will be in same mode but on 81xx BGX can be split as two and there can be LMACs configured in different modes. These changes move lmac_type, lane2serdes fields into per lmac struct from BGX struct. Got rid of qlm_mode field which has become redundan

Re: [PATCH] bonding: Allow tun-interfaces as slaves

2016-08-10 Thread Ding Tianhong
On 2016/8/10 7:51, Jay Vosburgh wrote: > Jörn Engel wrote: > >> On Tue, Aug 09, 2016 at 12:06:36PM -0700, David Miller wrote: On Tue, Aug 09, 2016 at 09:28:45PM +0800, Ding Tianhong wrote: Simply not checking errors when setting the mac address solves the problem for me. No n

Re: [Patch net 0/5] net_sched: tc action fixes and updates

2016-08-10 Thread Jamal Hadi Salim
On 16-08-08 04:46 PM, Cong Wang wrote: This patchset fixes several regressions caused by the previous code refactor. Thanks to Jamal for catching them! Cong, Good news: oops gone. I havent done more testing than I did before; but looks good so far. Bad news: You have introduced a performance

[PATCH net v1 1/1] tipc: fix variable dereference before NULL check

2016-08-10 Thread Parthasarathy Bhuvaragan
In commit cf6f7e1d5109 ("tipc: dump monitor attributes"), I dereferenced a pointer before checking if its valid. This is reported by static check Smatch as: net/tipc/monitor.c:733 tipc_nl_add_monitor_peer() warn: variable dereferenced before check 'mon' (see line 731) In this commit, we check

Re: [RFC PATCH 2/3] net: macb: Add support for 1588 for Zynq Ultrascale+ MPSoC

2016-08-10 Thread Michal Simek
Hi Nicolas, just a note: Here is the link to public Linux repo https://github.com/Xilinx/linux-xlnx Thanks, Michal On 9.8.2016 18:56, Punnaiah Choudary Kalluri wrote: > Hi Nicolas, > > 1588 implementation in cadence GEM IP we have in Zynq Ultascale+ MPSoC is > Different to the one in Zynq SOC

[PATCH 18/21] net: thunderx: Use napi_consume_skb for bulk free

2016-08-10 Thread sunil . kovvuri
From: Sunil Goutham This patch enables bulk freeing on the Tx side. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethe

Fwd: Re: [PATCH RESEND net-next 13/15] smc: receive data from RMBE

2016-08-10 Thread Ursula Braun
Dave, sorry, forget my previous mail from today. I now realize that xchg() does not help on 32-bit architectures. I have to think about alternatives here. Forwarded Message Subject: Re: [PATCH RESEND net-next 13/15] smc: receive data from RMBE Date: Wed, 10 Aug 2016 15:44:00

Re: [PATCH 1/2] net: ethernet: renesas: sh_eth: use phydev from struct net_device

2016-08-10 Thread Simon Horman
[CC linux-sh as some of those boards use this driver] On Wed, Aug 10, 2016 at 12:04:48AM +0200, Philippe Reynes wrote: > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy_dev in the private structure,

[PATCH 05/21] net: thunderx: Enable CQE_RX desc's extension fields

2016-08-10 Thread sunil . kovvuri
From: Sunil Goutham Unlike 88xx, CQE_RX descriptor's tunnelling extension i.e CQE_RX2_S is always enabled on 81xx/83xx and HW does insert these fields into CQE_RX. As a result receive buffer addresses will now be present at 7th word of CQE_RX instead of 6th. Enable CQE_RX2_S on 88xx pass 2.x as

[PATCH 04/21] net: thunderx: Set queue count based on number of CPUs

2016-08-10 Thread sunil . kovvuri
From: Sunil Goutham 81xx has only 4 CPUs, so it doesn't make sense to initialize entire Qset i.e 8 queues by default. Made changes to queue initialization to init queues equal to number of CPUs or 8 queues whichever is lesser. Also this will be applicable to VMs with VNIC VF attached and having l

RE: [PATCH net] bnx2x: don't reset chip on cleanup if PCI function is offline

2016-08-10 Thread Yuval Mintz
> > Why would the published resume() from pci_error_handlers be called in this > scenario? > > It isn't. That's why I specifically commented on commit message: "There are > two > cases though that another path is taken on the code". > > The code path reach bnx2x_chip_cleanup() on device removal

  1   2   >