Re: stack smashing in iproute/ip

2015-05-21 Thread Jetchko Jekov
On 05/19/2015 03:25 PM, ext Eric Dumazet wrote: On Tue, 2015-05-19 at 10:41 +0200, Jetchko Jekov wrote: Hello, I hope this is the right way to report a bug regarding iproute. While playing with gre[tap] tunnels I run in the following: # modprobe ip-gre # ip l add gre1 type gre remote

Re: [PATCH net-next] rocker: move netevent neigh update to processes context

2015-05-21 Thread Simon Horman
On Wed, May 20, 2015 at 10:05:07PM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com In review of Simon's patchset rocker: transaction fixes. it was noted that rocker-neigh_tbl_next_index was unprotected in the call path below and could race with other contexts calling

Re: [PATCH net-next] rocker: move netevent neigh update to processes context

2015-05-21 Thread Jiri Pirko
Thu, May 21, 2015 at 07:05:07AM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com In review of Simon's patchset rocker: transaction fixes. it was noted that rocker-neigh_tbl_next_index was unprotected in the call path below and could race with other contexts calling

Re: [PATCH v4 for-next 05/12] IB/cm: Share listening CM IDs

2015-05-21 Thread Haggai Eran
On 20/05/2015 01:35, Jason Gunthorpe wrote: On Tue, May 19, 2015 at 12:35:45PM -0600, Jason Gunthorpe wrote: On Sun, May 17, 2015 at 08:51:01AM +0300, Haggai Eran wrote: @@ -212,6 +212,8 @@ struct cm_id_private { spinlock_t lock;/* Do not acquire inside cm.lock */ struct

[PATCH v2 net-next 3/4] net: make skb_splice_bits more configureable

2015-05-21 Thread Hannes Frederic Sowa
Prepare skb_splice_bits to be able to deal with AF_UNIX sockets. AF_UNIX sockets don't use lock_sock/release_sock and thus we have to use a callback to make the locking and unlocking configureable. Signed-off-by: Hannes Frederic Sowa han...@stressinduktion.org Acked-by: Eric Dumazet

Re: [PATCH v3 for-next 05/13] IB/cm: Reference count ib_cm_ids

2015-05-21 Thread Haggai Eran
On 20/05/2015 03:49, Hefty, Sean wrote: I wonder if the existing ib_cm interface is even what we want. Currently, the rdma_cm pushes the private data (i.e. IP address) comparison into the ib_cm. This is only used by the rdma_cm. Should that instead be moved out of the ib_cm and handled in the

Re: [PATCH v4 for-next 05/12] IB/cm: Share listening CM IDs

2015-05-21 Thread Haggai Eran
On 19/05/2015 21:35, Jason Gunthorpe wrote: ... The share count should be 'listen_sharecount' because it *only* works for listen. The above test in cm_destroy_id should only be in the listen branch of the if. Okay. + * Create a new listening ib_cm_id and listen on the given service ID.

Re: ingress policying for realtime protocol

2015-05-21 Thread Uwe Kleine-König
On Wed, May 20, 2015 at 05:30:40PM -0700, Eric Dumazet wrote: On Wed, 2015-05-20 at 16:46 -0700, Cong Wang wrote: There is very little to do on ingress side since there is no queue at all, not to mention priority, you could try ifb to see if it fits your need. Note that if the need is to

Re: [PATCH v4 for-next 04/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-05-21 Thread Haggai Eran
On 21/05/2015 08:48, Or Gerlitz wrote: On Thu, May 21, 2015 at 8:33 AM, Haggai Eran hagg...@mellanox.com wrote: On 20/05/2015 02:55, Jason Gunthorpe wrote: On Sun, May 17, 2015 at 08:51:00AM +0300, Haggai Eran wrote: From: Guy Shapiro gu...@mellanox.com Implement the

Re: Packet capturing performance

2015-05-21 Thread Jesper Dangaard Brouer
On Wed, 20 May 2015 16:13:54 +0300 Deniz Eren denizl...@denizeren.net wrote: Hi, I'm having problem with packet capturing performance on my linux server. I am using Intel ixgbe 10g NIC with v3.19.1 version driver over Linux 3.15.9 based system. Naturally I can route 3.8Mpps packet from

Re: [PATCH net-next] rocker: move netevent neigh update to processes context

2015-05-21 Thread Toshiaki Makita
On 2015/05/21 14:05, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com In review of Simon's patchset rocker: transaction fixes. it was noted that rocker-neigh_tbl_next_index was unprotected in the call path below and could race with other contexts calling

Re: [RFC PATCH 0/4] Make iSCSI network namespace aware

2015-05-21 Thread Hannes Reinecke
On 05/20/2015 08:45 PM, Andy Grover wrote: On 05/13/2015 03:12 PM, Chris Leech wrote: This is only about the structures and functionality involved in maintaining the iSCSI session, the SCSI host along with it's discovered targets and devices has no association with network namespaces.

RE:

2015-05-21 Thread Stock David (NHS GREAT YARMOUTH AND WAVENEY CCG)
From: Stock David (NHS GREAT YARMOUTH AND WAVENEY CCG) Sent: 21 May 2015 10:05 To: Stock David (NHS GREAT YARMOUTH AND WAVENEY CCG) Subject: You have won contact Allen On allemwilliam10...@gmail.com for info. Allen Williams +27612909541

Re: [net-next PATCH 06/10] pktgen: new pktgen helper functions for samples scripts

2015-05-21 Thread Jesper Dangaard Brouer
On Wed, 20 May 2015 14:23:17 -0700 Cong Wang cw...@twopensource.com wrote: On Tue, May 19, 2015 at 2:36 PM, Jesper Dangaard Brouer bro...@redhat.com wrote: + +# More generic replacement for pgset(), that does not depend on global +# variable for proc file. +function proc_cmd() { +

RE:

2015-05-21 Thread Stock David (NHS GREAT YARMOUTH AND WAVENEY CCG)
You have won contact Allen On allemwilliam10...@gmail.com for info. Allen Williams +27612909541 This message may contain confidential information. If you are not the intended

[PATCH v2 net-next 4/4] net: af_unix: implement splice for stream af_unix sockets

2015-05-21 Thread Hannes Frederic Sowa
unix_stream_recvmsg is refactored to unix_stream_read_generic in this patch and enhanced to deal with pipe splicing. The refactoring is inneglible, we mostly have to deal with a non-existing struct msghdr argument. Signed-off-by: Hannes Frederic Sowa han...@stressinduktion.org --- v2: * checked

[PATCH v2 net-next 1/4] net: skbuff: add skb_append_pagefrags and use it

2015-05-21 Thread Hannes Frederic Sowa
Signed-off-by: Hannes Frederic Sowa han...@stressinduktion.org --- v2: * remove now unused variable i in ip_append_page (thanks, Cong!) * switched to EXPORT_SYMBOL_GPL for skb_append_pagefrags include/linux/skbuff.h | 3 +++ net/core/skbuff.c | 18 ++ net/ipv4/ip_output.c

[PATCH v2 net-next 2/4] net: af_unix: implement stream sendpage support

2015-05-21 Thread Hannes Frederic Sowa
This patch implements sendpage support for AF_UNIX SOCK_STREAM sockets. This is also required for a complete splice implementation. The implementation is a bit tricky because we append to already existing skbs and so have to hold unix_sk-readlock to protect the reading side from either advancing

[PATCH v2 net-next 0/4] net: af_unix: zerocopy stream bits

2015-05-21 Thread Hannes Frederic Sowa
This series implements zerocopy support for AF_UNIX SOCK_STREAM sockets. Changelog in the specific patches. Thanks to all the reviewers! Hannes Frederic Sowa (4): net: skbuff: add skb_append_pagefrags and use it net: af_unix: implement stream sendpage support net: make skb_splice_bits more

Re: [PATCH v4 for-next 04/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-05-21 Thread Jason Gunthorpe
On Thu, May 21, 2015 at 08:33:53AM +0300, Haggai Eran wrote: To create a new child interface on the default P_Key, its possible to use iproute: # ip link add link ib0 name ib0.1 type ipoib Uh.. A key invariant of the IP stack is that is it possible to uniquely identify the ingress device.

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-21 Thread Takashi Iwai
At Thu, 21 May 2015 13:37:56 -0400 (EDT), Alan Stern wrote: On Thu, 21 May 2015, Takashi Iwai wrote: At Thu, 21 May 2015 11:26:17 -0400 (EDT), Alan Stern wrote: On Thu, 21 May 2015, Takashi Iwai wrote: At Thu, 21 May 2015 10:18:08 -0400 (EDT), Alan Stern wrote:

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-21 Thread Laura Abbott
On 05/21/2015 11:11 AM, Takashi Iwai wrote: At Thu, 21 May 2015 13:37:56 -0400 (EDT), Alan Stern wrote: On Thu, 21 May 2015, Takashi Iwai wrote: At Thu, 21 May 2015 11:26:17 -0400 (EDT), Alan Stern wrote: On Thu, 21 May 2015, Takashi Iwai wrote: At Thu, 21 May 2015 10:18:08 -0400 (EDT),

Re: [PATCH v4 for-next 05/12] IB/cm: Share listening CM IDs

2015-05-21 Thread Jason Gunthorpe
On Thu, May 21, 2015 at 11:08:31AM +0300, Haggai Eran wrote: The more I look at this, the more I think it is sketchy. Don't try and merge sharecount and refcount together, I'm not sure what you mean here. The way I was thinking about it was that sharecount = num of rdma_cm_ids sharing this

Re: Cause of Large Latency Difference Between 1179-byte and 1180-byte UDP Frames?

2015-05-21 Thread Todd Bezenek
(solution below) The time to send that extra byte over the wire is 8 nsec. It seems unlikely that would produce such a clean-cut difference, but I've been surprised before. :) The idle=poll parameter sounds like a good idea for any application which tries to maintain real-time behavior. I'm

Re: [PATCH 3/3] ipvlan: set dev_id for l2 ports to generate unique IPv6 addresses

2015-05-21 Thread Konstantin Khlebnikov
On 20.05.2015 02:59, Mahesh Bandewar wrote: On Thu, May 14, 2015 at 6:56 AM, Konstantin Khlebnikov khlebni...@yandex-team.ru wrote: All ipvlan ports use one MAC address, this way ipv6 RA tries to assign one ipv6 address to all of them. This patch assigns unique dev_id to each ipvlan port. This

Re: [Linaro-acpi] [V4 PATCH 1/6] ACPI / scan: Parse _CCA and setup device coherency

2015-05-21 Thread Catalin Marinas
On Wed, May 20, 2015 at 02:04:02PM +0200, Arnd Bergmann wrote: On Wednesday 20 May 2015 06:52:03 Suravee Suthikulanit wrote: On 5/20/2015 5:01 AM, Catalin Marinas wrote: On Fri, May 15, 2015 at 04:23:09PM -0500, Suravee Suthikulpanit wrote: +static inline bool acpi_dma_is_supported(struct

[PATCH v5] ixgbe: Add module parameter to disable VLAN filter

2015-05-21 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Introduce module parameter disable_hw_vlan_filter to disable HW VLAN filter on ixgbe module load. From the hardware limitation, there are only 64 VLAN entries for HW VLAN filter, and it leads to limit the number of VLANs up to 64 among PF and

Re: [PATCH v4] bnx2x: Alloc 4k fragment for each rx ring buffer element

2015-05-21 Thread Gabriel Krisman Bertazi
Yuval Mintz yuval.mi...@qlogic.com writes: Regardless, I'll give it a more thorough review tomorrow. [If those are all the problems we'll find with it, I don't think we'll need to re-spin this once more; that is, unless Dave insists] As a follow up, here is a new version that fixes the style

Re: [PATCH 2/3] ipvlan: grab rcu_read_lock on xmit path

2015-05-21 Thread Hannes Frederic Sowa
On Thu, May 21, 2015, at 11:51, Konstantin Khlebnikov wrote: On 20.05.2015 02:33, Mahesh Bandewar wrote: On Thu, May 14, 2015 at 6:56 AM, Konstantin Khlebnikov khlebni...@yandex-team.ru wrote: ipvlan_start_xmit() is called with rcu_read_lock_bh() while its internal structures requre

Re: [PATCH 0/7] crypto: Convert all AEAD users to new interface

2015-05-21 Thread Stephan Mueller
Am Donnerstag, 21. Mai 2015, 18:39:39 schrieb Herbert Xu: Hi Herbert, Hi: This series of patches convert all in-tree AEAD users that I could find to the new single SG list interface. For IPsec it also adopts the new explicit IV generator scheme. To recap, the old AEAD interface takes an

Re: [PATCH net-next] tcp: add tcpi_segs_in and tcpi_segs_out to tcp_info

2015-05-21 Thread Marcelo Ricardo Leitner
On Wed, May 20, 2015 at 05:52:34PM -0700, Eric Dumazet wrote: On Wed, 2015-05-20 at 17:48 -0700, Rick Jones wrote: On 05/20/2015 05:37 PM, Eric Dumazet wrote: Anyway, if we can send tcp data at 100Gbits on one flow, I guess we are doing a terrific job and do not need to tweak TCP stack

RE: [PATCH v3 for-next 05/13] IB/cm: Reference count ib_cm_ids

2015-05-21 Thread Hefty, Sean
It remains to clean up ib_cm's ib_cm_listen interface now that compare_data isn't used, but I'm not sure this belongs in this series. This patch series is changing the behavior that the compare data solves. Currently, the ib_cm handles all of the multiplexing for the rdma_cm -- that's the

[PATCH net-next 2/6] IB/mlx4: Convert slave port before building address-handle

2015-05-21 Thread Or Gerlitz
When multiplexling a MAD sent from VF, we should convert the port used by the guest to send the packet to the actual physical port which will be used to transmit the packet, before building the relevant address-handle (AH). This is needed under VPI for single ported VFs, since the code that

[PATCH net-next 0/6] mlx4: Enable single ported VFs over IB ports

2015-05-21 Thread Or Gerlitz
Hi Dave, This series further enhances the support for mlx4 single ported VFs introduced in 3.15 to work over IB ports too. Just as quick reminder, the ConnectX3 device family exposes one PCI device which serves both ports. This can be non-optimal under virtualization schemes where the

[PATCH net-next 1/6] net/mlx4_core: Enhance the MAD_IFC wrapper to convert VF port to physical

2015-05-21 Thread Or Gerlitz
Single port VFs always provide port = 1 (even if the actual physical port used is port 2). As such, we need to convert the port provided by the VF to the physical port before calling into the firmware. It turns out that the Linux mlx4 VF RoCE driver maintains a copy of the GID table and hence

[PATCH net-next 4/6] net/mlx4_core: Adjust the schedule queue port for single ported IB VFs

2015-05-21 Thread Or Gerlitz
Some VF drivers flow set the schedule queue in the QP context but without setting none of OPTPAR_SCHED_QUEUE or OPTPAR_PRIMARY_ADDR_PATH. To allow for such non-modified drivers to function as single ported IB VFs, we must adjust the schedule queue port whenever being set, e.g as currently done

[PATCH net-next 5/6] net/mlx4_core: Adjust the schedule queue port in reset-to-init too

2015-05-21 Thread Or Gerlitz
It's legal for drivers to provide the QP port through the QPC schedule-queue field on the reset-to-init QP state change. Add adjusting of the schedule queue port in the SRIOV wrapper for that operation too. Signed-off-by: Or Gerlitz ogerl...@mellanox.com Signed-off-by: Jack Morgenstein

[PATCH net-next 6/6] net/mlx4_core: Enable single ported IB VFs

2015-05-21 Thread Or Gerlitz
Remove the limitation that disallows configuring single ported VFs in the presence of IB ports, after addressing the issues that prevented that to work. SMI (QP0) requests/responses are still not supported for single ported IB VFs. Signed-off-by: Or Gerlitz ogerl...@mellanox.com Signed-off-by:

[PATCH net-next 3/6] net/mlx4_core: Modify port values when generting EQEs for VFs

2015-05-21 Thread Or Gerlitz
As part of enabling single ported VFs over IB ports we need to handle some of the flows for generting EQ events for VFs which don't come into play under Eth ports. This mainly includes port management events derived from changes of the phyiscal port (lid change, client re-register, down/up, etc),

Re: [PATCH 7/7] mac80211: Switch to new AEAD interface

2015-05-21 Thread Johannes Berg
On Thu, 2015-05-21 at 19:50 +0800, Herbert Xu wrote: On Thu, May 21, 2015 at 01:20:49PM +0200, Johannes Berg wrote: On Thu, 2015-05-21 at 18:44 +0800, Herbert Xu wrote: This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-21 Thread Takashi Iwai
At Thu, 21 May 2015 14:07:11 +0200, Marcel Holtmann wrote: Hi Takashi, The data is cached in RAM. More specifically, the former loaded firmware files are reloaded and saved at suspend for each device object. See fw_pm_notify() in firmware_class.c. OK, this may be a stupid idea,

Re: netfilter: ensure number of counters is 0 in do_replace()

2015-05-21 Thread Pablo Neira Ayuso
On Tue, May 19, 2015 at 08:55:17PM -0400, Dave Jones wrote: After improving setsockopt() coverage in trinity, I started triggering vmalloc failures pretty reliably from this code path: warn_alloc_failed+0xe9/0x140 __vmalloc_node_range+0x1be/0x270 vzalloc+0x4b/0x50 __do_replace+0x52/0x260

Re: [PATCH 7/7] mac80211: Switch to new AEAD interface

2015-05-21 Thread Herbert Xu
On Thu, May 21, 2015 at 01:20:49PM +0200, Johannes Berg wrote: On Thu, 2015-05-21 at 18:44 +0800, Herbert Xu wrote: This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Looks fine - want me to run any tests on it?

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-21 Thread Marcel Holtmann
Hi Takashi, The data is cached in RAM. More specifically, the former loaded firmware files are reloaded and saved at suspend for each device object. See fw_pm_notify() in firmware_class.c. OK, this may be a stupid idea, but do we know the firmware was successfully loaded in the first

Re: [PATCH 3/3] ipvlan: set dev_id for l2 ports to generate unique IPv6 addresses

2015-05-21 Thread Hannes Frederic Sowa
On Thu, May 21, 2015, at 13:38, Konstantin Khlebnikov wrote: On 20.05.2015 02:59, Mahesh Bandewar wrote: On Thu, May 14, 2015 at 6:56 AM, Konstantin Khlebnikov khlebni...@yandex-team.ru wrote: All ipvlan ports use one MAC address, this way ipv6 RA tries to assign one ipv6 address to all

[PATCH trivial] enic: Grammar s/an negative/a negative/

2015-05-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be --- drivers/net/ethernet/cisco/enic/enic_clsf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cisco/enic/enic_clsf.c b/drivers/net/ethernet/cisco/enic/enic_clsf.c index

Re: [PATCH net-next 1/2] inet_hashinfo: remove bsocket counter

2015-05-21 Thread Flavio Leitner
On Wed, May 20, 2015 at 10:59:01AM -0700, Eric Dumazet wrote: We no longer need bsocket atomic counter, as inet_csk_get_port() calls bind_conflict() regardless of its value, after commit 2b05ad33e1e624e (tcp: bind() fix autoselection to share ports) This patch removes overhead of maintaining

Re: [PATCH net-next] Better handling of transition to NUD_PROBE state

2015-05-21 Thread David Miller
From: Erik Kline e...@google.com Date: Mon, 18 May 2015 19:44:41 +0900 [1] When entering NUD_PROBE state via neigh_update(), perhaps received from userspace, correctly (re)initialize the probes count to zero. This is useful for forcing revalidation of a neighbor (for example if

Re: [PATCH net-next] tcp: add a force_schedule argument to sk_stream_alloc_skb()

2015-05-21 Thread David Miller
From: Eric Dumazet eric.duma...@gmail.com Date: Tue, 19 May 2015 13:26:55 -0700 From: Eric Dumazet eduma...@google.com In commit 8e4d980ac215 (tcp: fix behavior for epoll edge trigger) we fixed a possible hang of TCP sockets under memory pressure, by allowing sk_stream_alloc_skb() to use

Re: [PATCH iproute2 0/2] Run tests forcely in separated netns

2015-05-21 Thread Stephen Hemminger
On Tue, 12 May 2015 17:40:14 +0300 Vadim Kochan vadi...@gmail.com wrote: From: Vadim Kochan vadi...@gmail.com Changed to run each test in separated network namespace by using 'unshare' tool from util-linux tools set, it allows to do not affect network setup on the host machine, 'unshare'

Re: [RFC PATCH 0/4] Make iSCSI network namespace aware

2015-05-21 Thread Chris Leech
On Wed, May 20, 2015 at 11:45:43AM -0700, Andy Grover wrote: On 05/13/2015 03:12 PM, Chris Leech wrote: This is only about the structures and functionality involved in maintaining the iSCSI session, the SCSI host along with it's discovered targets and devices has no association with

Re: [PATCH] net: phy: Make sure phy_start() always re-enables the phy interrupts

2015-05-21 Thread David Miller
From: Tim Beale tim.be...@alliedtelesis.co.nz Date: Mon, 18 May 2015 15:38:38 +1200 This is an alternative way of fixing: commit db9683fb412d (net: phy: Make sure PHY_RESUMING state change is always processed) When the PHY state transitions from PHY_HALTED to

Re: [PATCH] qlge: Move jiffies_to_usecs immediately before loop

2015-05-21 Thread David Miller
From: Joe Perches j...@perches.com Date: Tue, 19 May 2015 21:44:52 -0700 30 usecs (or really, 1 jiffy) can go by pretty fast. Move the set of the timeout immediately before the loop. Remove the unnecessary max(1ul, usecs_to_jiffies(30)) as usecs_to_jiffies with a non-zero constant is

Re: Suspicious RCU usage in bridge with Linux v4.0-9362-g1fc149933fd4

2015-05-21 Thread Eric Dumazet
On Thu, 2015-05-21 at 15:22 -0400, Josh Boyer wrote: I'm still seeing this with Linus' tree as of yesterday. Is this queued anywhere for 4.1? I'll send the patch, thanks for the heads up. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

[PATCH net] bridge: fix lockdep splat

2015-05-21 Thread Eric Dumazet
From: Eric Dumazet eduma...@google.com Following lockdep splat was reported : [ 29.382286] === [ 29.382315] [ INFO: suspicious RCU usage. ] [ 29.382344] 4.1.0-0.rc0.git11.1.fc23.x86_64 #1 Not tainted [ 29.382380] --- [ 29.382409]

Re: [PATCH net-next 0/4] bpf: introduce bpf_tail_call() helper

2015-05-21 Thread David Miller
From: Alexei Starovoitov a...@plumgrid.com Date: Tue, 19 May 2015 16:59:02 -0700 introduce bpf_tail_call(ctx, jmp_table, index) helper function Since we dispatch often by IDs like syscall numbers and protocol IDs, this seems very useful. Series applied, thanks Alexei. -- To unsubscribe from

Re: [PATCH 07/12] spider_net: Use DECLARE_BITMAP

2015-05-21 Thread David Miller
From: Joe Perches j...@perches.com Date: Tue, 19 May 2015 18:37:55 -0700 Use the generic mechanism to declare a bitmap instead of unsigned long. Signed-off-by: Joe Perches j...@perches.com Applied to net-next, thanks Joe. -- To unsubscribe from this list: send the line unsubscribe netdev in

Re: [PATCH iproute2] tipc: introduce TIPC configuration tool

2015-05-21 Thread Stephen Hemminger
On Thu, 7 May 2015 15:07:35 +0200 richard.a...@ericsson.com wrote: From: Richard Alpe richard.a...@ericsson.com This is the new tipc tool that utilizes the relativly new TIPC netlink API in the kernel. Introducing this tool into iproute2 has been discussed previously. For more information

Re: [RESEND][PATCH] Bluetooth: Make request workqueue freezable

2015-05-21 Thread Arend van Spriel
On 05/21/15 19:32, Takashi Iwai wrote: At Thu, 21 May 2015 19:27:41 +0200, Arend van Spriel wrote: On 05/21/15 17:35, Takashi Iwai wrote: At Thu, 21 May 2015 11:26:17 -0400 (EDT), Alan Stern wrote: On Thu, 21 May 2015, Takashi Iwai wrote: At Thu, 21 May 2015 10:18:08 -0400 (EDT), Alan

Re: [PATCH net-next 1/3] net: Flush all skbs related to an unregistered device

2015-05-21 Thread David Miller
From: Baptiste Covolato bapti...@arista.com Date: Tue, 19 May 2015 16:24:51 -0700 Update flush_backlog to flush all packets in the backlog queue belonging to a device being unregistered. Accordingly on_each_cpu no longer needs to pass a device to flush_backlog since it handles any device in

Re: [PATCH v4 net-next 0/4] rocker: transaction fixes

2015-05-21 Thread David Miller
From: Simon Horman simon.hor...@netronome.com Date: Thu, 21 May 2015 12:40:13 +0900 this series addresses what appear to be errors in the handling of prepare and then commit transactions in the rocker driver. Series applied, thanks a lot Simon. -- To unsubscribe from this list: send the line

Re: Looking for a lost patch

2015-05-21 Thread David Miller
From: Steffen Klassert steffen.klass...@secunet.com Date: Wed, 20 May 2015 08:32:23 +0200 On Tue, May 19, 2015 at 11:32:15AM -0700, Alexander Duyck wrote: On 05/19/2015 12:57 AM, Steffen Klassert wrote: The MTU should be 1500. All the IPsec overhead is handled by PMTU discovery, just like in

Re: [PATCH iproute2 01/10] tc: red, gred: Rename overloaded variable wlog

2015-05-21 Thread Stephen Hemminger
On Mon, 18 May 2015 11:35:05 -0400 David Ward david.w...@ll.mit.edu wrote: It is used when parsing three different parameters, only one of which is Wlog. Change the name to make the code less confusing. Signed-off-by: David Ward david.w...@ll.mit.edu All applied, and I went ahead and fixed

[PATCH] net: macb: Disable half duplex gigabit on Zynq

2015-05-21 Thread Nathan Sullivan
According to the Zynq TRM, gigabit half duplex is not supported. Add a new cap and compatible string so Zynq can avoid advertising that mode. Signed-off-by: Nathan Sullivan nathan.sulli...@ni.com --- drivers/net/ethernet/cadence/macb.c | 12 drivers/net/ethernet/cadence/macb.h |

Re: [PATCH net-next] tcp: add tcpi_segs_in and tcpi_segs_out to tcp_info

2015-05-21 Thread Eric Dumazet
On Thu, 2015-05-21 at 12:41 -0700, Yuchung Cheng wrote: It'd be nice to count SYN and SYNACKs for apps tracking the handshake stats. For syn-cookies we can't do much. But for the rest we can account req-num_retrans for SYN-ACKs sent, and perhaps track SYN received in request sock? Well, this

Re: [PATCH net-next 2/2] tcp: improve REUSEADDR/NOREUSEADDR cohabitation

2015-05-21 Thread Flavio Leitner
On Wed, May 20, 2015 at 10:59:02AM -0700, Eric Dumazet wrote: inet_csk_get_port() randomization effort tends to spread sockets on all the available range (ip_local_port_range) This is unfortunate because SO_REUSEADDR sockets have less requirements than non SO_REUSEADDR ones. If an

Re: [PATCH net-next] net: dev: reduce both ingress hook ifdefs

2015-05-21 Thread David Miller
From: Daniel Borkmann dan...@iogearbox.net Date: Tue, 19 May 2015 22:33:25 +0200 Reduce ifdef pollution slightly, no functional change. We can simply remove the extra alternative definition of handle_ing() and nf_ingress(). Signed-off-by: Daniel Borkmann dan...@iogearbox.net Applied, thanks

Re: [net-next PATCH 09/10] pktgen: add sample script pktgen_sample03_burst_single_flow.sh

2015-05-21 Thread Jesper Dangaard Brouer
On Wed, 20 May 2015 14:33:42 -0700 Cong Wang cw...@twopensource.com wrote: On Tue, May 19, 2015 at 2:36 PM, Jesper Dangaard Brouer bro...@redhat.com wrote: +# Threads are specified with parameter -t value in $THREADS +for ((thread = 0; thread $THREADS; thread++)); do +

[net-next PATCH v2 00/10] pktgen: cleanups and introducing new samples/pktgen scripts

2015-05-21 Thread Jesper Dangaard Brouer
v2: address nitpicks from Cong Wang - Remove useless cat's, but keep them for old pgset() - Comment on: Due to pgctrl, cannot use exit code $? from grep - Use arithmetic compare in pktgen_sample03_burst_single_flow.sh This patchset is focused on making pktgen easier to use and better

[net-next PATCH v3 05/10] pktgen: make /proc/net/pktgen/pgctrl report fail on invalid input

2015-05-21 Thread Jesper Dangaard Brouer
Giving /proc/net/pktgen/pgctrl an invalid command just returns shell success and prints a warning in dmesg. This is not very useful for shell scripting, as it can only detect the error by parsing dmesg. Instead return -EINVAL when the command is unknown, as this provides userspace shell

[net-next PATCH v3 03/10] pktgen: doc were missing several config options

2015-05-21 Thread Jesper Dangaard Brouer
The pktgen.txt documentation over available config options were not complete. Making the list complete by adding the following. Pgcontrol commands: reset Device commands: burst queue_map_min queue_map_max skb_priority tos traffic_class node spi dst6_max dst6_min vlan_cfi vlan_id

[net-next PATCH v3 04/10] pktgen: document ability to add same device to several threads

2015-05-21 Thread Jesper Dangaard Brouer
The pktgen.txt documentation still claimed that adding same device to multiple threads were not supported, but it have been since 2008 via commit e6fce5b916cd7 (pktgen: multiqueue etc.). Document this and describe the naming scheme dev@X, as the procfile name still need to be unique. Fixes:

Re: xfrm: Always zero high-order sequence number bits

2015-05-21 Thread Steffen Klassert
On Thu, May 21, 2015 at 12:38:12AM +0800, Herbert Xu wrote: As we're now always including the high bits of the sequence number in the IV generation process we need to ensure that they don't contain crap. This patch ensures that the high sequence bits are always zeroed so that we don't leak

RE:

2015-05-21 Thread Ratnakumar Sagana (KING'S COLLEGE HOSPITAL NHS FOUNDATION TRUST)
You have won contact Allen On allemwilliam10...@gmail.com for info. Allen Williams +27612909541 This message may contain confidential information. If you are not the intended

[PATCH 7/7] mac80211: Switch to new AEAD interface

2015-05-21 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/mac80211/aes_ccm.c | 30 ++ net/mac80211/aes_gcm.c | 30

[PATCH 3/7] ipsec: Add IV generator information to xfrm_state

2015-05-21 Thread Herbert Xu
This patch adds IV generator information to xfrm_state. This is currently obtained from our own list of algorithm descriptions. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- include/net/xfrm.h |1 + net/key/af_key.c |1 + net/xfrm/xfrm_user.c | 40

[PATCH 5/7] esp6: Switch to new AEAD interface

2015-05-21 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. The IV generation is also now carried out through normal AEAD methods. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/ipv6/esp6.c | 197

[PATCH 1/7] crypto: testmgr - Switch to new AEAD interface

2015-05-21 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- crypto/testmgr.c | 84 +++ 1 file changed, 48

[PATCH 4/7] esp4: Switch to new AEAD interface

2015-05-21 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. The IV generation is also now carried out through normal AEAD methods. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/ipv4/esp4.c | 197

[net-next PATCH v2 01/10] pktgen: remove obsolete max_before_softirq from pktgen doc

2015-05-21 Thread Jesper Dangaard Brouer
And cleanup some whitespaces in pktgen.txt. Signed-off-by: Jesper Dangaard Brouer bro...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Documentation/networking/pktgen.txt b/Documentation/networking/pktgen.txt index 747facc..62f5ebb 100644 ---

[net-next PATCH v3 06/10] pktgen: new pktgen helper functions for samples scripts

2015-05-21 Thread Jesper Dangaard Brouer
Preparing for removing existing samples/pktgen/ scripts, and replacing these with easier to use samples. This commit provides two helper shell files, that can be included by shell source'ing. Namely functions.sh and parameters.sh. The parameters.sh file support easy and consistant parameter

[net-next PATCH v3 10/10] pktgen: add benchmark script pktgen_bench_xmit_mode_netif_receive.sh

2015-05-21 Thread Jesper Dangaard Brouer
This script pktgen_bench_xmit_mode_netif_receive.sh is a benchmark script, which can be used for benchmarking part of the network stack. This can be used for performance improving or catching regression in that area. The script is developed for benchmarking ingress qdisc path, original idea by

Re: [PATCH 7/7] mac80211: Switch to new AEAD interface

2015-05-21 Thread Johannes Berg
On Thu, 2015-05-21 at 18:44 +0800, Herbert Xu wrote: This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Looks fine - want me to run any tests on it? johannes -- To unsubscribe from this list: send the line

[net-next PATCH v2 02/10] pktgen: adjust spacing in proc file interface output

2015-05-21 Thread Jesper Dangaard Brouer
Too many spaces were introduced in commit 63adc6fb8ac0 (pktgen: cleanup checkpatch warnings), thus misaligning src_min: to other columns. Fixes: 63adc6fb8ac0 (pktgen: cleanup checkpatch warnings) Signed-off-by: Jesper Dangaard Brouer bro...@redhat.com --- 0 files changed, 0 insertions(+), 0

Re: [net-next PATCH v2 01/10] pktgen: remove obsolete max_before_softirq from pktgen doc

2015-05-21 Thread Jesper Dangaard Brouer
On Thu, 21 May 2015 12:11:42 +0200 Jesper Dangaard Brouer bro...@redhat.com wrote: --- 0 files changed, 0 insertions(+), 0 deletions(-) Aborting V2 stg-mail sending, because it's not generating the correct diff stat. This is a bug in stg if not in the root of the git dir. -- Best

[PATCH 0/7] crypto: Convert all AEAD users to new interface

2015-05-21 Thread Herbert Xu
Hi: This series of patches convert all in-tree AEAD users that I could find to the new single SG list interface. For IPsec it also adopts the new explicit IV generator scheme. To recap, the old AEAD interface takes an associated data (AD) SG list in addition to the plain/cipher text SG list(s).

Re: [PATCH 2/3] ipvlan: grab rcu_read_lock on xmit path

2015-05-21 Thread Konstantin Khlebnikov
On 20.05.2015 02:33, Mahesh Bandewar wrote: On Thu, May 14, 2015 at 6:56 AM, Konstantin Khlebnikov khlebni...@yandex-team.ru wrote: ipvlan_start_xmit() is called with rcu_read_lock_bh() while its internal structures requre normal rcu_read_lock(). Signed-off-by: Konstantin Khlebnikov

[net-next PATCH v3 00/10] pktgen: cleanups and introducing new samples/pktgen scripts

2015-05-21 Thread Jesper Dangaard Brouer
v3: - Aborted v2 send due it was not generating diff stat (this is a bug in stg-mail, if not in the root directory) v2: address nitpicks from Cong Wang - Remove useless cat's, but keep them for old pgset() - Comment on: Due to pgctrl, cannot use exit code $? from grep - Use arithmetic

[net-next PATCH v3 02/10] pktgen: adjust spacing in proc file interface output

2015-05-21 Thread Jesper Dangaard Brouer
Too many spaces were introduced in commit 63adc6fb8ac0 (pktgen: cleanup checkpatch warnings), thus misaligning src_min: to other columns. Fixes: 63adc6fb8ac0 (pktgen: cleanup checkpatch warnings) Signed-off-by: Jesper Dangaard Brouer bro...@redhat.com --- net/core/pktgen.c |2 +- 1 files

[net-next PATCH v3 01/10] pktgen: remove obsolete max_before_softirq from pktgen doc

2015-05-21 Thread Jesper Dangaard Brouer
And cleanup some whitespaces in pktgen.txt. Signed-off-by: Jesper Dangaard Brouer bro...@redhat.com --- Documentation/networking/pktgen.txt | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Documentation/networking/pktgen.txt

[net-next PATCH v3 07/10] pktgen: add sample script pktgen_sample01_simple.sh

2015-05-21 Thread Jesper Dangaard Brouer
Add the first basic pktgen samples script pktgen_sample01_simple.sh, which demonstrates the a simple use of the helper functions. Removing pktgen.conf-1-1 as that example should be covered now. The naming scheme pktgen_sampleNN, where NN is a number, should encourage reading the samples in a

[net-next PATCH v3 09/10] pktgen: add sample script pktgen_sample03_burst_single_flow.sh

2015-05-21 Thread Jesper Dangaard Brouer
Add the pktgen samples script pktgen_sample03_burst_single_flow.sh that demonstrates how to acheive maximum performance. If correctly tuned[1] single CPU 10Gbit/s wirespeed small pkts is possible[2] which is 14.88Mpps. The trick is to take advantage of the burst feature introduced in commit

[net-next PATCH v3 08/10] pktgen: add sample script pktgen_sample02_multiqueue.sh

2015-05-21 Thread Jesper Dangaard Brouer
Add the pktgen samples script pktgen_sample02_multiqueue.sh that demonstrates generating packets on multiqueue NICs. Specifically notice the options -t that specifies how many kernel threads to activate. Also notice the flag QUEUE_MAP_CPU, which cause the SKB TX queue to be mapped to the CPU

Re: [PATCH v4 for-next 04/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-05-21 Thread Or Gerlitz
On Thu, May 21, 2015 at 9:33 AM, Haggai Eran hagg...@mellanox.com wrote: you can use non default pkeys as well here. $ ip link add link ib0 name ib0.1 type ipoib pkey 0x8001 Right. I think when we started development of the namespaces patches these child interfaces (rtnetlink with pkey)

[PATCH 6/7] mac802154: Switch to new AEAD interface

2015-05-21 Thread Herbert Xu
This patch makes use of the new AEAD interface which uses a single SG list instead of separate lists for the AD and plain text. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- net/mac802154/llsec.c | 41 ++--- 1 file changed, 14 insertions(+), 27

[PATCH net-next] bridge: skip fdb add if the port shouldn't learn

2015-05-21 Thread Nikolay Aleksandrov
From: Wilson Kok w...@cumulusnetworks.com Check in fdb_add_entry() if the source port should learn, similar check is used in br_fdb_update. Note that new fdb entries which are added manually or as local ones are still permitted. This patch has been tested by running traffic via a bridge port and

[PATCH 2/7] xfrm: Add IV generator information to xfrm_algo_desc

2015-05-21 Thread Herbert Xu
This patch adds IV generator information for each AEAD and block cipher to xfrm_algo_desc. This will be used to access the new AEAD interface. Signed-off-by: Herbert Xu herb...@gondor.apana.org.au --- include/net/xfrm.h |2 ++ net/xfrm/xfrm_algo.c | 16 2 files

Re: Cause of Large Latency Difference Between 1179-byte and 1180-byte UDP Frames?

2015-05-21 Thread Alexander Duyck
On 05/20/2015 09:50 PM, Todd Bezenek wrote: I'm pushing 10,000 frames per second of UDP traffic through a Linux system with a bridge configured between two 1GbE ports. Iptables is installed and running, but the default rule is ACCEPT with no other rules. When I make the packets 1179 bytes in

[PATCH v3 net-next 4/4] net: af_unix: implement splice for stream af_unix sockets

2015-05-21 Thread Hannes Frederic Sowa
unix_stream_recvmsg is refactored to unix_stream_read_generic in this patch and enhanced to deal with pipe splicing. The refactoring is inneglible, we mostly have to deal with a non-existing struct msghdr argument. Signed-off-by: Hannes Frederic Sowa han...@stressinduktion.org --- v2: * checked

[PATCH v3 net-next 1/4] net: skbuff: add skb_append_pagefrags and use it

2015-05-21 Thread Hannes Frederic Sowa
Signed-off-by: Hannes Frederic Sowa han...@stressinduktion.org Acked-by: Eric Dumazet eduma...@google.com --- v2: * remove now unused variable i in ip_append_page (thanks, Cong!) * switched to EXPORT_SYMBOL_GPL for skb_append_pagefrags v3: * unchanged include/linux/skbuff.h | 3 +++

  1   2   3   >