Re: PATCH: netdev: add a cast NLMSG_OK to avoid a GCC warning in users' code

2015-09-10 Thread D. Hugh Redelmeier
| From: David Miller | From: "D. Hugh Redelmeier" | Date: Wed, 9 Sep 2015 16:24:07 -0400 (EDT) | > 1) netlink(3) says that the type of the second parameter is "int". | >From the synopsis: | >int NLMSG_OK(struct nlmsghdr *nlh, int len); | >Surely then "int" should be appropriate.

Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel

2015-09-10 Thread Robert Jarzmik
Petr Cvek writes: >> Should have been posted to linux arm kernel mailing list, unless my mailer >> failed ... >> > Searching for: > > "ARM: pxa: add resources to pxaficp_ir" > > did not found anything, same was for "ficp" in the > linux-arm-kernel/netdev/linux-kernel > mailing list archiv

Re: PATCH: netdev: add a cast NLMSG_OK to avoid a GCC warning in users' code

2015-09-10 Thread D. Hugh Redelmeier
| From: David Miller | Everyone either uses an unsigned type (such as "size_t") or adds an | explicit cast to an unsinged type for the second argument. That sounded odd to me. So I looked through the Fedora code base, as indexed by searchcode.com. This took a stupid amount of time so I didn't

Re: [PATCH net] netlink, mmap: transform mmap skb into full skb on taps

2015-09-10 Thread David Miller
From: Daniel Borkmann Date: Thu, 10 Sep 2015 20:05:46 +0200 > Ken-ichirou reported that running netlink in mmap mode for receive in > combination with nlmon will throw a NULL pointer dereference in > __kfree_skb() on nlmon_xmit(), in my case I can also trigger an "unable > to handle kernel paging

Fwd: man pages for traceroute6

2015-09-10 Thread Geof Sawaya
Refer to traceroute man page, and mentions that 'it is needless to copy the description from there' However, my system doesn't include traceroute Is there a buglist? Many thanks -- Geof -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vge

kreditlər

2015-09-10 Thread YesGrowth Loans®
Yaxşı gün, Mən xanım Rose Butler, YesGrowth kreditlər kimi tanınan tanınmış qanuni kredit şirkətinin icraçı agent edirəm. Bir pis kredit və ya sizin ödəmək üçün pul ehtiyacı olan edirsiniz? Bizim faiz dərəcəsi 3% təşkil edir. maraqlı əgər aşağıdakı formu doldurun. Tam adı: gender:

Re: [PATCH/RFC v2 net-next 1/4] phylib: Add phy_set_max_speed helper

2015-09-10 Thread Simon Horman
On Thu, Sep 10, 2015 at 09:14:34PM -0700, Florian Fainelli wrote: > Le 09/10/15 19:01, Simon Horman a écrit : > > Add a helper to allow ethernet drivers to limit the speed of a phy > > (that they are attached to). > > > > This mainly involves factoring out the business-end of > > of_set_phy_suppor

Re: [PATCH/RFC v2 net-next 1/4] phylib: Add phy_set_max_speed helper

2015-09-10 Thread Florian Fainelli
Le 09/10/15 19:01, Simon Horman a écrit : > Add a helper to allow ethernet drivers to limit the speed of a phy > (that they are attached to). > > This mainly involves factoring out the business-end of > of_set_phy_supported() and exporting a new symbol. > > This code seems to be open coded in sev

Re: [PATCH net-next] Revert "net/ipv6: add sysctl option accept_ra_min_hop_limit"

2015-09-10 Thread YOSHIFUJI Hideaki
Sabrina Dubroca wrote: > 2015-09-10, 14:52:45 +0900, YOSHIFUJI Hideaki wrote: >> Sabrina Dubroca wrote: >>> 2015-09-02, 16:11:10 -0700, David Miller wrote: The only thing I would entertain is potentially an adjustment of the default, working in concert with the TAHI folks to make sure t

Re: v2 of seccomp filter c/r patches

2015-09-10 Thread Alexei Starovoitov
On Thu, Sep 10, 2015 at 06:20:57PM -0600, Tycho Andersen wrote: > Hi all, > > Here is v2 of the seccomp filter c/r set. The patch notes have individual > changes from the last series, but there are two points not noted: > > * The series still does not allow us to correctly restore state for progr

Re: [PATCH v2 3/5] ebpf: add a way to dump an eBPF program

2015-09-10 Thread Alexei Starovoitov
On Thu, Sep 10, 2015 at 06:21:00PM -0600, Tycho Andersen wrote: > +static int bpf_prog_dump(union bpf_attr *attr, union bpf_attr __user *uattr) > +{ > + int ufd = attr->prog_fd; > + struct fd f = fdget(ufd); > + struct bpf_prog *prog; > + int ret = -EINVAL; > + > + prog = get_pr

[PATCH/RFC v2 net-next 3/4] ravb: Document binding for r8a7795 SoC

2015-09-10 Thread Simon Horman
From: Kazuya Mizuguchi This patch updates the ravb binding to support the r8a7795 SoC by: - Adding a compat string for the new hardware - Adding 25 named interrupts to binding for the new SoC; older SoCs continue to use a single multiplexed interrupt The example is also updated to reflect the

[PATCH/RFC v2 net-next 2/4] ravb: Provide dev parameter to DMA API

2015-09-10 Thread Simon Horman
From: Kazuya Mizuguchi This patch is in preparation for using this driver on arm64 where the implementation of __dma_alloc_coherent fails if a device parameter is not provided. Signed-off-by: Kazuya Mizuguchi Signed-off-by: Yoshihiro Shimoda Signed-off-by: Masaru Nagai [horms: squashed into a

[PATCH/RFC v2 net-next 4/4] ravb: Add support for r8a7795 SoC

2015-09-10 Thread Simon Horman
From: Kazuya Mizuguchi This patch supports the r8a7795 SoC by: - Using two interrupts + One for E-MAC + One for everything else + Both can be handled by the existing common interrupt handler, which affords a simpler update to support the new SoC. In future some consideration may be

[PATCH/RFC v2 net-next 0/4] ravb: Add support for r8a7795 SoC

2015-09-10 Thread Simon Horman
This series enhances the ravb driver to support the r8a7795 SoC. Changes: v1 -> v2 * Address extensive review from Sergei Shtylyov and Geert Uytterhoeven - In particular mandate all 25 interrupts in binding * Broke brinding change into a separate patch * New 100Mbit/s limit implementation in r

[PATCH/RFC v2 net-next 1/4] phylib: Add phy_set_max_speed helper

2015-09-10 Thread Simon Horman
Add a helper to allow ethernet drivers to limit the speed of a phy (that they are attached to). This mainly involves factoring out the business-end of of_set_phy_supported() and exporting a new symbol. This code seems to be open coded in several places, in several different variants. This code i

Re: [PATCH 2/3] net: irda: pxaficp_ir: convert to readl and writel

2015-09-10 Thread Petr Cvek
Dne 10.9.2015 v 13:14 Robert Jarzmik napsal(a): > Petr Cvek writes: > >> Dne 9.9.2015 v 08:25 Robert Jarzmik napsal(a): >>> Petr Cvek writes: >>> Dne 8.9.2015 v 22:24 Petr Cvek napsal(a): > > Did you defined resources somewhere? Actual resources are in > "pxa_ir_resources" varia

[PATCH net] openvswitch: Fix mask generation for nested attributes.

2015-09-10 Thread Jesse Gross
Masks were added to OVS flows in a way that was backwards compatible with userspace programs that did not generate masks. As a result, it is possible that we may receive flows that do not have a mask and we need to synthesize one. Generating a mask requires iterating over attributes and descending

Re: [PATCH net-next] Revert "net/ipv6: add sysctl option accept_ra_min_hop_limit"

2015-09-10 Thread Hangbin Liu
Hi Sabrina, 2015-09-10 17:19 GMT+08:00 Sabrina Dubroca : > Hello, > > 2015-09-10, 10:54:38 +0800, Hangbin Liu wrote: >> > Can we still modify the behavior of this sysctl? It's already been in >> > Linus's tree for a while, but if we can, I would rather restrict the >> > values we let the user writ

[PATCH] ebpf: emit correct src_reg for conditional jumps

2015-09-10 Thread Tycho Andersen
Instead of always emitting BPF_REG_X, let's emit BPF_REG_X only when the source actually is BPF_X. This causes programs generated by the classic converter to not be importable via bpf(), as the eBPF verifier checks that the src_reg is correct or 0. While not a problem yet, this will be a problem wh

[PATCH v2 1/5] ebpf: add a seccomp program type

2015-09-10 Thread Tycho Andersen
seccomp uses eBPF as its underlying storage and execution format, and eBPF has features that seccomp would like to make use of in the future. This patch adds a formal seccomp type to the eBPF verifier. The current implementation of the seccomp eBPF type is very limited, and doesn't support some in

v2 of seccomp filter c/r patches

2015-09-10 Thread Tycho Andersen
Hi all, Here is v2 of the seccomp filter c/r set. The patch notes have individual changes from the last series, but there are two points not noted: * The series still does not allow us to correctly restore state for programs that will use SECCOMP_FILTER_FLAG_TSYNC in the future. Given that we w

[PATCH v2 2/5] seccomp: make underlying bpf ref counted as well

2015-09-10 Thread Tycho Andersen
In the next patch, we're going to add a way to access the underlying filters via bpf fds. This means that we need to ref-count both the struct seccomp_filter objects and the struct bpf_prog objects separately, in case a process dies but a filter is still referred to by another process. Additionall

[PATCH v2 5/5] seccomp: add a way to attach a filter via eBPF fd

2015-09-10 Thread Tycho Andersen
This is the final bit needed to support seccomp filters created via the bpf syscall. The patch adds a new seccomp operation SECCOMP_MODE_FILTER_EBPF, which takes exactly one command (presumably to be expanded upon later when seccomp EBPFs support more interesting things) and an argument struct simi

[PATCH v2 4/5] seccomp: add a way to access filters via bpf fds

2015-09-10 Thread Tycho Andersen
This patch adds a way for a process that is "real root" to access the seccomp filters of another process. The process first does a PTRACE_SECCOMP_GET_FILTER_FD to get an fd with that process' seccomp filter attached, and then iterates on this with PTRACE_SECCOMP_NEXT_FILTER using bpf(BPF_PROG_DUMP)

[PATCH v2 3/5] ebpf: add a way to dump an eBPF program

2015-09-10 Thread Tycho Andersen
This commit adds a way to dump eBPF programs. The initial implementation doesn't support maps, and therefore only allows dumping seccomp ebpf programs which themselves don't currently support maps. v2: don't export a prog_id for the filter Signed-off-by: Tycho Andersen CC: Kees Cook CC: Will Dr

Re: [pve-devel] bridge vlan range, kernel 4.1 : "message truncated" warning when too much vlans defined

2015-09-10 Thread roopa
On 9/10/15, 3:58 PM, David Miller wrote: From: roopa Date: Thu, 10 Sep 2015 15:26:30 -0700 On 9/9/15, 11:40 PM, Alexandre DERUMIER wrote: Hi, This still not fixed in iproute 4.2. Is they any plan to increase the rtnl_dump_filter buffer size soon ? Instead of increasing the default size, it

Re: [pve-devel] bridge vlan range, kernel 4.1 : "message truncated" warning when too much vlans defined

2015-09-10 Thread David Miller
From: roopa Date: Thu, 10 Sep 2015 15:26:30 -0700 > On 9/9/15, 11:40 PM, Alexandre DERUMIER wrote: >> Hi, >> >> This still not fixed in iproute 4.2. >> >> Is they any plan to increase the rtnl_dump_filter buffer size soon ? > > Instead of increasing the default size, it would be nicer if this was

Re: [pve-devel] bridge vlan range, kernel 4.1 : "message truncated" warning when too much vlans defined

2015-09-10 Thread roopa
On 9/9/15, 11:40 PM, Alexandre DERUMIER wrote: Hi, This still not fixed in iproute 4.2. Is they any plan to increase the rtnl_dump_filter buffer size soon ? Instead of increasing the default size, it would be nicer if this was configurable for iproute2 (I haven't looked yet). -- To unsubsc

[PATCH 2/5] lan78xx: Add PHYLIB and MICROCHIP_PHY as default config.

2015-09-10 Thread Woojung.Huh
Add PHYLIB and MICROCHIP_PHY as default configuration for lan78xx. Repost with new order of patches. Signed-off-by: Woojung Huh --- drivers/net/usb/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig index 1610b79..d9ca7aa 100644 ---

[PATCH 3/5] lan78xx: update to use phylib

2015-09-10 Thread Woojung.Huh
Update to use phylib instead of mii_if_info. Repost with new order of patches. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 610 +++--- 1 file changed, 250 insertions(+), 360 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net

[PATCH 5/5] lan78xx: create lan78xx_get_mdix_status() & and lan78xx_set_mdix_status() for MDIX control

2015-09-10 Thread Woojung.Huh
Create lan78xx_get_mdix_status() and lan78xx_set_mdix_status() for MDIX control. Repost with new order of patches. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 88 +++ 1 file changed, 50 insertions(+), 38 deletions(-) diff --git a/drive

[PATCH 4/5] lan78xx: Remove phy defines in lan78xx.h and use defines in microchipphy.h

2015-09-10 Thread Woojung.Huh
Remove phy defines in lan78xx.h and use defines in include/linux/microchipphy.h. Repost with new order of patches. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 79 +-- drivers/net/usb/lan78xx.h | 192 -- 2 files changed,

[PATCH 1/5] lan78xx: check device ready bit (PMT_CTL_READY_) after reset phy

2015-09-10 Thread Woojung.Huh
Check device ready bit (PMT_CTL_READY_) after reset the PHY. Device may not be ready even if PHY_RST_ is cleared depends on configuration. Repost with new order of patches. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

RE: [PATCH 3/5] lan78xx: Add PHYLIB and MICROCHIP_PHY as default config.

2015-09-10 Thread Woojung.Huh
Thanks. Will repost as order you commented. > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Thursday, September 10, 2015 5:47 PM > To: Woojung Huh - C21699; da...@davemloft.net > Cc: netdev@vger.kernel.org > Subject: Re: [PATCH 3/5] lan78xx: Add PHYLIB a

Re: [PATCH 3/5] lan78xx: Add PHYLIB and MICROCHIP_PHY as default config.

2015-09-10 Thread Florian Fainelli
On 10/09/15 13:48, woojung@microchip.com wrote: > Add PHYLIB and MICROCHIP_PHY as default configuration for lan78xx. You would want to swap this patch and patch 2 to make sure that there is no user-visible breakage in between. > > Signed-off-by: Woojung Huh > --- > drivers/net/usb/Kconfig

[PATCHv2 RFC] RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats

2015-09-10 Thread Sowmini Varadhan
Many commonly used functions like getifaddrs() invoke RTM_GETLINK to dump the interface information, and do not need the the AF_INET6 statististics that are always returned by default from rtnl_fill_ifinfo(). Computing the statistics can be an expensive operation that impacts scaling, so it is de

xfrm4_garbage_collect reaching limit

2015-09-10 Thread Dan Streetman
Hi Steffen, I've been working with Jay on a ipsec issue, which I believe he discussed with you. In this case the xfrm4_garbage_collect is returning error because the number of xfrm4 dst entries has exceeded twice the gc_thresh, which causes new allocations of xfrm4 dst objects to fail, thus makin

[PATCH 1/5] lan78xx: check device ready bit (PMT_CTL_READY_) after reset phy

2015-09-10 Thread Woojung.Huh
Check device ready bit (PMT_CTL_READY_) after reset the PHY. Device may not be ready even if PHY_RST_ is cleared depends on configuration. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/lan78xx.c b/driv

[PATCH 3/5] lan78xx: Add PHYLIB and MICROCHIP_PHY as default config.

2015-09-10 Thread Woojung.Huh
Add PHYLIB and MICROCHIP_PHY as default configuration for lan78xx. Signed-off-by: Woojung Huh --- drivers/net/usb/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig index 1610b79..d9ca7aa 100644 --- a/drivers/net/usb/Kconfig +++ b/dri

[PATCH 5/5] lan78xx: Create lan78xx_get_mdix_status() and

2015-09-10 Thread Woojung.Huh
Create lan78xx_get_mdix_status() and lan78xx_set_mdix_status() for MDIX control. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 88 +++ 1 file changed, 50 insertions(+), 38 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/

[PATCH 4/5] lan78xx: Remove phy defines in lan78xx.h and use defines in microchipphy.h

2015-09-10 Thread Woojung.Huh
Remove phy defines in lan78xx.h and use defines in include/linux/microchipphy.h. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 79 +-- drivers/net/usb/lan78xx.h | 192 -- 2 files changed, 40 insertions(+), 231 deletions(-)

[PATCH 2/5] lan78xx: update to use phylib

2015-09-10 Thread Woojung.Huh
Update to use phylib instead of mii_if_info. Signed-off-by: Woojung Huh --- drivers/net/usb/lan78xx.c | 610 +++--- 1 file changed, 250 insertions(+), 360 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index d0d8790..50c91

[PATCH net v2] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
Consider sctp module is unloaded and is being requested because an user is creating a sctp socket. During initialization, sctp will add the new protocol type and then initialize pernet subsys: status = sctp_v4_protosw_init(); if (status) goto err_protosw_init;

Re: [PATCH RFC] RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats

2015-09-10 Thread David Miller
From: Sowmini Varadhan Date: Thu, 10 Sep 2015 16:16:49 -0400 > @@ -1272,7 +1273,7 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct > net_device *dev, > if (!(af = nla_nest_start(skb, af_ops->family))) > goto nla_put_failure; > > -

[PATCH RFC] RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 stats

2015-09-10 Thread Sowmini Varadhan
Many commonly used functions like getifaddrs() invoke RTM_GETLINK to dump the interface information, and do not need the the AF_INET6 statististics that are always returned by default from rtnl_fill_ifinfo(). Computing the statistics can be an expensive operation that impacts scaling, so it is de

RE: [Intel-wired-lan] [PATCH] ixgbe: Limit lowest interrupt rate for adaptive interrupt moderation to 12K

2015-09-10 Thread Singh, Krishneil K
-Original Message- From: Intel-wired-lan [mailto:intel-wired-lan-boun...@lists.osuosl.org] On Behalf Of Jeff Kirsher Sent: Wednesday, September 2, 2015 3:07 AM To: Alexander Duyck Cc: netdev@vger.kernel.org; intel-wired-...@lists.osuosl.org Subject: Re: [Intel-wired-lan] [PATCH] ixgbe: L

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
Em 10-09-2015 16:14, Vlad Yasevich escreveu: On 09/10/2015 02:35 PM, Marcelo Ricardo Leitner wrote: On Thu, Sep 10, 2015 at 01:24:54PM -0300, Marcelo Ricardo Leitner wrote: On Thu, Sep 10, 2015 at 11:50:06AM -0400, Vlad Yasevich wrote: On 09/10/2015 10:22 AM, Marcelo Ricardo Leitner wrote: Em

[GIT] Networking

2015-09-10 Thread David Miller
1) Fix out-of-bounds array access in netfilter ipset, from Jozsef Kadlecsik. 2) Use correct free operation on netfilter conntrack templates, from Daniel Borkmann. 3) Fix route leak in SCTP, from Marcelo Ricardo Leitner. 4) Fix sizeof(pointer) in mac80211, from Thierry Reding. 5) Fix cach

[PATCH v2] igb: don't unmap NULL hw_addr

2015-09-10 Thread Jarod Wilson
I've got a startech thunderbolt dock someone loaned me, which among other things, has the following device in it: 08:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) This hotplugs just fine (kernel 4.2.0 plus a patch or two here): [ 863.020315] igb: Intel(R)

iproute2 v7: full ss json support and general output simplification

2015-09-10 Thread Matthias Tafelmeier
- add full JSON support for ss - Patchset provides a general and easy to use abstraction to extend ss later - Patchset size is large to minimize daily use ("user" should not deal with formation (json, human readble) later on) - Patches 7/10 and 8/10 illustrate how to extend ss for new data

[PATCH v7 07/10] ss: symmetrical subhandler output extension example

2015-09-10 Thread Matthias Tafelmeier
This small sized patch shall convey the locations which have to be changed for a symmetrical output extension. Symmetrical means in this context all existing semantically related handlers in the diverse formatters (for hr and json up to now). Suggested-by: Hagen Paul Pfeifer Signed-off-by: Matthi

[PATCH v7 06/10] ss: renaming and export of current_filter

2015-09-10 Thread Matthias Tafelmeier
Exported current_filter as ss_current_filter, because in the fmt handlers, I need that piece of info to resolve out issues of json. Signed-off-by: Matthias Tafelmeier --- misc/ss.c | 154 +++--- 1 file changed, 78 insertions(+), 76 deletion

[PATCH v7 10/10] ss: activate json_writer excluded logic

2015-09-10 Thread Matthias Tafelmeier
This small patch extends the lib json_writer module for formerly deactivated functionality. Signed-off-by: Matthias Tafelmeier --- include/json_writer.h | 1 + lib/json_writer.c | 7 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/json_writer.h b/include/json_wr

[PATCH v7 01/10] ss: rooted out ss type declarations for output formatters

2015-09-10 Thread Matthias Tafelmeier
The prospected output formatters and ss do share type declarations like slabstat or tcpstat so that the decision has been made to centralize those declarations in ss_types.h. Potential future declarations shall be placed there. The latter should help amend the extent of ss.c as well. Signed-off-b

[PATCH v7 02/10] ss: created formatters for json and hr

2015-09-10 Thread Matthias Tafelmeier
This patch creates a central formatter module that acts as a kind of switch. From there, more specific handler modules for the certain output formats are called. Up to now, humand readable and json do exist. That prepares ss for potential output format extensions in the future. With the help of su

[PATCH v7 05/10] ss: replaced old output with new generic output mechanisms

2015-09-10 Thread Matthias Tafelmeier
This patch just adds the -j and --json flag to ss. Also it ensures proper stats components bracketization – that goes for ex. TCP, UDP, NETLINK etc. Moreover, this patch prevents human readable headers to be printed. Most importantly, with this patch, the new prepared interface to the generic out

[PATCH v7 09/10] ss: fixed free on local array for valid json output

2015-09-10 Thread Matthias Tafelmeier
Minor fix to enable json output. Freeing of automatic char array name which will get freed after function stack cleanup. Another one after tcp_stats_fmt for freeing automatic tcpstats struct instance. Signed-off-by: Matthias Tafelmeier --- misc/ss.c | 6 -- 1 file changed, 6 deletions(-) di

[PATCH v7 04/10] ss: prepare timer for output handler usage

2015-09-10 Thread Matthias Tafelmeier
Minor preparation Patch Renamed, and exported timer to not have to pass it as a function local parameter argument. Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen Paul Pfeifer --- misc/ss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/ss.c b/misc/ss.c index 4

[PATCH v7 03/10] ss: removed obsolet fmt functions

2015-09-10 Thread Matthias Tafelmeier
Those functions are obsoleted since the new fmt handler mechanism subsumes their tasks. Rendundancy would be contradictory to the new mechanism. Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen Paul Pfeifer --- misc/ss.c | 190 --

[PATCH v7 08/10] ss: symmetrical formatter extension example

2015-09-10 Thread Matthias Tafelmeier
This commit shall show shortly where to place changes when one wants to extend an ss output formatter with a new handler (format print procedure). The extension is done symmetrically. That means, every up to now existing formatter is extended with a semantically equivalent handler (hr and json form

[PATCH] net: smc91x: convert pxa dma to dmaengine

2015-09-10 Thread Robert Jarzmik
Convert the dma transfers to be dmaengine based, now pxa has a dmaengine slave driver. This makes this driver a bit more PXA agnostic. The driver was tested on pxa27x (mainstone) and pxa310 (zylonite), ie. only pxa platforms. Signed-off-by: Robert Jarzmik Cc: Russell King Cc: Arnd Bergmann ---

Re: [PATCH 2/4] vhost: move features to core

2015-09-10 Thread Sergei Shtylyov
Hello. On 09/10/2015 10:23 AM, Michael S. Tsirkin wrote: virtio 1 and any layout are core features, move them there. This fixes vhost test. Signed-off-by: Michael S. Tsirkin [...] diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c index d9c501e..f2882ac 100644 --- a/drivers/vhost/tes

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Vlad Yasevich
On 09/10/2015 02:35 PM, Marcelo Ricardo Leitner wrote: > On Thu, Sep 10, 2015 at 01:24:54PM -0300, Marcelo Ricardo Leitner wrote: >> On Thu, Sep 10, 2015 at 11:50:06AM -0400, Vlad Yasevich wrote: >>> On 09/10/2015 10:22 AM, Marcelo Ricardo Leitner wrote: Em 10-09-2015 10:24, Vlad Yasevich escr

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
On Thu, Sep 10, 2015 at 03:35:20PM -0300, Marcelo Ricardo Leitner wrote: > On Thu, Sep 10, 2015 at 01:24:54PM -0300, Marcelo Ricardo Leitner wrote: > > On Thu, Sep 10, 2015 at 11:50:06AM -0400, Vlad Yasevich wrote: > > > On 09/10/2015 10:22 AM, Marcelo Ricardo Leitner wrote: > > > > Em 10-09-2015 1

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
On Thu, Sep 10, 2015 at 01:24:54PM -0300, Marcelo Ricardo Leitner wrote: > On Thu, Sep 10, 2015 at 11:50:06AM -0400, Vlad Yasevich wrote: > > On 09/10/2015 10:22 AM, Marcelo Ricardo Leitner wrote: > > > Em 10-09-2015 10:24, Vlad Yasevich escreveu: > ... > > >> Then you can order sctp_net_init() suc

Re: [PATCH] igb: don't unmap hw_addr if its NULL

2015-09-10 Thread Jarod Wilson
Rustad, Mark D wrote: On Sep 9, 2015, at 9:07 PM, Jarod Wilson wrote: diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index e174fbb..a5e0022 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c

[PATCH net] netlink, mmap: transform mmap skb into full skb on taps

2015-09-10 Thread Daniel Borkmann
Ken-ichirou reported that running netlink in mmap mode for receive in combination with nlmon will throw a NULL pointer dereference in __kfree_skb() on nlmon_xmit(), in my case I can also trigger an "unable to handle kernel paging request". The problem is the skb_clone() in __netlink_deliver_tap_skb

Re: [PATCH net 1/2] tcp: generate CA_EVENT_TX_START on data frames

2015-09-10 Thread David Miller
From: Eric Dumazet Date: Wed, 09 Sep 2015 21:54:37 -0700 > From: Neal Cardwell > > Issuing a CC TX_START event on control frames like pure ACK > is a waste of time, as a CC should not care. > > Following patch needs this change, as we want CUBIC to properly track > idle time at a low cost, wit

Re: [PATCH net 2/2] tcp_cubic: better follow cubic curve after idle period

2015-09-10 Thread David Miller
From: Eric Dumazet Date: Wed, 09 Sep 2015 21:55:07 -0700 > From: Eric Dumazet > > Jana Iyengar found an interesting issue on CUBIC : > > The epoch is only updated/reset initially and when experiencing losses. > The delta "t" of now - epoch_start can be arbitrary large after app idle > as well

Re: [PATCH] igb: don't unmap hw_addr if its NULL

2015-09-10 Thread Rustad, Mark D
> On Sep 9, 2015, at 9:07 PM, Jarod Wilson wrote: > > diff --git a/drivers/net/ethernet/intel/igb/igb_main.c > b/drivers/net/ethernet/intel/igb/igb_main.c > index e174fbb..a5e0022 100644 > --- a/drivers/net/ethernet/intel/igb/igb_main.c > +++ b/drivers/net/ethernet/intel/igb/igb_main.c > @@ -282

Re: IFLA_INET6_[ICMP6]STATS

2015-09-10 Thread David Miller
From: Sowmini Varadhan Date: Thu, 10 Sep 2015 13:16:30 -0400 > On (09/10/15 10:13), David Miller wrote: >> I don't think using such a generic netlink flag works best, the >> IFLA_EXT_MASK is definitely more suitable. > > Ok, though this more of a IFLA_TRUNCATE_MASK than a IFLA_EXT_MASK. IFLA_EX

Re: IFLA_INET6_[ICMP6]STATS

2015-09-10 Thread Sowmini Varadhan
On (09/10/15 10:13), David Miller wrote: > I don't think using such a generic netlink flag works best, the > IFLA_EXT_MASK is definitely more suitable. Ok, though this more of a IFLA_TRUNCATE_MASK than a IFLA_EXT_MASK. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the b

Re: IFLA_INET6_[ICMP6]STATS

2015-09-10 Thread David Miller
From: Sowmini Varadhan Date: Thu, 10 Sep 2015 11:48:19 -0400 > On (09/10/15 08:43), roopa wrote: >> If you decide to use a flag, there is IFLA_EXT_MASK which is used to >> specify such filters from userspace today. >> >> /* New extended info filters for IFLA_EXT_MASK */ >> #define RTEXT_FILTER_V

Re: [PATCH net v3 0/2] xen-net{front,back}: respect user provided max_queues

2015-09-10 Thread David Miller
From: Wei Liu Date: Thu, 10 Sep 2015 11:18:56 +0100 > Wei Liu (2): > xen-netback: respect user provided max_queues > xen-netfront: respect user provided max_queues This looks better, series applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a

Re: [RFC net-next 01/10] qed: Add module with basic common support

2015-09-10 Thread David Miller
From: Yuval Mintz Date: Thu, 10 Sep 2015 16:54:12 +0300 > Documentation/networking/LICENSE.qlogic| 288 ++ I do not want to get into the habit of having to add copy after copy of the GPL v2 to the source tree, so this is rather inappropriate. Everything said in that file is explici

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
On Thu, Sep 10, 2015 at 11:50:06AM -0400, Vlad Yasevich wrote: > On 09/10/2015 10:22 AM, Marcelo Ricardo Leitner wrote: > > Em 10-09-2015 10:24, Vlad Yasevich escreveu: ... > >> Then you can order sctp_net_init() such that it happens first, then > >> protosw registration > >> happens, then control

Re: [PATCH v2 5/5] stmmac: replace if (netif_msg_type) by their netif_xxx counterpart

2015-09-10 Thread Joe Perches
On Thu, 2015-09-10 at 14:37 +0200, LABBE Corentin wrote: > replace all > if (netif_msg_type(priv)) dev_xxx(priv->devices, ...) > by the simplier macro netif_xxx(priv, hw, priv->dev, ...) Thanks. Trivia: > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > b/drivers/net/ethernet/st

Re: 4.1.0, kernel panic, pppoe_release

2015-09-10 Thread Guillaume Nault
On Fri, Jul 17, 2015 at 09:16:14PM +0300, Denys Fedoryshchenko wrote: > Probably my knowledge of kernel is not sufficient, but i will try few > approaches. > One of them to add to pppoe_unbind_sock_work: > > pppox_unbind_sock(sk); > +/* Signal the death of the socket. */ >

RE: [Intel-wired-lan] [PATCH] igb: don't unmap hw_addr if its NULL

2015-09-10 Thread Fujinaka, Todd
Thanks! I tried testing this sort of thing last spring, but there just wasn't a lot of hardware available to me and things weren't breaking with my setup (not sure why). ACK. Todd Fujinaka Software Application Engineer Networking Division (ND) Intel Corporation todd.fujin...@intel.com (503) 712

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Vlad Yasevich
On 09/10/2015 10:22 AM, Marcelo Ricardo Leitner wrote: > Em 10-09-2015 10:24, Vlad Yasevich escreveu: >> On 09/09/2015 05:06 PM, Marcelo Ricardo Leitner wrote: >>> Em 09-09-2015 17:30, Vlad Yasevich escreveu: On 09/09/2015 04:03 PM, Marcelo Ricardo Leitner wrote: > Consider sctp module is

Re: IFLA_INET6_[ICMP6]STATS

2015-09-10 Thread Sowmini Varadhan
On (09/10/15 08:43), roopa wrote: > If you decide to use a flag, there is IFLA_EXT_MASK which is used to > specify such filters from userspace today. > > /* New extended info filters for IFLA_EXT_MASK */ > #define RTEXT_FILTER_VF (1 << 0) > #define RTEXT_FILTER_BRVLAN (1 << 1) > #defin

Re: [PATCH v2 1/5] stmmac: replace all pr_xxx by their netdev_xxx counterpart

2015-09-10 Thread Joe Perches
On Thu, 2015-09-10 at 14:37 +0200, LABBE Corentin wrote: > So this patch replace all pr_xxx by their dev_xxx counterpart. Minor mismatch between subject and commit message. Maybe not worth resending. Thanks -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a mes

Re: IFLA_INET6_[ICMP6]STATS

2015-09-10 Thread roopa
On 9/9/15, 2:45 PM, Sowmini Varadhan wrote: On (09/09/15 14:43), David Miller wrote: But what we could do is add a flag in the netlink request which elides the stats. GLIBC et al. could then start setting the flag. Yes, interestingly that's what I was experimenting with myself (though I was u

Re: IFLA_INET6_[ICMP6]STATS

2015-09-10 Thread Raghavendra K T
On 09/10/2015 03:13 AM, David Miller wrote: From: Sowmini Varadhan Date: Wed, 9 Sep 2015 17:34:44 -0400 So the question is- who uses IFLA_INET6_STATS/IFLA_INET6_ICMP6STATS? Is this intended for some ND/ripngd etc daemon? Doesnt seem to be documented in rtnetlink(7), and couldnt find any users

RE: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread David Laight
From: Marcelo Ricardo > Sent: 10 September 2015 15:36 ... > > Given that the first ->create() blocks while the protocol code loads > > it really wouldn't be right to error a subsequent ->create() because > > the load hasn't completed. > > Can't say I don't agree with you, but at the same time, th

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
Em 10-09-2015 10:02, David Laight escreveu: From: Marcelo Ricardo Leitner Sent: 10 September 2015 13:54 Em 09-09-2015 21:16, David Miller escreveu: From: Marcelo Ricardo Leitner Date: Wed, 9 Sep 2015 17:03:01 -0300 So the fix then is to invert the initialization order inside register_pernet

Re: [PATCH net 1/1] r8169: fix sleepable allocation during netdevice stats retrieval.

2015-09-10 Thread Corinna Vinschen
On Sep 10 14:36, poma wrote: > On 10.09.2015 10:47, Corinna Vinschen wrote: > > On Sep 10 01:51, poma wrote: > >> [PATCH v2] r8169: Fix sleeping function called during get_stats64 > >> http://www.spinics.net/lists/netdev/msg342490.html > >> - the noise is still present > >> > >> Corinna, care to sh

[iproute2 PATCH] tc: fq: allow setting and retrieving flow refill delay

2015-09-10 Thread Phil Sutter
Code to parse and export this tuneable via netlink is already present in sched_fq.c of the kernel, so not making it accessible for users would be a waste of resources. Signed-off-by: Phil Sutter --- tc/q_fq.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git

Re: [PATCH net] sctp: fix race on protocol/netns initialization

2015-09-10 Thread Marcelo Ricardo Leitner
Em 10-09-2015 10:24, Vlad Yasevich escreveu: On 09/09/2015 05:06 PM, Marcelo Ricardo Leitner wrote: Em 09-09-2015 17:30, Vlad Yasevich escreveu: On 09/09/2015 04:03 PM, Marcelo Ricardo Leitner wrote: Consider sctp module is unloaded and is being requested because an user is creating a sctp soc

[RFC net-next 07/10] qed: Add link support

2015-09-10 Thread Yuval Mintz
Physical link is handled by the management Firmware. This patch lays the infrastructure for attention handling in the driver, as link change notifications arrive via async. attentions, as well the handling of such notifications. This patch also extends the API with the protocol drivers by adding r

[RFC net-next 06/10] qede: classification configuration

2015-09-10 Thread Yuval Mintz
From: Sudarsana Kalluru Add the ability to configure basic classification in driver by implementing ndo_set_mac_address() and ndo_set_rx_mode(). Signed-off-by: Sudarsana Kalluru Signed-off-by: Yuval Mintz Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qede/qede.h | 10 ++ d

[RFC net-next 03/10] qede: Add basic Network driver

2015-09-10 Thread Yuval Mintz
The Qlogic Everest Driver for Ethernet is the Ethernet specifc module for 579xx ethernet products by Qlogic. This patch adds a very minimal PCI driver, one that doesn't yet register a network device, but one that does interact with qed and does a basic initialization of the HW. Signed-off-by: Yuv

[RFC net-next 09/10] qed: Add statistics support

2015-09-10 Thread Yuval Mintz
From: Manish Chopra Device statistics can be gathered on-demand. This adds the qed support for reading the statistics [both function and port] from the device, and adds to the public API a method for requesting the current statistics. Signed-off-by: Manish Chopra Signed-off-by: Yuval Mintz Sig

[ANNOUNCE] Netdev 1.1 conference

2015-09-10 Thread Pablo Neira Ayuso
Following the lastest successful Netdev 0.1 in Ottawa, Canada. We are happy to announce a new round of the Netdev conference series: Netdev 1.1 (year 1, conference 1) from 10th to 12th February 2016 in Seville, Spain (http://www.netdevconf.org/1.1/). Netdev 1.1 is a community-driven conference gea

[RFC net-next 10/10] qede: Add basic ethtool support

2015-09-10 Thread Yuval Mintz
From: Sudarsana Kalluru This adds basic ethtool operations to the qed driver, allowing support in: - Statistics gathering [ethtool -S] - Setting of debug level [ethtool -s msglvl] - Getting basic information [ethtool, ethtool -i] In addition it adds the ability to change the MTU. Signed-off

[RFC net-next 05/10] qede: Add basic network device support

2015-09-10 Thread Yuval Mintz
From: Sudarsana Kalluru This patch includes the basic Rx/Tx support for the driver [although carrier will still never be turned on]. Following this patch the driver registers a network device, initializes it and prepares it for traffic. Signed-off-by: Sudarsana Kalluru Signed-off-by: Yuval Mint

[RFC net-next 02/10] qed: Add basic L2 interface

2015-09-10 Thread Yuval Mintz
From: Manish Chopra This patch adds a public API for a network driver to work on top of QED. The interface itself is very minimal - it's mostly infrastructure, as the only content it has after this patch is a query for HW-based information required for the creation of a network interface [I.e., n

[RFC net-next 04/10] qed: Add slowpath L2 support

2015-09-10 Thread Yuval Mintz
From: Manish Chopra This patch adds to the qed the support to configure various L2 elements, such as channels and basic filtering conditions. It also enhances its public API to allow qede to later utilize this functionality. Signed-off-by: Manish Chopra Signed-off-by: Yuval Mintz Signed-off-by

[RFC net-next 08/10] qede: Add support for link

2015-09-10 Thread Yuval Mintz
From: Sudarsana Kalluru This adds basic link functionality to qede - driver still doesn't provide users with an API to change any link property, but it does request qed to initialize the link using default configuration, and registers a callback that allows it to get link notifications. This pat

  1   2   >