[PATCHv8] wlcore: spi: add wl18xx support

2016-07-19 Thread Reizer, Eyal
Add support for using with both wl12xx and wl18xx. - all wilink family needs special init command for entering wspi mode. extra clock cycles should be sent after the spi init command while the cs pin is high. - Use inverted chip select for sending a dummy 4 bytes command that completes the i

Re: [PATCH v4 0/7] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-19 Thread Joe Perches
On Wed, 2016-07-20 at 06:02 +, Levy, Amir (Jer) wrote: > On Tue, Jul 19 2016, 08:14 PM, Joe Perches wrote: > > On Mon, 2016-07-18 at 13:00 +0300, Amir Levy wrote: > > > > > > This is version 4 of Thunderbolt(TM) driver for non-Apple hardware. > > [] > > >  Documentation/00-INDEX   

linux-next: manual merge of the cgroup tree with the net-next tree

2016-07-19 Thread Stephen Rothwell
Hi Tejun, Today's linux-next merge of the cgroup tree got a conflict in: kernel/cgroup.c between commit: 1f3fe7ebf613 ("cgroup: Add cgroup_get_from_fd") from the net-next tree and commit: 55094f575358 ("cgroup: remove duplicated include from cgroup.c") from the cgroup tree. I fixed it

RE: [PATCH v4 0/7] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-19 Thread Levy, Amir (Jer)
On Tue, Jul 19 2016, 08:14 PM, Joe Perches wrote: > On Mon, 2016-07-18 at 13:00 +0300, Amir Levy wrote: > > This is version 4 of Thunderbolt(TM) driver for non-Apple hardware. > [] > >  Documentation/00-INDEX   |2 + > >  Documentation/thunderbolt-networking.txt |  135 ++ > >  dr

Re: [PATCH v10 00/12] Add driver bpf hook for early packet drop and forwarding

2016-07-19 Thread David Miller
From: Brenden Blanco Date: Tue, 19 Jul 2016 12:16:45 -0700 > This patch set introduces new infrastructure for programmatically > processing packets in the earliest stages of rx, as part of an effort > others are calling eXpress Data Path (XDP) [1]. Start this effort by > introducing a new bpf pro

[PATCH 1/1] ixgbevf: replace num with macro

2016-07-19 Thread zyjzyj2000
From: Zhu Yanjun With the original num, when a several bits state is set, it is possible that the wrong test occurs. For example, a state is 0x3, its bits are 11. When testing a state 0x2 whose bits are 10, it is difficult to confirm that state 0x2 is set or not. As such, the MACROs are define

RE: [PATCH v17 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-19 Thread Dexuan Cui
> From: David Miller [mailto:da...@davemloft.net] > >> From: kbuild test robot [mailto:l...@intel.com] > >> [auto build test WARNING on net-next/master] > >> > >> url:https://github.com/0day-ci/linux/commits/Dexuan-Cui/introduce- > >> Hyper-V-VM-Sockets-hv_sock/20160715-223433 > >> config: x86_

Re: [Patch-V2 2/3] chcr: Support for Chelsio's Crypto Hardware

2016-07-19 Thread David Miller
From: Yeshaswi M R Gowda Date: Mon, 18 Jul 2016 22:42:14 -0700 > +config CRYPTO_DEV_CHELSIO > + tristate "Chelsio Crypto Co-processor Driver" > + depends on PCI && NETDEVICES && ETHERNET > + select CRYPTO_SHA1 > + select CRYPTO_SHA256 > + select CRYPTO_SHA512 > + select NE

Re: [PATCH net-next v3 00/10] NCSI Support

2016-07-19 Thread Benjamin Herrenschmidt
On Tue, 2016-07-19 at 20:49 -0700, David Miller wrote: > From: Gavin Shan > Date: Tue, 19 Jul 2016 11:54:15 +1000 > > > This series rebases on David's linux-net git repo ("master" > branch). It's > > to support NCSI stack on drivers/net/ethernet/faraday/ftgmac100.c. > The > > implementation is ba

Re: [PATCH v3] packet: fix second argument of sock_tx_timestamp()

2016-07-19 Thread David Miller
From: Yoshihiro Shimoda Date: Tue, 19 Jul 2016 14:40:51 +0900 > This patch fixes an issue that a syscall (e.g. sendto syscall) cannot > work correctly. Since the sendto syscall doesn't have msg_control buffer, > the sock_tx_timestamp() in packet_snd() cannot work correctly because > the socks.tsf

Re: [PATCH net-next v3 00/10] NCSI Support

2016-07-19 Thread David Miller
From: Gavin Shan Date: Tue, 19 Jul 2016 11:54:15 +1000 > This series rebases on David's linux-net git repo ("master" branch). It's > to support NCSI stack on drivers/net/ethernet/faraday/ftgmac100.c. The > implementation is based on NCSI spec (version: 1.1.0): > https://www.dmtf.org/sites/default

Re: [PATCH net-next v3 1/2] bpf: Add bpf_copy_to_user BPF helper to be called in tracers (kprobes)

2016-07-19 Thread Sargun Dhillon
On Wed, 20 Jul 2016, Daniel Borkmann wrote: On 07/19/2016 06:34 PM, Alexei Starovoitov wrote: On Tue, Jul 19, 2016 at 01:17:53PM +0200, Daniel Borkmann wrote: + return -EINVAL; + + /* Is this a user address, or a kernel address? */ + if (!access_ok(VERIFY_WRITE, to,

Re: [kbuild-all] [PATCH v17 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-19 Thread Fengguang Wu
On Tue, Jul 19, 2016 at 07:52:53PM -0700, David Miller wrote: From: Dexuan Cui Date: Wed, 20 Jul 2016 01:48:18 + From: kbuild test robot [mailto:l...@intel.com] Sent: Wednesday, July 20, 2016 1:10 Hi, [auto build test WARNING on net-next/master] url:https://github.com/0day-ci/linux/

Re: [PATCH net-next v3 1/2] bpf: Add bpf_copy_to_user BPF helper to be called in tracers (kprobes)

2016-07-19 Thread Alexei Starovoitov
On Wed, Jul 20, 2016 at 01:19:51AM +0200, Daniel Borkmann wrote: > On 07/19/2016 06:34 PM, Alexei Starovoitov wrote: > >On Tue, Jul 19, 2016 at 01:17:53PM +0200, Daniel Borkmann wrote: > >>>+ return -EINVAL; > >>>+ > >>>+ /* Is this a user address, or a kernel address? */ > >>>+ if (!acc

[PATCH 1/1] ixgbevf: avoid checking hang when performing hardware reset

2016-07-19 Thread zyjzyj2000
From: Zhu Yanjun When performing hardware reset, it is not necessary to check hang. Or else, the call trace will appear. Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 1 + drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 5 +++-- drivers/net/ethernet/inte

[no subject]

2016-07-19 Thread zyjzyj2000
v1->v2: Follow the advice from Donald, replacing read directly from RSTD and RSTI register with a state variable __IXGBEVF_HW_RESETTING;

Re: [PATCH v17 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-19 Thread David Miller
From: Dexuan Cui Date: Wed, 20 Jul 2016 01:48:18 + >> From: kbuild test robot [mailto:l...@intel.com] >> Sent: Wednesday, July 20, 2016 1:10 >> >> Hi, >> >> [auto build test WARNING on net-next/master] >> >> url:https://github.com/0day-ci/linux/commits/Dexuan-Cui/introduce- >> Hyper-V-

Re: [PATCH net-next v3 00/12] net: dsa: mv88e6xxx: Global2 cleanup and STP

2016-07-19 Thread David Miller
From: Vivien Didelot Date: Mon, 18 Jul 2016 20:45:28 -0400 > The Marvell switches registers are organized in distinct internal SMI > devices, such as PHY, Port, Global 1 or Global 2 registers sets. > > Since not all chips support every registers sets or have slightly > differences in them (such

Re: [patch 1/1] kernel/trace/bpf_trace.c: work around gcc-4.4.4 anon union initialization bug

2016-07-19 Thread David Miller
From: a...@linux-foundation.org Date: Mon, 18 Jul 2016 15:50:58 -0700 > From: Andrew Morton > Subject: kernel/trace/bpf_trace.c: work around gcc-4.4.4 anon union > initialization bug > > kernel/trace/bpf_trace.c: In function 'bpf_event_output': > kernel/trace/bpf_trace.c:312: error: unknown fie

Re: [PATCH resend] virtio-net: Remove more stack DMA

2016-07-19 Thread David Miller
From: Andy Lutomirski Date: Mon, 18 Jul 2016 15:34:49 -0700 > VLAN and MQ control was doing DMA from the stack. Fix it. > > Cc: Michael S. Tsirkin > Cc: "netdev@vger.kernel.org" > Signed-off-by: Andy Lutomirski > --- > > I tested VLAN addition and removal with CONFIG_VMAP_STACK=y, > CONFIG_

Re: [PATCH net] bnxt_en: Remove locking around txr->dev_state

2016-07-19 Thread David Miller
From: Florian Fainelli Date: Mon, 18 Jul 2016 13:02:47 -0700 > txr->dev_state was not consistently manipulated with the acquisition of > the per-queue lock, after further inspection the lock does not seem > necessary, either the value is read as BNXT_DEV_STATE_CLOSING or 0. > > Reported-by: cove

linux-next: manual merge of the net-next tree with the net tree

2016-07-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/sctp/input.c between commit: c74bfbdba0e8 ("sctp: load transport header after sk_filter") from the net tree and commit: 3acb50c18d8d ("sctp: delay as much as possible skb_linearize") from the net-next tree. I

linux-next: manual merge of the net-next tree with the net tree

2016-07-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/sched/sch_htb.c between commit: 338ed9b4de57 ("net_sched: sch_htb: export class backlog in dumps") from the net tree and commit: 0564bf0afae4 ("net/sched/sch_htb: clamp xstats tokens to fit into 32-bit int") f

Re: [kbuild-all] [PATCH v17 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-19 Thread Fengguang Wu
Yes, sorry for the noises! >> net/hv_sock/af_hvsock.o: warning: objtool: hvsock_on_channel_cb()+0x1d: function has unreachable instruction These warnings are all false alarms. Thanks, -- Dexuan ___ kbuild-all mailing list kbuild-...@lists.01.org htt

RE: [PATCH v17 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-19 Thread Dexuan Cui
> From: kbuild test robot [mailto:l...@intel.com] > Sent: Wednesday, July 20, 2016 1:10 > > Hi, > > [auto build test WARNING on net-next/master] > > url:https://github.com/0day-ci/linux/commits/Dexuan-Cui/introduce- > Hyper-V-VM-Sockets-hv_sock/20160715-223433 > config: x86_64-randconfig-a0-

答复: [PATCH 1/1] netfilter: Add helper array register/unregister functions

2016-07-19 Thread 高峰
Oh, thanks Liping. I have not found the extra port styles are different of irc, sane and tftp with ftp. Hi Pablo, Then should I modify the original patch or send a new one? -邮件原件- 发件人: Liping Zhang [mailto:zlpnob...@gmail.com] 发送时间: 2016年7月20日 8:51 收件人: f...@ikuai8.com 抄送: Pablo Neira

Re: [PATCH 1/1] netfilter: Add helper array register/unregister functions

2016-07-19 Thread Liping Zhang
2016-07-18 11:39 GMT+08:00 : > From: Gao Feng > > Add nf_ct_helper_init, nf_conntrack_helpers_register/unregister > functions to enhance the conntrack helper codes. I think this patch is breaking something ... This irc: > - if (ports[i] == IRC_PORT) > - sprin

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

2016-07-19 Thread Daniel Borkmann
On 07/19/2016 08:04 PM, Cong Wang wrote: On Tue, Jul 19, 2016 at 8:03 AM, Daniel Borkmann wrote: On 07/19/2016 03:56 PM, Jamal Hadi Salim wrote: [...] But apart from this, neither pedit nor tcf_skbmod_run() here handle checksum complete, so you'll potentially get false positives wrt csum corr

Re: [ovs-dev] [PATCH net-next v11 5/6] openvswitch: add layer 3 flow/port support

2016-07-19 Thread Simon Horman
On Mon, Jul 18, 2016 at 03:34:52PM -0700, pravin shelar wrote: > On Sun, Jul 17, 2016 at 9:50 PM, Simon Horman > wrote: > > [CC Jiri Benc for portion regarding GRE] > > > > Hi Pravin, > > > > On Fri, Jul 15, 2016 at 02:07:37PM -0700, pravin shelar wrote: > >> On Wed, Jul 13, 2016 at 12:31 AM, Simo

Re: [PATCH net] net: switchdev: change ageing_time type to clock_t

2016-07-19 Thread David Miller
From: Vivien Didelot Date: Mon, 18 Jul 2016 15:02:06 -0400 > The switchdev value for the SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME > attribute is a clock_t and requires to use helpers such as > clock_t_to_jiffies() to convert to milliseconds. > > Change ageing_time type from u32 to clock_t to make it

Re: [PATCH 1/1] Update maintainer for EHEA driver.

2016-07-19 Thread David Miller
From: Douglas Miller Date: Mon, 18 Jul 2016 12:28:45 -0500 > Since Thadeu left IBM, EHEA has gone mostly unmaintained, since his email > address doesn't work anymore. I'm stepping up to help maintain this > driver upstream. > > I'm adding Thadeu's personal e-mail address in Cc, hoping that we c

Re: [PATCH net 0/2] Safe flow for mlx4_en configuration change

2016-07-19 Thread David Miller
From: Tariq Toukan Date: Mon, 18 Jul 2016 18:35:10 +0300 > This patchset improves the mlx4_en driver resiliency, especially on > systems with low memory. Upon a configuration change that requires > the allocation of new resources, we first try to allocate, prior to > destroying the current ones.

Re: [PATCH 0/2] net: Consider fragmentation of udp tunneled skbs in 'ip_finish_output_gso'

2016-07-19 Thread David Miller
From: Shmulik Ladkani Date: Mon, 18 Jul 2016 14:49:32 +0300 > Currently IP fragmentation of GSO segments that exceed dst mtu is > considered only in the ipv4 forwarding case. > > There are cases where GSO skbs that are bridged and then udp-tunneled > may have gso_size exceeding the egress device

Re: [PATCH net-next v2 07/10] net/faraday: Read MAC address from chip

2016-07-19 Thread Gavin Shan
On Tue, Jul 19, 2016 at 08:57:53PM +1000, Benjamin Herrenschmidt wrote: >On Tue, 2016-07-19 at 10:50 +, David Laight wrote: >> > + if (!is_valid_ether_addr(mac)) { >> > + mac[5] = (m >> 8) & 0xff; >> > + mac[4] = m & 0xff; >> > + mac[3] = (l >> 24) & 0xff

Re: Network hang after c3f1010b30f7fc611139cfb702a8685741aa6827 with CIPSO & Smack

2016-07-19 Thread Casey Schaufler
On 7/6/2016 11:56 AM, Casey Schaufler wrote: > On 7/6/2016 11:43 AM, David Ahern wrote: >> On 7/6/16 11:01 AM, Casey Schaufler wrote: >>> I find the test occasionally passes without hanging, but will >>> hang the system if repeated. I am running on Ubuntu and Fedora, >>> both with systemd, which ma

Re: [PATCH net-next 0/6] bnxt_en: Add support for NS2 Nitro.

2016-07-19 Thread David Miller
From: Michael Chan Date: Mon, 18 Jul 2016 07:15:19 -0400 > This series adds support for the embedded version of the > ethernet controller (Nitro) in the North Star 2 SoC. There are a number > of features not supported and a software workaround for a hardware rx > bug is required for Nitro A0. P

Re: [PATCH net-next v3 1/2] bpf: Add bpf_copy_to_user BPF helper to be called in tracers (kprobes)

2016-07-19 Thread Daniel Borkmann
On 07/19/2016 06:34 PM, Alexei Starovoitov wrote: On Tue, Jul 19, 2016 at 01:17:53PM +0200, Daniel Borkmann wrote: + return -EINVAL; + + /* Is this a user address, or a kernel address? */ + if (!access_ok(VERIFY_WRITE, to, size)) + return -EINVAL; + +

Re: [PATCH v6 0/4] Marvell phy: fiber interface configuration

2016-07-19 Thread David Miller
From: Charles-Antoine Couret Date: Tue, 19 Jul 2016 11:13:09 +0200 > Another patchset to manage correctly the fiber link for some concerned > Marvell's > phy like 88E1512. > > This patchset fixed the commit log for the third and last commits and a > comment > in the first commit. Series appli

Re: [PATCH 0/2] Fix DMA channel misreporting for the Renesas Ethernet drivers

2016-07-19 Thread David Miller
From: Sergei Shtylyov Date: Sun, 17 Jul 2016 16:06:24 +0300 >Here's a set of 2 patches against DaveM's 'net.git' repo fixing > up the DMA channel reporting by 'ifconfig'... Seires applied to net-next.

Re: [PATCH v10 12/12] bpf: add sample for xdp forwarding and rewrite

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:57PM -0700, Brenden Blanco wrote: > Add a sample that rewrites and forwards packets out on the same > interface. Observed single core forwarding performance of ~10Mpps. > > Since the mlx4 driver under test recycles every single packet page, the > perf output shows alm

Re: [PATCH v4 0/7] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-19 Thread Bjorn Helgaas
On Mon, Jul 18, 2016 at 01:00:33PM +0300, Amir Levy wrote: > This is version 4 of Thunderbolt(TM) driver for non-Apple hardware. > > Changes since v3: > - Moved new Thunderbolt device IDs from pci_ids.h to icm_nhi.h. > - Cleanup and added some comments in code. > > These patches were pushed to

Re: [PATCH v10 11/12] bpf: enable direct packet data write for xdp progs

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:56PM -0700, Brenden Blanco wrote: > For forwarding to be effective, XDP programs should be allowed to > rewrite packet data. > > This requires that the drivers supporting XDP must all map the packet > memory as TODEVICE or BIDIRECTIONAL before invoking the program. >

Re: [PATCH v10 08/12] bpf: add XDP_TX xdp_action for direct forwarding

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:53PM -0700, Brenden Blanco wrote: > XDP enabled drivers must transmit received packets back out on the same > port they were received on when a program returns this action. > > Signed-off-by: Brenden Blanco > --- > include/uapi/linux/bpf.h | 1 + > 1 file changed, 1

Re: [PATCH v10 07/12] net/mlx4_en: add page recycle to prepare rx ring for tx support

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:52PM -0700, Brenden Blanco wrote: > The mlx4 driver by default allocates order-3 pages for the ring to > consume in multiple fragments. When the device has an xdp program, this > behavior will prevent tx actions since the page must be re-mapped in > TODEVICE mode, whic

Re: [PATCH v10 01/12] bpf: add bpf_prog_add api for bulk prog refcnt

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:46PM -0700, Brenden Blanco wrote: > A subsystem may need to store many copies of a bpf program, each > deserving its own reference. Rather than requiring the caller to loop > one by one (with possible mid-loop failure), add a bulk bpf_prog_add > api. > > Signed-off-by

Re: [PATCH v10 06/12] Add sample for adding simple drop program to link

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:51PM -0700, Brenden Blanco wrote: > Add a sample program that only drops packets at the BPF_PROG_TYPE_XDP_RX > hook of a link. With the drop-only program, observed single core rate is > ~20Mpps. > > Other tests were run, for instance without the dropcnt increment or >

Re: [PATCH v10 05/12] net/mlx4_en: add support for fast rx drop bpf program

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:50PM -0700, Brenden Blanco wrote: > Add support for the BPF_PROG_TYPE_XDP hook in mlx4 driver. > > In tc/socket bpf programs, helpers linearize skb fragments as needed > when the program touches the packet data. However, in the pursuit of > speed, XDP programs will no

Re: [PATCH v10 02/12] bpf: add XDP prog type for early driver filter

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 12:16:47PM -0700, Brenden Blanco wrote: > Add a new bpf prog type that is intended to run in early stages of the > packet rx path. Only minimal packet metadata will be available, hence a > new context type, struct xdp_md, is exposed to userspace. So far only > expose the pac

Re: [Intel-wired-lan] [PATCH net] e1000e: fix PTP on e1000_pch_lpt variants

2016-07-19 Thread Rustad, Mark D
Jarod Wilson wrote: I've got reports that the Intel I-218V NIC in Intel NUC5i5RYH systems used as a PTP slave experiences random ~10 hour clock jumps, which are resolved if the same workaround for the 82574 and 82583 is employed. Switching from an if to a select, because the list of NIC types c

[PATCH net] e1000e: fix PTP on e1000_pch_lpt variants

2016-07-19 Thread Jarod Wilson
I've got reports that the Intel I-218V NIC in Intel NUC5i5RYH systems used as a PTP slave experiences random ~10 hour clock jumps, which are resolved if the same workaround for the 82574 and 82583 is employed. Switching from an if to a select, because the list of NIC types could well grow further a

Re: [PATCH] WiMAX-i2400m: Delete an unnecessary check before the function call "kfree_skb"

2016-07-19 Thread SF Markus Elfring
> From: Markus Elfring > Date: Mon, 16 Nov 2015 11:17:55 +0100 > > The kfree_skb() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elf

[PATCH v10 06/12] Add sample for adding simple drop program to link

2016-07-19 Thread Brenden Blanco
Add a sample program that only drops packets at the BPF_PROG_TYPE_XDP_RX hook of a link. With the drop-only program, observed single core rate is ~20Mpps. Other tests were run, for instance without the dropcnt increment or without reading from the packet header, the packet rate was mostly unchange

[PATCH v10 05/12] net/mlx4_en: add support for fast rx drop bpf program

2016-07-19 Thread Brenden Blanco
Add support for the BPF_PROG_TYPE_XDP hook in mlx4 driver. In tc/socket bpf programs, helpers linearize skb fragments as needed when the program touches the packet data. However, in the pursuit of speed, XDP programs will not be allowed to use these slower functions, especially if it involves allo

[PATCH v10 00/12] Add driver bpf hook for early packet drop and forwarding

2016-07-19 Thread Brenden Blanco
This patch set introduces new infrastructure for programmatically processing packets in the earliest stages of rx, as part of an effort others are calling eXpress Data Path (XDP) [1]. Start this effort by introducing a new bpf program type for early packet filtering, before even an skb has been all

[PATCH v10 01/12] bpf: add bpf_prog_add api for bulk prog refcnt

2016-07-19 Thread Brenden Blanco
A subsystem may need to store many copies of a bpf program, each deserving its own reference. Rather than requiring the caller to loop one by one (with possible mid-loop failure), add a bulk bpf_prog_add api. Signed-off-by: Brenden Blanco --- include/linux/bpf.h | 1 + kernel/bpf/syscall.c | 1

[PATCH v10 08/12] bpf: add XDP_TX xdp_action for direct forwarding

2016-07-19 Thread Brenden Blanco
XDP enabled drivers must transmit received packets back out on the same port they were received on when a program returns this action. Signed-off-by: Brenden Blanco --- include/uapi/linux/bpf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.

[PATCH v10 07/12] net/mlx4_en: add page recycle to prepare rx ring for tx support

2016-07-19 Thread Brenden Blanco
The mlx4 driver by default allocates order-3 pages for the ring to consume in multiple fragments. When the device has an xdp program, this behavior will prevent tx actions since the page must be re-mapped in TODEVICE mode, which cannot be done if the page is still shared. Start by making the alloc

[PATCH v10 04/12] rtnl: add option for setting link xdp prog

2016-07-19 Thread Brenden Blanco
Sets the bpf program represented by fd as an early filter in the rx path of the netdev. The fd must have been created as BPF_PROG_TYPE_XDP. Providing a negative value as fd clears the program. Getting the fd back via rtnl is not possible, therefore reading of this value merely provides a bool wheth

[PATCH v10 02/12] bpf: add XDP prog type for early driver filter

2016-07-19 Thread Brenden Blanco
Add a new bpf prog type that is intended to run in early stages of the packet rx path. Only minimal packet metadata will be available, hence a new context type, struct xdp_md, is exposed to userspace. So far only expose the packet start and end pointers, and only in read mode. An XDP program must

[PATCH v10 10/12] net/mlx4_en: add xdp forwarding and data write support

2016-07-19 Thread Brenden Blanco
A user will now be able to loop packets back out of the same port using a bpf program attached to xdp hook. Updates to the packet contents from the bpf program is also supported. For the packet write feature to work, the rx buffers are now mapped as bidirectional when the page is allocated. This o

[PATCH v10 11/12] bpf: enable direct packet data write for xdp progs

2016-07-19 Thread Brenden Blanco
For forwarding to be effective, XDP programs should be allowed to rewrite packet data. This requires that the drivers supporting XDP must all map the packet memory as TODEVICE or BIDIRECTIONAL before invoking the program. Signed-off-by: Brenden Blanco --- kernel/bpf/verifier.c | 17

[PATCH v10 03/12] net: add ndo to setup/query xdp prog in adapter rx

2016-07-19 Thread Brenden Blanco
Add one new netdev op for drivers implementing the BPF_PROG_TYPE_XDP filter. The single op is used for both setup/query of the xdp program, modelled after ndo_setup_tc. Signed-off-by: Brenden Blanco --- include/linux/netdevice.h | 34 ++ net/core/dev.c

[PATCH v10 09/12] net/mlx4_en: break out tx_desc write into separate function

2016-07-19 Thread Brenden Blanco
In preparation for writing the tx descriptor from multiple functions, create a helper for both normal and blueflame access. Signed-off-by: Brenden Blanco --- drivers/infiniband/hw/mlx4/qp.c| 11 +-- drivers/net/ethernet/mellanox/mlx4/en_tx.c | 134 - incl

[PATCH v10 12/12] bpf: add sample for xdp forwarding and rewrite

2016-07-19 Thread Brenden Blanco
Add a sample that rewrites and forwards packets out on the same interface. Observed single core forwarding performance of ~10Mpps. Since the mlx4 driver under test recycles every single packet page, the perf output shows almost exclusively just the ring management and bpf program work. Slowdowns a

Re: [PATCH net-next v3 11/12] net: dsa: mv88e6xxx: add G1 helper for ageing time

2016-07-19 Thread Andrew Lunn
On Mon, Jul 18, 2016 at 08:45:39PM -0400, Vivien Didelot wrote: > All Marvell switch chips from (88E6060 to 88E6390) have a ATU Control > register containing bits 11:4 to configure an ATU Age Time quotient. > > However the coefficient used to calculate the ATU Age Time vary with the > models. E.g.

Re: [PATCH net-next v3 10/12] net: dsa: support switchdev ageing time attr

2016-07-19 Thread Andrew Lunn
On Mon, Jul 18, 2016 at 08:45:38PM -0400, Vivien Didelot wrote: > Add a new function for DSA drivers to handle the switchdev > SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME attribute. > > The ageing time is passed as milliseconds. > > Also because we can have multiple logical bridges on top of a physical

Re: [PATCH net-next v3 12/12] net: dsa: mv88e6xxx: add support for DSA ageing time

2016-07-19 Thread Andrew Lunn
On Mon, Jul 18, 2016 at 08:45:40PM -0400, Vivien Didelot wrote: > Implement the DSA driver function to configure the bridge ageing time. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

4.4 Backport request 4d06dd537f95 cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind

2016-07-19 Thread Chas Williams
Can 4d06dd537f95 cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind be added to 4.4 stable?  This fixes CVE-2016-3951 [The second half necessary for a complete fix, 666984c8625 ("usbnet: cleanup after bind() in probe()"), is already present in 4.4.] Thanks!

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-19 Thread Netanel Belgazal
On 07/19/2016 08:26 PM, Leon Romanovsky wrote: > On Tue, Jul 19, 2016 at 02:09:25PM +0300, Netanel Belgazal wrote: >> >> On 07/15/2016 08:00 AM, Leon Romanovsky wrote: >>> On Thu, Jul 14, 2016 at 09:46:14AM +0300, Netanel Belgazal wrote: This is a driver for the ENA family of networking devi

Re: [PATCH] net: ti: cpmac: Use the correct function to free some resources.

2016-07-19 Thread David Miller
From: Christophe JAILLET Date: Sun, 17 Jul 2016 08:15:50 +0200 > In 'cpmac_open', 'dma_alloc_coherent' has been used to allocate some > resources, so we need to free them using 'dma_free_coherent' instead > of 'kfree'. > > Also, we don't need to free these resources if the allocation has failed.

Re: [PATCH] drivers: atm: nicstar: Use the correct function to free some resources

2016-07-19 Thread David Miller
From: Christophe JAILLET Date: Sun, 17 Jul 2016 09:03:24 +0200 > In 'get_scq', 'dma_alloc_coherent' has been used to allocate some > resources, so we need to free them using 'dma_free_coherent' instead > of 'kfree'. > > Signed-off-by: Christophe JAILLET Applied.

Re: [1/3] rtlwifi: don't add include path for rtl8188ee

2016-07-19 Thread Kalle Valo
Arnd Bergmann wrote: > For rtl8188ee, we pass -Idrivers/net/wireless/rtlwifi/ to gcc, > however that directy no longer exists, so evidently this option > is no longer required here and can be removed to avoid a warning > when building with 'make W=1' or 'gcc -Wmissing-include-dirs' > > Signed-off

Re: [v7] wlcore: spi: add wl18xx support

2016-07-19 Thread Kalle Valo
Eyal Reizer wrote: > From: Eyal Reizer > > Add support for using with both wl12xx and wl18xx. > > - all wilink family needs special init command for entering wspi mode. > extra clock cycles should be sent after the spi init command while the > cs pin is high. > - Use inverted chip select fo

Re: [PATCH 1/1] netfilter: Add helper array register/unregister functions

2016-07-19 Thread Pablo Neira Ayuso
On Mon, Jul 18, 2016 at 11:39:23AM +0800, f...@ikuai8.com wrote: > From: Gao Feng > > Add nf_ct_helper_init, nf_conntrack_helpers_register/unregister > functions to enhance the conntrack helper codes. Applied, thanks. I have manually updated indentations to make it fit to our coding style, btw.

Re: [PATCH v2 05/11] Kbuild: don't add obj tree in additional includes

2016-07-19 Thread Kalle Valo
Arnd Bergmann writes: >> > I think that's fine, a couple were already picked up, and what I have >> > left now is >> > >> > a281bfa5713a [SUBMITTED 20160615] [EXPERIMENTAL] Kbuild: enable >> > -Wmissing-include-dirs by default >> > 83934921e68e [SUBMITTED 20160615] rtlwifi: don't add include pat

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

2016-07-19 Thread Cong Wang
On Tue, Jul 19, 2016 at 8:03 AM, Daniel Borkmann wrote: > On 07/19/2016 03:56 PM, Jamal Hadi Salim wrote: > [...] >>> >>> But apart from this, >>> neither pedit nor tcf_skbmod_run() here handle checksum complete, so >>> you'll >>> potentially get false positives wrt csum corruption and drops as a

Re: [net-next v2 1/6] libcxgb: add library module for Chelsio drivers

2016-07-19 Thread David Miller
From: Varun Prakash Date: Sat, 16 Jul 2016 22:49:15 +0530 > } > + > +static int __init libcxgb_init(void) > +{ > + return 0; > +} > + > +static void __exit libcxgb_exit(void) > +{ > +} > + > +module_init(libcxgb_init); > +module_exit(libcxgb_exit); If these functions don't have to do anythi

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-19 Thread Joe Perches
On Tue, 2016-07-19 at 20:26 +0300, Leon Romanovsky wrote: > On Tue, Jul 19, 2016 at 02:09:25PM +0300, Netanel Belgazal wrote: > > This is the debugging message interface. > > https://www.kernel.org/doc/Documentation/networking/netif-msg.txt > This document was updated last time in 2006 and I doubt

Re: [PATCH v8 06/11] net/mlx4_en: add page recycle to prepare rx ring for tx support

2016-07-19 Thread Brenden Blanco
On Tue, Jul 19, 2016 at 04:33:28PM +0300, Tariq Toukan wrote: [...] > >So, I took Dave's suggestion to heart, and spent the last 2 days seeing > >what was possible to implement with just xdp as the focus, rather than > >an overall cleanup which Tariq will be looking at. > > > >Unfortunately, this t

Re: [PATCH V2] Add flow control to the portmapper

2016-07-19 Thread Leon Romanovsky
On Tue, Jul 19, 2016 at 09:50:24AM -0500, Shiraz Saleem wrote: > On Tue, Jul 19, 2016 at 08:40:06AM +0300, Leon Romanovsky wrote: > > > > You are the one user of this new inline function. > > Why don't you directly call to netlink_unicast() in your ibnl_unicast() > > without messing with widely vi

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-19 Thread Leon Romanovsky
On Tue, Jul 19, 2016 at 02:09:25PM +0300, Netanel Belgazal wrote: > > > On 07/15/2016 08:00 AM, Leon Romanovsky wrote: > > On Thu, Jul 14, 2016 at 09:46:14AM +0300, Netanel Belgazal wrote: > >> This is a driver for the ENA family of networking devices. > >> > >> Signed-off-by: Netanel Belgazal >

Re: [PATCH net-next v3 10/12] net: dsa: support switchdev ageing time attr

2016-07-19 Thread Florian Fainelli
On 07/19/2016 07:20 AM, Andrew Lunn wrote: > On Mon, Jul 18, 2016 at 09:26:00PM -0700, Florian Fainelli wrote: >> Le 18/07/2016 à 20:24, Andrew Lunn a écrit : >>> On Mon, Jul 18, 2016 at 08:45:38PM -0400, Vivien Didelot wrote: Add a new function for DSA drivers to handle the switchdev SWI

Re: [PATCH v4 0/7] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-19 Thread Joe Perches
On Mon, 2016-07-18 at 13:00 +0300, Amir Levy wrote: > This is version 4 of Thunderbolt(TM) driver for non-Apple hardware. [] >  Documentation/00-INDEX   |2 + >  Documentation/thunderbolt-networking.txt |  135 ++ >  drivers/thunderbolt/Kconfig  |   25 +- >  drivers/th

Re: [PATCH net-next v3 1/2] bpf: Add bpf_copy_to_user BPF helper to be called in tracers (kprobes)

2016-07-19 Thread Sargun Dhillon
On Tue, 19 Jul 2016, Daniel Borkmann wrote: Hi Sargun, On 07/19/2016 11:32 AM, Sargun Dhillon wrote: This allows user memory to be written to during the course of a kprobe. It shouldn't be used to implement any kind of security mechanism because of TOC-TOU attacks, but rather to debug, diver

Re: [PATCH v17 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-19 Thread kbuild test robot
Hi, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Dexuan-Cui/introduce-Hyper-V-VM-Sockets-hv_sock/20160715-223433 config: x86_64-randconfig-a0-07191719 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the att

Re: [PATCH net-next v3 1/2] bpf: Add bpf_copy_to_user BPF helper to be called in tracers (kprobes)

2016-07-19 Thread Alexei Starovoitov
On Tue, Jul 19, 2016 at 01:17:53PM +0200, Daniel Borkmann wrote: > >+return -EINVAL; > >+ > >+/* Is this a user address, or a kernel address? */ > >+if (!access_ok(VERIFY_WRITE, to, size)) > >+return -EINVAL; > >+ > >+return probe_kernel_write(to, from, size); >

Re: [PATCH v3] packet: fix second argument of sock_tx_timestamp()

2016-07-19 Thread Willem de Bruijn
On Tue, Jul 19, 2016 at 8:34 AM, Soheil Hassas Yeganeh wrote: > On Tue, Jul 19, 2016 at 1:40 AM, Yoshihiro Shimoda > wrote: >> This patch fixes an issue that a syscall (e.g. sendto syscall) cannot >> work correctly. Since the sendto syscall doesn't have msg_control buffer, >> the sock_tx_timestam

Re: [PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-19 Thread Jes Sorensen
Arnd Bergmann writes: > On Tuesday, July 19, 2016 11:46:04 AM CEST Jes Sorensen wrote: >> > diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c >> > b/drivers/staging/rtl8192e/rtl819x_TSProc.c >> > index 2c8a526773ed..e0a2fe5e6148 100644 >> > --- a/drivers/staging/rtl8192e/rtl819x_TSProc.c >>

Re: [PATCH] packet: fix second argument of sock_tx_timestamp()

2016-07-19 Thread kbuild test robot
Hi, [auto build test ERROR on net-next/master] [also build test ERROR on v4.7-rc7 next-20160719] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Yoshihiro-Shimoda/packet-fix-second-argument-of

Re: [PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-19 Thread Arnd Bergmann
On Tuesday, July 19, 2016 11:46:04 AM CEST Jes Sorensen wrote: > > diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c > > b/drivers/staging/rtl8192e/rtl819x_TSProc.c > > index 2c8a526773ed..e0a2fe5e6148 100644 > > --- a/drivers/staging/rtl8192e/rtl819x_TSProc.c > > +++ b/drivers/staging/rtl819

Re: [PATCH 3/3] staging/rtl8192u: use s8 instead of char

2016-07-19 Thread Jes Sorensen
Arnd Bergmann writes: > Compiling the rtlwifi drivers for ARM with gcc -Wextra warns about lots of > incorrect code that results from 'char' being unsigned here, e.g. > > staging/rtl8192u/r8192U_core.c:4150:16: error: comparison is always false due > to limited range of data type [-Werror=type-li

Re: [PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-19 Thread Jes Sorensen
Arnd Bergmann writes: > Compiling the rtlwifi drivers for ARM with gcc -Wextra warns about lots of > incorrect code that results from 'char' being unsigned here, e.g. > > staging/rtl8192e/rtl8192e/r8192E_phy.c:1072:36: error: comparison is always > false due to limited range of data type [-Werror

Re: [PATCH v2 05/11] Kbuild: don't add obj tree in additional includes

2016-07-19 Thread Arnd Bergmann
On Tuesday, July 19, 2016 5:33:44 PM CEST Kalle Valo wrote: > Arnd Bergmann writes: > > > On Monday, July 18, 2016 10:14:39 PM CEST Michal Marek wrote: > >> On Wed, Jun 15, 2016 at 05:45:47PM +0200, Arnd Bergmann wrote: > >> > When building with separate object directories and driver specific > >

[PATCH 3/3] staging/rtl8192u: use s8 instead of char

2016-07-19 Thread Arnd Bergmann
Compiling the rtlwifi drivers for ARM with gcc -Wextra warns about lots of incorrect code that results from 'char' being unsigned here, e.g. staging/rtl8192u/r8192U_core.c:4150:16: error: comparison is always false due to limited range of data type [-Werror=type-limits] staging/rtl8192u/r8192U_dm

[PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-19 Thread Arnd Bergmann
Compiling the rtlwifi drivers for ARM with gcc -Wextra warns about lots of incorrect code that results from 'char' being unsigned here, e.g. staging/rtl8192e/rtl8192e/r8192E_phy.c:1072:36: error: comparison is always false due to limited range of data type [-Werror=type-limits] staging/rtl8192e/r

[PATCH 1/3] rtlwifi: don't add include path for rtl8188ee

2016-07-19 Thread Arnd Bergmann
For rtl8188ee, we pass -Idrivers/net/wireless/rtlwifi/ to gcc, however that directy no longer exists, so evidently this option is no longer required here and can be removed to avoid a warning when building with 'make W=1' or 'gcc -Wmissing-include-dirs' Signed-off-by: Arnd Bergmann --- drivers/n

Re: [PATCH v0 00/10] Convert Netgear WNR854T to devicetree

2016-07-19 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > [Reducing the Cc: list a bit to networking people] > >> Okay. Frames sent from the port are EDSA-tagged (which isn't exactly >> surprising), but I'm yet to see the switch receive 0xdada frames. >> Even with the net-next branch which uses DSA_TAG_PROTO_EDSA for al

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

2016-07-19 Thread Daniel Borkmann
On 07/19/2016 03:56 PM, Jamal Hadi Salim wrote: [...] But apart from this, neither pedit nor tcf_skbmod_run() here handle checksum complete, so you'll potentially get false positives wrt csum corruption and drops as a result when using either of the two. pedit maybe tricky. Any suggestions? On

Re: [PATCH V2] Add flow control to the portmapper

2016-07-19 Thread Shiraz Saleem
On Tue, Jul 19, 2016 at 08:40:06AM +0300, Leon Romanovsky wrote: > > You are the one user of this new inline function. > Why don't you directly call to netlink_unicast() in your ibnl_unicast() > without messing with widely visible header file? Since there is a non-blocking version of nlmsg_unicas

[PATCH net-next v3] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-19 Thread Kristian Evensen
The firmware in several ZTE devices (at least the MF823/831/910 modems/mifis) use OS fingerprinting to determine which type of device to export. In addition, these devices export a REST API which can be used to control the type of device. So far, on Linux, the devices have been seen as RNDIS or CDC

  1   2   >