[PATCH 2/2] openvswitch: Optimize operations for OvS flow_stats.

2017-07-16 Thread Tonghao Zhang
When calling the flow_free() to free the flow, we call many times (cpu_possible_mask, eg. 128 as default) cpumask_next(). That will take up our CPU usage if we call the flow_free() frequently. When we put all packets to userspace via upcall, and OvS will send them back via netlink to ovs_packet_cmd

[PATCH 1/2] openvswitch: Optimize updating for OvS flow_stats.

2017-07-16 Thread Tonghao Zhang
In the ovs_flow_stats_update(), we only use the node var to alloc flow_stats struct. But this is not a common case, it is unnecessary to call the numa_node_id() everytime. This patch is not a bugfix, but there maybe a small increase. Signed-off-by: Tonghao Zhang --- net/openvswitch/flow.c | 3 +-

Re: [PATCH] brcmfmac: added LED triggers for transmit/receive

2017-07-16 Thread Rafał Miłecki
On 11 July 2017 at 17:01, Russell Joyce wrote: > Thanks for your comments. > >> What I think Rafał is saying is that it would be better to have this >> code in cfg80211 so other drivers including mac80211 could use it. > > > While I agree that moving all wireless LED triggers to cfg80211 would be

Re: [PATCHv2 net-next 00/11] sctp: remove typedefs from structures part 2

2017-07-16 Thread David Miller
From: Xin Long Date: Mon, 17 Jul 2017 11:29:48 +0800 > As we know, typedef is suggested not to use in kernel, even checkpatch.pl > also gives warnings about it. Now sctp is using it for many structures. > > All this kind of typedef's using should be removed. This patchset is the > part 2 to remo

[PATCHv2 net-next 11/11] sctp: remove the typedef sctp_hmac_algo_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_hmac_algo_param_t, and replace with struct sctp_hmac_algo_param in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/str

[PATCHv2 net-next 10/11] sctp: remove the typedef sctp_chunks_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_chunks_param_t, and replace with struct sctp_chunks_param in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/structs.h

[PATCHv2 net-next 08/11] sctp: remove the typedef sctp_supported_ext_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_supported_ext_param_t, and replace with struct sctp_supported_ext_param in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/sm_m

[PATCHv2 net-next 09/11] sctp: remove the typedef sctp_random_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_random_param_t, and replace with struct sctp_random_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/structs.h | 2 +- net/sctp/auth.c| 9 - 3 files ch

[PATCHv2 net-next 07/11] sctp: remove the typedef sctp_adaptation_ind_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_adaptation_ind_param_t, and replace with struct sctp_adaptation_ind_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/sm_make_chunk.c | 4 ++-- 2 files changed, 4 insertions(+), 4 de

[PATCHv2 net-next 01/11] sctp: remove the typedef sctp_ipv4addr_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_ipv4addr_param_t, and replace with struct sctp_ipv4addr_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++--- net/sctp/protocol.c | 2 +- net/sctp/sm_make_chunk.c | 2 +- 3 files changed,

[PATCHv2 net-next 06/11] sctp: remove struct sctp_ecn_capable_param

2017-07-16 Thread Xin Long
Remove it, there is even no places using it. Signed-off-by: Xin Long --- include/linux/sctp.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 3ca3ab7..7552482 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -302,11 +302,6

[PATCHv2 net-next 03/11] sctp: remove the typedef sctp_cookie_preserve_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_cookie_preserve_param_t, and replace with struct sctp_cookie_preserve_param in the places where it's using this typedef. It is also to fix some indents in sctp_sf_do_5_2_6_stale(). Signed-off-by: Xin Long --- include/linux/sctp.h| 6 +++--- net/sctp

[PATCHv2 net-next 05/11] sctp: remove the typedef sctp_supported_addrs_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_supported_addrs_param_t, and replace with struct sctp_supported_addrs_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/sm_make_chunk.c | 2 +- 2 files changed, 3 insertions(+), 3 de

[PATCHv2 net-next 02/11] sctp: remove the typedef sctp_ipv6addr_param_t

2017-07-16 Thread Xin Long
This patch is to remove the typedef sctp_ipv6addr_param_t, and replace with struct sctp_ipv6addr_param in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/ipv6.c | 2 +- net/sctp/sm_make_chunk.c | 2 +- 3 files changed, 4

[PATCHv2 net-next 04/11] sctp: remove the typedef sctp_hostname_param_t

2017-07-16 Thread Xin Long
Remove this typedef, there is even no places using it. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index d8f9d8f..c43e906 100644 --- a/include/linux/sctp.h +++ b/include/linux

[PATCHv2 net-next 00/11] sctp: remove typedefs from structures part 2

2017-07-16 Thread Xin Long
As we know, typedef is suggested not to use in kernel, even checkpatch.pl also gives warnings about it. Now sctp is using it for many structures. All this kind of typedef's using should be removed. This patchset is the part 2 to remove it for another 11 basic structures. Just as the part 1, No an

[PATCH net-next resubmit] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-16 Thread Lin Zhang
In the pull_pages code block, if the first frag size > eat, we can end the loop in advance to avoid extra copy. Signed-off-by: Lin Zhang --- net/core/skbuff.c | 4 1 file changed, 4 insertions(+) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index f990eb8..c00a1df 100644 --- a/net/cor

Re: [PATCH net-next] rds: cancel send/recv work before queuing connection shutdown

2017-07-16 Thread David Miller
From: Sowmini Varadhan Date: Sun, 16 Jul 2017 16:43:46 -0700 > We could end up executing rds_conn_shutdown before the rds_recv_worker > thread, then rds_conn_shutdown -> rds_tcp_conn_shutdown can do a > sock_release and set sock->sk to null, which may interleave in bad > ways with rds_recv_worker

BUG triggered in tcp_openreq_init_rwin most likely due to 13d3b1ebe2876

2017-07-16 Thread David Ahern
Hi: I am getting the following while testing IPv6 changes: [ 3904.250981] TCP: request_sock_TCPv6: Possible SYN flooding on port 12345. Sending cookies. Check SNMP counters. [ 3904.252862] == [ 3904.254057] BUG: KASAN: null-ptr-dere

[PATCH net-next] rds: cancel send/recv work before queuing connection shutdown

2017-07-16 Thread Sowmini Varadhan
We could end up executing rds_conn_shutdown before the rds_recv_worker thread, then rds_conn_shutdown -> rds_tcp_conn_shutdown can do a sock_release and set sock->sk to null, which may interleave in bad ways with rds_recv_worker, e.g., it could result in: "BUG: unable to handle kernel NULL pointer

net-next is OPEN

2017-07-16 Thread David Miller
Tell your friends. http://vger.kernel.org/~davem/net-next.html

Re: [PATCH 00/12] constify atm pci_device_id.

2017-07-16 Thread David Miller
From: Arvind Yadav Date: Sun, 16 Jul 2017 15:02:28 +0530 > pci_device_id are not supposed to change at runtime. All functions > working with pci_device_id provided by work with > const pci_device_id. So mark the non-const structs as const. Series applied to net-next, thanks.

Re: [PATCH net-next v1] ip6: fix PMTU discovery when using /127 subnets

2017-07-16 Thread David Miller
From: Vincent Bernat Date: Sat, 15 Jul 2017 19:40:20 +0200 > The definition of an "anycast destination address" has been tweaked as a > side-effect of commit 2647a9b07032 ("ipv6: Remove external dependency on > rt6i_gateway and RTF_ANYCAST"). The first address of a point-to-point > /127 subnet is

Re: [PATCH net-next] sunvnet: add support for IPv6 checksum offloads

2017-07-16 Thread David Miller
From: Shannon Nelson Date: Thu, 6 Jul 2017 16:57:10 -0700 > The original code didn't handle non-IPv4 packets very well, so the > offload advertising had to be scaled back down to just IP. Here we > add the bits needed to support TCP and UDP packets over IPv6 and > turn the offload advertising b

Re: [PATCH net-next,1/1] tools: hv: ignore a NIC if it has been configured

2017-07-16 Thread David Miller
From: Simon Xiao Date: Fri, 14 Jul 2017 10:47:20 -0700 > Let bondvf.sh ignore this NIC if it has been configured, to prevent > user configuration from being overwritten unexpectly. > > Signed-off-by: Simon Xiao Applied.

ath10k_htt_rx_amsdu_allowed() noise

2017-07-16 Thread Gabriel C
Hello, each time I disconnect my card from AP my dmesg gets flooded like this : ... ath10k_pci :03:00.0: no channel configured; ignoring frame(s)! ath10k_warn: 155 callbacks suppressed Can ath10k_warn() be ath10k_dbg() there ? Maybe this ? From d4138d936635ca7b69ed7f7b0cda4914f0f07917 M

I NEED YOUR URGENT HELP AND CORPERATION

2017-07-16 Thread IBRAHIM KABORE
Dear Friend I am contacting you on a business deal of $9,500,000.00 Million United States Dollars, ready for transfer into your own personal account and if we make this claim, we will share it on the ratio of 50% / 50% basis, I would like to assure you that it be 100% risk free and it will be l

[PATCH 00/12] constify atm pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Arvind Yadav (12): [PATCH 01/12] atm: iphase: constify pci_device_id. [PATCH 02/12] atm: ambassador: constify pci_de

[PATCH 04/12] atm: nicstar: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 22781 464 128 233735b4d drivers/atm/n

[PATCH 02/12] atm: ambassador: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 13372 408 4 1378435d8 drivers/atm/a

[PATCH 01/12] atm: iphase: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 23536 432 160 241285e40 drivers/atm/i

[PATCH 05/12] atm: he: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 26514 440 48 27002697a drivers/atm/h

[PATCH 03/12] atm: fore200e: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 20025 320 16 203614f89 drivers/atm/f

[PATCH 07/12] atm: solos-pci: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 161384592 24 207545112 drivers/atm/s

[PATCH 06/12] atm: horizon: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 9859 328 6 1019327d1 drivers/atm/h

[PATCH 09/12] atm: zatm: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 14350 352 40 147423996 drivers/atm/z

[PATCH 11/12] atm: eni: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 21565 352 56 2197355d5 drivers/atm/e

[PATCH 10/12] atm: firestream: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 16884 444 28 1735643cc drivers/atm/f

[PATCH 08/12] atm: lanai: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 18074 352 0 1842647fa drivers/atm/l

[PATCH 12/12] atm: idt77252: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 27702 468 16 281866e1a drivers/atm/i

Re: [RFC PATCH 00/12] Implement XDP bpf_redirect vairants

2017-07-16 Thread Jesper Dangaard Brouer
On Tue, 11 Jul 2017 12:37:10 -0700 John Fastabend wrote: > > I have a really strange observation... if I change the CPU powersave > > settings, then the xdp_redirect_map performance drops in half! Above > > was with "tuned-adm profile powersave" (because, this is a really noisy > > server, and

Re: IGMP snooping, switchdev and local multicast receiver on br interface

2017-07-16 Thread Yotam Gigi
On 07/14/2017 06:30 PM, Vivien Didelot wrote: > Hi All, > > Andrew Lunn writes: > >> I've been testing IGMP snooping support with DSA, putting MDB entries >> into the switch so that traffic only goes out ports where there has >> been an interest indicated via IGMP. It mostly works, but i've come >