Re: [PATCH net] netvsc: fix incorrect receive checksum offloading

2016-10-26 Thread David Miller
From: Stephen Hemminger Date: Sun, 23 Oct 2016 21:32:47 -0700 > From: Stephen Hemminger > > The Hyper-V netvsc driver was looking at the incorrect status bits > in the checksum info. It was setting the receive checksum unnecessary > flag

Re: [PATCH v7 0/6] Add eBPF hooks for cgroups

2016-10-26 Thread Alexei Starovoitov
On Wed, Oct 26, 2016 at 09:59:33PM +0200, Pablo Neira Ayuso wrote: > On Tue, Oct 25, 2016 at 12:14:08PM +0200, Daniel Mack wrote: > [...] > > Dumping programs once they are installed is problematic because of > > the internal optimizations done to the eBPF program during its > > lifetime.

Re: [RFC net-next iproute2 1/2] libnetlink: Add test for error code returned from netlink reply

2016-10-26 Thread Stephen Hemminger
On Wed, 26 Oct 2016 22:30:07 +0300 Cyrill Gorcunov wrote: > > if (h->nlmsg_type == NLMSG_DONE) { > + int len; > + > + /* > + * The

RE: [v12, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-10-26 Thread Y.B. Lu
Hi Scott, > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Thursday, October 27, 2016 1:06 AM > To: Y.B. Lu; linux-...@vger.kernel.org; ulf.hans...@linaro.org; Arnd > Bergmann > Cc: linuxppc-...@lists.ozlabs.org; devicet...@vger.kernel.org; linux-arm- >

[PATCH] net: avoid uninitialized variable

2016-10-26 Thread zhongjiang
From: zhong jiang when I compiler the newest kernel, I hit the following error with Werror=may-uninitalized. net/core/flow_dissector.c: In function ?._skb_flow_dissect? include/uapi/linux/swab.h:100:46: error: ?.lan?.may be used uninitialized in this function

Re: [PATCH] net: avoid uninitialized variable

2016-10-26 Thread Gao Feng
On Thu, Oct 27, 2016 at 11:56 AM, zhongjiang wrote: > From: zhong jiang > > when I compiler the newest kernel, I hit the following error with > Werror=may-uninitalized. > > net/core/flow_dissector.c: In function ?._skb_flow_dissect? >

Re: [PATCH net] MAINTAINERS: Update qlogic networking drivers

2016-10-26 Thread David Miller
From: Yuval Mintz Date: Mon, 24 Oct 2016 08:48:09 +0300 > Following Cavium's acquisition of qlogic we need to update all the qlogic > drivers maintainer's entries to point to our new e-mail addresses, > as well as update some of the driver's maintainers as those are no

Re: [PATCH] net: avoid uninitialized variable

2016-10-26 Thread zhong jiang
On 2016/10/27 12:02, Gao Feng wrote: > On Thu, Oct 27, 2016 at 11:56 AM, zhongjiang wrote: >> From: zhong jiang >> >> when I compiler the newest kernel, I hit the following error with >> Werror=may-uninitalized. >> >> net/core/flow_dissector.c: In

Re: [PATCH] rtl8xxxu: mark symbol static where possible

2016-10-26 Thread David Miller
From: Jakub Sitnicki Date: Wed, 26 Oct 2016 14:37:15 +0200 > On Wed, Oct 26, 2016 at 09:32 AM GMT, Baoyou Xie wrote: >> We get 1 warning when building kernel with W=1: >> drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c:1557:6: warning: no >> previous prototype for

[PATCH 1/3] batman-adv: Modify neigh_list only with rcu-list functions

2016-10-26 Thread Simon Wunderlich
From: Sven Eckelmann The batadv_hard_iface::neigh_list is accessed via rcu based primitives. Thus all operations done on it have to fulfill the requirements by RCU. So using non-RCU mechanisms like hlist_add_head is not allowed because it misses the barriers

[PATCH 2/3] batman-adv: Add BATADV_DBG_TP_METER to BATADV_DBG_ALL

2016-10-26 Thread Simon Wunderlich
From: Sven Eckelmann The BATADV_DBG_ALL has to contain the bit of BATADV_DBG_TP_METER to really support all available debug messages. Fixes: 33a3bb4a3345 ("batman-adv: throughput meter implementation") Signed-off-by: Sven Eckelmann Signed-off-by: Simon

Re: [PATCH v2 0/9] net: add support for IPv6 Segment Routing

2016-10-26 Thread David Lebrun
On 10/26/2016 05:54 PM, David Lebrun wrote: > struct ipv6_sr_hdr { > __u8nexthdr; > __u8hdrlen; > __u8type; > __u8segments_left; > __u8first_segment; > __be16 flags; > __u8reserved; > > struct in6_addr

Re: [PATCH net-next 2/3] bpf: Add new cgroups prog type to enable sock modifications

2016-10-26 Thread David Ahern
On 10/26/16 2:41 AM, Thomas Graf wrote: > On 10/25/16 at 03:30pm, David Ahern wrote: >> @@ -171,6 +177,9 @@ int __cgroup_bpf_run_filter(struct sock *sk, >> case BPF_CGROUP_INET_EGRESS: >> ret = __cgroup_bpf_run_filter_skb(skb, prog); >> break;

Re: [PATCH net-next] net: core: Traverse the adjacency list from first entry

2016-10-26 Thread David Ahern
On 10/26/16 12:39 AM, ido...@idosch.org wrote: > From: Ido Schimmel > > netdev_next_lower_dev() returns NULL when we finished traversing the > adjacency list ('iter' points to the list's head). Therefore, we must > start traversing the list from the first entry and not its

Re: [PATCH net-next] net: core: Traverse the adjacency list from first entry

2016-10-26 Thread Ido Schimmel
On Wed, Oct 26, 2016 at 09:05:35AM -0600, David Ahern wrote: > On 10/26/16 12:39 AM, ido...@idosch.org wrote: > > From: Ido Schimmel > > > > netdev_next_lower_dev() returns NULL when we finished traversing the > > adjacency list ('iter' points to the list's head). Therefore,

[PATCH v2 1/9] ipv6: implement dataplane support for rthdr type 4 (Segment Routing Header)

2016-10-26 Thread David Lebrun
Implement minimal support for processing of SR-enabled packets as described in https://tools.ietf.org/html/draft-ietf-6man-segment-routing-header-02. This patch implements the following operations: - Intermediate segment endpoint: incrementation of active segment and rerouting. - Egress for

[PATCH v2 2/9] ipv6: sr: add code base for control plane support of SR-IPv6

2016-10-26 Thread David Lebrun
This patch adds the necessary hooks and structures to provide support for SR-IPv6 control plane, essentially the Generic Netlink commands that will be used for userspace control over the Segment Routing kernel structures. The genetlink commands provide control over two different structures:

[PATCH v2 3/9] ipv6: sr: add support for SRH encapsulation and injection with lwtunnels

2016-10-26 Thread David Lebrun
This patch creates a new type of interfaceless lightweight tunnel (SEG6), enabling the encapsulation and injection of SRH within locally emitted packets and forwarded packets. >From a configuration viewpoint, a seg6 tunnel would be configured as follows: ip -6 ro ad fc00::1/128 encap seg6 mode

[PATCH v2 0/9] net: add support for IPv6 Segment Routing

2016-10-26 Thread David Lebrun
v2: - Remove packed attribute from sr6 struct and replaced unaligned 16-bit flags with two 8-bit flags. - SR code now included by default. Option CONFIG_IPV6_SEG6_HMAC exists for HMAC support (which requires crypto dependencies). - Replace "hidden" calls to mutex_{un,}lock to direct

Re: [PATCH net] packet: on direct_xmit, limit tso and csum to supported devices

2016-10-26 Thread Willem de Bruijn
On Wed, Oct 26, 2016 at 6:47 AM, Daniel Borkmann wrote: > On 10/26/2016 02:28 AM, Willem de Bruijn wrote: >> >> From: Willem de Bruijn >> >> When transmitting on a packet socket with PACKET_VNET_HDR and >> PACKET_QDISC_BYPASS, validate device support for

Re: nfs NULL-dereferencing in net-next

2016-10-26 Thread Anna Schumaker
On 10/25/2016 01:19 PM, Yotam Gigi wrote: > >> -Original Message- >> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On >> Behalf Of Jakub Kicinski >> Sent: Monday, October 17, 2016 10:20 PM >> To: Andy Adamson ; Anna Schumaker >>

Re: [PATCH net-next 2/3] bpf: Add new cgroups prog type to enable sock modifications

2016-10-26 Thread David Ahern
On 10/26/16 2:33 AM, Daniel Borkmann wrote: > Sure, I understand that, and I know it was brought up at netconf, I'm > just still wondering in general if BPF is a good fit here in the sense > that what the program can do is just really really limited (at least > right now). Hmm, just trying to

[PATCH v2 4/9] ipv6: sr: add core files for SR HMAC support

2016-10-26 Thread David Lebrun
This patch adds the necessary functions to compute and check the HMAC signature of an SR-enabled packet. Two HMAC algorithms are supported: hmac(sha1) and hmac(sha256). In order to avoid dynamic memory allocation for each HMAC computation, a per-cpu ring buffer is allocated for this purpose.

Re: [RFC v4 00/18] Landlock LSM: Unprivileged sandboxing

2016-10-26 Thread Jann Horn
On Wed, Oct 26, 2016 at 08:56:36AM +0200, Mickaël Salaün wrote: > The loaded Landlock eBPF programs can be triggered by a seccomp filter > returning RET_LANDLOCK. In addition, a cookie (16-bit value) can be passed > from > a seccomp filter to eBPF programs. This allow flexible security policies >

[PATCH 0/3] pull request for net: batman-adv 2016-10-26

2016-10-26 Thread Simon Wunderlich
/net (2016-10-13 21:40:23 -0700) are available in the git repository at: git://git.open-mesh.org/linux-merge.git tags/batadv-net-for-davem-20161026 for you to fetch changes up to 9799c50372b23ed774791bdb87d700f1286ee8a9: batman-adv: fix splat on disabling an interface (2016-10-21 14:47:02

[PATCH 3/3] batman-adv: fix splat on disabling an interface

2016-10-26 Thread Simon Wunderlich
From: Linus Lüssing As long as there is still a reference for a hard interface held, there might still be a forwarding packet relying on its attributes. Therefore avoid setting hard_iface->soft_iface to NULL when disabling a hard interface. This fixes the following,

Re: [PATCH net v2] packet: on direct_xmit, limit tso and csum to supported devices

2016-10-26 Thread Eric Dumazet
On Wed, 2016-10-26 at 11:23 -0400, Willem de Bruijn wrote: > From: Willem de Bruijn > > When transmitting on a packet socket with PACKET_VNET_HDR and > PACKET_QDISC_BYPASS, validate device support for features requested > in vnet_hdr. Acked-by: Eric Dumazet

Re: [PATCH net-next 1/1] driver: tun: Use new macro SOCK_IOC_MAGIC instead of literal number 0x89

2016-10-26 Thread Gao Feng
Hi David, On Wed, Oct 26, 2016 at 7:12 PM, David Laight wrote: > From: f...@ikuai8.com >> Sent: 25 October 2016 13:56 >> The current codes use _IOC_TYPE(cmd) == 0x89 to check if the cmd is one >> socket ioctl command like SIOCGIFHWADDR. But the literal number 0x89 may >>

[PATCH net v2] packet: on direct_xmit, limit tso and csum to supported devices

2016-10-26 Thread Willem de Bruijn
From: Willem de Bruijn When transmitting on a packet socket with PACKET_VNET_HDR and PACKET_QDISC_BYPASS, validate device support for features requested in vnet_hdr. Drop TSO packets sent to devices that do not support TSO or have the feature disabled. Note that the latter

Re: [net-next PATCH 00/27] Add support for DMA writable pages being writable by the network stack

2016-10-26 Thread Jesper Dangaard Brouer
On Tue, 25 Oct 2016 11:36:48 -0400 Alexander Duyck wrote: > The first 22 patches in the set add support for the DMA attribute > DMA_ATTR_SKIP_CPU_SYNC on multiple platforms/architectures. This is needed > so that we can flag the calls to dma_map/unmap_page so that

[PATCH v2 8/9] ipv6: sr: add support for SRH injection through setsockopt

2016-10-26 Thread David Lebrun
This patch adds support for per-socket SRH injection with the setsockopt system call through the IPPROTO_IPV6, IPV6_RTHDR options. The SRH is pushed through the ipv6_push_nfrag_opts function. Signed-off-by: David Lebrun --- net/ipv6/exthdrs.c | 79

[PATCH v2 6/9] ipv6: sr: add calls to verify and insert HMAC signatures

2016-10-26 Thread David Lebrun
This patch enables the verification of the HMAC signature for transiting SR-enabled packets, and its insertion on encapsulated/injected SRH. Signed-off-by: David Lebrun --- net/ipv6/exthdrs.c | 10 ++ net/ipv6/seg6_iptunnel.c | 18 ++ 2

[PATCH v2 5/9] ipv6: sr: implement API to control SR HMAC structure

2016-10-26 Thread David Lebrun
This patch provides an implementation of the genetlink commands to associate a given HMAC key identifier with an hashing algorithm and a secret. It also provides a per-interface sysctl called seg6_require_hmac, allowing a user-defined policy for processing HMAC-signed SR-enabled packets. A value

[PATCH v2 9/9] ipv6: sr: add documentation file for per-interface sysctls

2016-10-26 Thread David Lebrun
This patch adds documentation for some SR-related per-interface sysctls. Signed-off-by: David Lebrun --- Documentation/networking/seg6-sysctl.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/networking/seg6-sysctl.txt

[PATCH v2 7/9] ipv6: add source address argument for ipv6_push_nfrag_opts

2016-10-26 Thread David Lebrun
This patch prepares for insertion of SRH through setsockopt(). The new source address argument is used when an HMAC field is present in the SRH, which must be filled. The HMAC signature process requires the source address as input text. Signed-off-by: David Lebrun ---

[PATCH net-next] tcp/dccp: drop SYN packets if accept queue is full

2016-10-26 Thread Eric Dumazet
From: Eric Dumazet Per listen(fd, backlog) rules, there is really no point accepting a SYN, sending a SYNACK, and dropping the following ACK packet if accept queue is full, because application is not draining accept queue fast enough. This behavior is fooling TCP clients

[PATCH net] Revert "hv_netvsc: report vmbus name in ethtool"

2016-10-26 Thread Stephen Hemminger
From: Stephen Hemminger This reverts commit e3f74b841d48 ("hv_netvsc: report vmbus name in ethtool")' because of problem introduced by commit f9a56e5d6a0ba ("Drivers: hv: make VMBus bus ids persistent"). This changed the format of the vmbus name and this new format is too

Re: [PATCH v2 0/5] make POSIX timers optional with some Kconfig help

2016-10-26 Thread Nicolas Pitre
On Thu, 27 Oct 2016, Paul Bolle wrote: > On Tue, 2016-10-25 at 22:28 -0400, Nicolas Pitre wrote: > > From: Nicolas Pitre > > Subject: [PATCH v2 0/5] make POSIX timers optional with some Kconfig help > > This doesn't work. I received this message with an empty subject.

[PATCH net-next v2 1/1] driver: tun: Use new macro SOCK_IOC_TYPE instead of literal number 0x89

2016-10-26 Thread fgao
From: Gao Feng The current codes use _IOC_TYPE(cmd) == 0x89 to check if the cmd is one socket ioctl command like SIOCGIFHWADDR. But the literal number 0x89 may confuse readers. So create one macro SOCK_IOC_TYPE to enhance the readability. Signed-off-by: Gao Feng

Re: [PATCH v2 2/5] kconfig: introduce the "suggest" keyword

2016-10-26 Thread Nicolas Pitre
On Thu, 27 Oct 2016, Paul Bolle wrote: > On Tue, 2016-10-25 at 22:28 -0400, Nicolas Pitre wrote: > > Similar to "imply" but with no added restrictions on the target symbol's > > value. Useful for providing a default value to another symbol. > > > > Suggested by Edward Cree. > > > >

Re: [PATCH net-next]ldmvsw: tx queue stuck in stopped state after LDC reset

2016-10-26 Thread David Miller
From: Aaron Young Date: Wed, 26 Oct 2016 20:15:22 -0400 >From: Aaron Young > >The following patch fixes an issue with the ldmvsw driver where >the network connection of a guest domain becomes non-functional after >a guest domain

Re: [PATCH] drivers/net/usb/r8152 fix broken rx checksums

2016-10-26 Thread Mark Lord
On 16-10-26 06:36 PM, Mark Lord wrote: The r8152 driver has been broken since (approx) 3.6.16, Correction: broken since 3.16.xx. when support was added for hardware rx checksum on newer chip versions. Symptoms include random segfaults and silent data corruption over NFS. This does not work

[PATCH net-next 2/5] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2016-10-26 Thread David Ahern
The program subtype's goal is to be able to have different static fine-grained verifications for a unique program type. The struct bpf_verifier_ops gets a new optional function: is_valid_subtype(). This new verifier is called at the begening of the eBPF program verification to check if the

[PATCH v2 net-next 3/5] bpf: Add new cgroup attach type to enable sock modifications

2016-10-26 Thread David Ahern
Allow BPF_PROG_TYPE_CGROUP programs with cgroup.sock subtype to modify sk_bound_dev_if for newly created AF_INET or AF_INET6 sockets. The program can be attached to a cgroup using attach type BPF_CGROUP_INET_SOCK. The cgroup verifier ops are updated to handle the sock offsets as well as the

[PATCH v2 net-next 0/5] Add bpf support to set sk_bound_dev_if

2016-10-26 Thread David Ahern
The recently added VRF support in Linux leverages the bind-to-device API for programs to specify an L3 domain for a socket. While SO_BINDTODEVICE has been around for ages, not every ipv4/ipv6 capable program has support for it. Even for those programs that do support it, the API requires processes

[PATCH v2 net-next 5/5] samples: bpf: add userspace example for modifying sk_bound_dev_if

2016-10-26 Thread David Ahern
Add a simple program to demonstrate the ability to attach a bpf program to a cgroup that sets sk_bound_dev_if for AF_INET{6} sockets when they are created. v2 - removed bpf_sock_store_u32 references - changed BPF_CGROUP_INET_SOCK_CREATE to BPF_CGROUP_INET_SOCK - remove BPF_PROG_TYPE_CGROUP_SOCK

[PATCH net-next 4/5] samples: bpf: Add prog_subtype to bpf_prog_load

2016-10-26 Thread David Ahern
Add bpf_prog_subtype argument to bpf_prog_load. If arg is non-NULL, it is added to the attr passed to the bpf system call. Signed-off-by: David Ahern --- samples/bpf/bpf_load.c | 2 +- samples/bpf/fds_example.c | 2 +- samples/bpf/libbpf.c | 5 -

[PATCH v2 net-next 1/5] bpf: Refactor cgroups code in prep for new type

2016-10-26 Thread David Ahern
Code move only and rename only; no functional change intended. v2 - fix bpf_prog_run_clear_cb to bpf_prog_run_save_cb as caught by Daniel - rename BPF_PROG_TYPE_CGROUP_SKB and its cg_skb functions to BPF_PROG_TYPE_CGROUP and cgroup Signed-off-by: David Ahern ---

Re: [PATCH v2 0/5] make POSIX timers optional with some Kconfig help

2016-10-26 Thread Paul Bolle
On Tue, 2016-10-25 at 22:28 -0400, Nicolas Pitre wrote: > From: Nicolas Pitre > Subject: [PATCH v2 0/5] make POSIX timers optional with some Kconfig help This doesn't work. I received this message with an empty subject. If you'll have to send another update don't

Re: [PATCH v2 1/5] kconfig: introduce the "imply" keyword

2016-10-26 Thread Paul Bolle
On Tue, 2016-10-25 at 22:28 -0400, Nicolas Pitre wrote: > SUBSYSTEM_X can still be configured out, and it can be set as a > module when none of the drivers are selected or all of them are also > modular. Short note, to highlight a pet peeve: "select" (and therefor "selected") has a special

Re: [PATCH v2 2/5] kconfig: introduce the "suggest" keyword

2016-10-26 Thread Paul Bolle
On Tue, 2016-10-25 at 22:28 -0400, Nicolas Pitre wrote: > Similar to "imply" but with no added restrictions on the target symbol's > value. Useful for providing a default value to another symbol. > > Suggested by Edward Cree. > > Signed-off-by: Nicolas Pitre As far as I can

Re: [PATCH v2 1/5] kconfig: introduce the "imply" keyword

2016-10-26 Thread Nicolas Pitre
On Thu, 27 Oct 2016, Paul Bolle wrote: > On Tue, 2016-10-25 at 22:28 -0400, Nicolas Pitre wrote: > > SUBSYSTEM_X can still be configured out, and it can be set as a > > module when none of the drivers are selected or all of them are also > > modular. > > Short note, to highlight a pet peeve:

Re: [PATCH v2 5/5] posix-timers: make it configurable

2016-10-26 Thread Nicolas Pitre
On Wed, 26 Oct 2016, Richard Cochran wrote: > On Wed, Oct 26, 2016 at 09:56:13AM -0400, Nicolas Pitre wrote: > > So if my Fedora usage doesn't need them, we can infer that > > the number of embedded systems also not needing them might tend towards > > a high percentage. > > (I wouldn't call

Re: [PATCH v2 0/5] make POSIX timers optional with some Kconfig help

2016-10-26 Thread Paul Bolle
On Wed, 2016-10-26 at 19:41 -0400, Nicolas Pitre wrote: > On Thu, 27 Oct 2016, Paul Bolle wrote: > > If you'll have to send another update don't bother including Yann. Yann > > hasn't be heard of in years. MAINTAINERS doesn't reflect reality for > > kconfig. > > What about updating it then? I

[PATCH net-next]ldmvsw: tx queue stuck in stopped state after LDC reset

2016-10-26 Thread Aaron Young
From: Aaron Young The following patch fixes an issue with the ldmvsw driver where the network connection of a guest domain becomes non-functional after a guest domain has panic'd and rebooted (resulting in a LDC reset). The root cause was determined to be

Re: [PATCH (net.git)] net: phy: at803x: disable by default the hibernation feature

2016-10-26 Thread Giuseppe CAVALLARO
Hello Andrew. On 10/25/2016 11:00 AM, Andrew Lunn wrote: For example, while booting a Kernel the SYNP MAC (stmmac) fails to initialize own DMA engine if the phy entered in hibernation before. Have you tried fixing stmmac instead? Let me describe better what happens, to be honest, this is a

Re: [PATCH iproute2 2/2] tc filters: fix filters to display handle when deleted even when no option

2016-10-26 Thread Stephen Hemminger
On Mon, 17 Oct 2016 05:34:45 -0400 Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > Fix a few stylistic things that hurt my eyes while at it. > > Signed-off-by: Jamal Hadi Salim This patch has whitespace issues, please fix and

Re: iproute: ss truncates abstract unix domain socket embedding null

2016-10-26 Thread Isaac Boukris
Hi Stephen, thanks for looking into this. On Wed, Oct 26, 2016 at 8:15 PM, Stephen Hemminger wrote: > On Tue, 18 Oct 2016 21:46:48 +0300 > Isaac Boukris wrote: > >> Hi again, >> >> On Sun, Oct 16, 2016 at 11:43 PM, Isaac Boukris

[PATCH next] flow_dissector: __skb_get_hash_symmetric arg can be const

2016-10-26 Thread Florian Westphal
Signed-off-by: Florian Westphal --- include/linux/skbuff.h| 2 +- net/core/flow_dissector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 601258f6e621..663fda2887f7 100644 ---

Re: [PATCH net-next RFC WIP] Patch for XDP support for virtio_net

2016-10-26 Thread David Miller
From: "Michael S. Tsirkin" Date: Wed, 26 Oct 2016 19:36:45 +0300 > On Wed, Oct 26, 2016 at 03:52:02PM +0200, Jesper Dangaard Brouer wrote: >> On Sat, 22 Oct 2016 04:07:23 + >> Shrijeet Mukherjee wrote: >> >> > This patch adds support for xdp ndo and

Re: [v12, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-10-26 Thread Scott Wood
On Wed, 2016-09-21 at 14:57 +0800, Yangbo Lu wrote: > diff --git a/drivers/soc/fsl/Kconfig b/drivers/soc/fsl/Kconfig > new file mode 100644 > index 000..b99764c > --- /dev/null > +++ b/drivers/soc/fsl/Kconfig > @@ -0,0 +1,19 @@ > +# > +# Freescale SOC drivers > +# > + > +source

Re: [PATCH] net: Reset skb to network header in neigh_hh_output

2016-10-26 Thread Abdelrhman Ahmed
I think it's at the right place as the current one is a little different from the commit e1f165032c8bade3a6bdf546f8faf61fda4dd01c. In the next lines, skb_push is called after copying the hardware header and there is no change to the data pointer inside the retry loop. We only need to reset

Re: [PATCH net-next RFC WIP] Patch for XDP support for virtio_net

2016-10-26 Thread Michael S. Tsirkin
On Wed, Oct 26, 2016 at 12:52:45PM -0400, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Wed, 26 Oct 2016 19:36:45 +0300 > > > On Wed, Oct 26, 2016 at 03:52:02PM +0200, Jesper Dangaard Brouer wrote: > >> On Sat, 22 Oct 2016 04:07:23 + > >> Shrijeet Mukherjee

[PATCH] net: mv643xx_eth: Fetch the phy connection type from DT

2016-10-26 Thread Jason Gunthorpe
The MAC is capable of RGMII mode and that is probably a more typical connection type than GMII today (eg it is used by Marvell Reference designs for several SOCs). Let DT users specify the standard phy-connection-type = "rgmii-id"; On a phy node. Signed-off-by: Jason Gunthorpe

[PATCH] i40e: fix panic on SPARC while changing num of desc

2016-10-26 Thread Tushar Dave
On SPARC, writel() should not be used to write directly to memory address but only to memory mapped I/O address otherwise it causes data access exception. Commit 147e81ec75689 ("i40e: Test memory before ethtool alloc succeeds") introduced a code that uses memory address to fake the HW tail

Re: [PATCH] net: mv643xx_eth: Fetch the phy connection type from DT

2016-10-26 Thread Florian Fainelli
On 10/26/2016 10:47 AM, Jason Gunthorpe wrote: > The MAC is capable of RGMII mode and that is probably a more typical > connection type than GMII today (eg it is used by Marvell Reference > designs for several SOCs). Let DT users specify the standard > >phy-connection-type = "rgmii-id"; > >

[PATCH net-next] net: phy: at803x: Add a definition for PHY ID mask

2016-10-26 Thread Fabio Estevam
Add a definition for PHY ID mask for improving code readability. Signed-off-by: Fabio Estevam --- drivers/net/phy/at803x.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index

Re: [PATCH net-next RFC WIP] Patch for XDP support for virtio_net

2016-10-26 Thread David Miller
From: "Michael S. Tsirkin" Date: Wed, 26 Oct 2016 20:07:19 +0300 > On Wed, Oct 26, 2016 at 12:52:45PM -0400, David Miller wrote: >> From: "Michael S. Tsirkin" >> Date: Wed, 26 Oct 2016 19:36:45 +0300 >> >> > On Wed, Oct 26, 2016 at 03:52:02PM +0200, Jesper

Re: [Intel-wired-lan] [net-next PATCH 25/27] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

2016-10-26 Thread Jeff Kirsher
On Tue, 2016-10-25 at 11:39 -0400, Alexander Duyck wrote: > The ARM architecture provides a mechanism for deferring cache line > invalidation in the case of map/unmap.  This patch makes use of this > mechanism to avoid unnecessary synchronization. > > A secondary effect of this change is that the

Re: [Intel-wired-lan] [net-next PATCH 26/27] igb: Update code to better handle incrementing page count

2016-10-26 Thread Jeff Kirsher
On Tue, 2016-10-25 at 11:39 -0400, Alexander Duyck wrote: > This patch updates the driver code so that we do bulk updates of the page > reference count instead of just incrementing it by one reference at a > time. > The advantage to doing this is that we cut down on atomic operations and > this in

Re: [Intel-wired-lan] [net-next PATCH 27/27] igb: Revert "igb: Revert support for build_skb in igb"

2016-10-26 Thread Jeff Kirsher
On Tue, 2016-10-25 at 11:39 -0400, Alexander Duyck wrote: > This reverts commit f9d40f6a9921 ("igb: Revert support for build_skb in > igb") and adds a few changes to update it to work with the latest version > of igb. We are now able to revert the removal of this due to the fact > that with the

Re: [PATCH net-next] tcp/dccp: drop SYN packets if accept queue is full

2016-10-26 Thread Neal Cardwell
On Wed, Oct 26, 2016 at 12:27 PM, Eric Dumazet wrote: > From: Eric Dumazet > > Per listen(fd, backlog) rules, there is really no point accepting a SYN, > sending a SYNACK, and dropping the following ACK packet if accept queue > is full, because

Re: [PATCH net-next RFC WIP] Patch for XDP support for virtio_net

2016-10-26 Thread Michael S. Tsirkin
On Wed, Oct 26, 2016 at 03:52:02PM +0200, Jesper Dangaard Brouer wrote: > On Sat, 22 Oct 2016 04:07:23 + > Shrijeet Mukherjee wrote: > > > This patch adds support for xdp ndo and also inserts the xdp program > > call into the merged RX buffers and big buffers paths > > I

Re: [PATCH] net: Reset skb to network header in neigh_hh_output

2016-10-26 Thread Eric Dumazet
On Wed, 2016-10-26 at 18:53 +0200, Abdelrhman Ahmed wrote: > I think it's at the right place as the current one is a little different from > the > commit e1f165032c8bade3a6bdf546f8faf61fda4dd01c. > > In the next lines, skb_push is called after copying the hardware header and > there > is no

Re: iproute: ss truncates abstract unix domain socket embedding null

2016-10-26 Thread Stephen Hemminger
On Tue, 18 Oct 2016 21:46:48 +0300 Isaac Boukris wrote: > Hi again, > > On Sun, Oct 16, 2016 at 11:43 PM, Isaac Boukris wrote: > > Hello, > > > > The unix(7) man page says that null have no special meaning in > > abstract unix domain socket address (the

Re: nfs NULL-dereferencing in net-next

2016-10-26 Thread Jakub Kicinski
On Wed, 26 Oct 2016 16:15:24 +, Yotam Gigi wrote: > >-Original Message- > >From: Anna Schumaker [mailto:anna.schuma...@netapp.com] > >Sent: Wednesday, October 26, 2016 5:40 PM > >To: Yotam Gigi ; Jakub Kicinski ; Andy > >Adamson ;

Re: [PATCH iproute2 net-next] tc: m_mirred: Add support for ingress redirect/mirror

2016-10-26 Thread Stephen Hemminger
On Wed, 19 Oct 2016 17:14:09 +0300 Shmulik Ladkani wrote: > So far, only the 'egress' direction was implemented. > > Allow specifying 'ingress' as the direction packet appears on the target > interface. > > For example, this takes incoming 802.1q frames on veth0 and

[PATCH net] ibmvnic: Fix releasing of sub-CRQ IRQs in interrupt context

2016-10-26 Thread Thomas Falcon
Schedule these XPORT event tasks in the shared workqueue so that IRQs are not freed in an interrupt context when sub-CRQs are released. Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmvnic.c | 35 ---

Re: [PATCH net-next] tcp/dccp: drop SYN packets if accept queue is full

2016-10-26 Thread Yuchung Cheng
On Wed, Oct 26, 2016 at 11:39 AM, Neal Cardwell wrote: > > On Wed, Oct 26, 2016 at 12:27 PM, Eric Dumazet wrote: > > From: Eric Dumazet > > > > Per listen(fd, backlog) rules, there is really no point accepting a SYN, > > sending

Re: [PATCH v2 5/5] posix-timers: make it configurable

2016-10-26 Thread Richard Cochran
On Wed, Oct 26, 2016 at 09:56:13AM -0400, Nicolas Pitre wrote: > So if my Fedora usage doesn't need them, we can infer that > the number of embedded systems also not needing them might tend towards > a high percentage. (I wouldn't call Fedora an embedded distro, but heh...) > But let's be

[PATCH net-next] net: dev: Fix non-RCU based lower dev walker

2016-10-26 Thread David Ahern
netdev_walk_all_lower_dev is not properly walking the lower device list. Commit 1a3f060c1a47 made netdev_walk_all_lower_dev similar to netdev_walk_all_upper_dev_rcu and netdev_walk_all_lower_dev_rcu but failed to update its netdev_next_lower_dev iterator. This patch fixes that. Fixes:

Re: [kernel-hardening] [RFC v4 03/18] bpf,landlock: Add a new arraymap type to deal with (Landlock) handles

2016-10-26 Thread Jann Horn
On Wed, Oct 26, 2016 at 08:56:39AM +0200, Mickaël Salaün wrote: > This new arraymap looks like a set and brings new properties: > * strong typing of entries: the eBPF functions get the array type of > elements instead of CONST_PTR_TO_MAP (e.g. > CONST_PTR_TO_LANDLOCK_HANDLE_FS); > * force

Re: [PATCH net v2] packet: on direct_xmit, limit tso and csum to supported devices

2016-10-26 Thread Daniel Borkmann
On 10/26/2016 05:23 PM, Willem de Bruijn wrote: From: Willem de Bruijn When transmitting on a packet socket with PACKET_VNET_HDR and PACKET_QDISC_BYPASS, validate device support for features requested in vnet_hdr. Drop TSO packets sent to devices that do not support TSO or

[PATCH 3/5] net: ethernet: bgmac: device tree phy enablement

2016-10-26 Thread Jon Mason
Change the bgmac driver to allow for phy's defined by the device tree Signed-off-by: Jon Mason --- drivers/net/ethernet/broadcom/bgmac-bcma.c | 48 drivers/net/ethernet/broadcom/bgmac-platform.c | 48 +++-

[PATCH 0/5] add NS2 support to bgmac

2016-10-26 Thread Jon Mason
Add support for the amac found in the Broadcom Northstar2 SoC to the bgmac driver. This necessitates adding support to connect to an externally defined phy (as described in the device tree) in the driver. These phy changes are in addition to the changes necessary to get NS2 working. This series

[PATCH 2/5] Documentation: devicetree: net: add NS2 bindings to amac

2016-10-26 Thread Jon Mason
Signed-off-by: Jon Mason --- Documentation/devicetree/bindings/net/brcm,amac.txt | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/brcm,amac.txt b/Documentation/devicetree/bindings/net/brcm,amac.txt index

Re: [kernel-hardening] [RFC v4 03/18] bpf,landlock: Add a new arraymap type to deal with (Landlock) handles

2016-10-26 Thread Mickaël Salaün
On 26/10/2016 21:01, Jann Horn wrote: > On Wed, Oct 26, 2016 at 08:56:39AM +0200, Mickaël Salaün wrote: >> This new arraymap looks like a set and brings new properties: >> * strong typing of entries: the eBPF functions get the array type of >> elements instead of CONST_PTR_TO_MAP (e.g. >>

Re: [kernel-hardening] [RFC v4 03/18] bpf,landlock: Add a new arraymap type to deal with (Landlock) handles

2016-10-26 Thread Jann Horn
On Wed, Oct 26, 2016 at 10:03:09PM +0200, Mickaël Salaün wrote: > On 26/10/2016 21:01, Jann Horn wrote: > > On Wed, Oct 26, 2016 at 08:56:39AM +0200, Mickaël Salaün wrote: > >> This new arraymap looks like a set and brings new properties: > >> * strong typing of entries: the eBPF functions get the

Re: [PATCH net-next 2/3] bpf: Add new cgroups prog type to enable sock modifications

2016-10-26 Thread Thomas Graf
On 10/26/16 at 10:08am, David Ahern wrote: > On 10/26/16 2:41 AM, Thomas Graf wrote: > > On 10/25/16 at 03:30pm, David Ahern wrote: > >> @@ -171,6 +177,9 @@ int __cgroup_bpf_run_filter(struct sock *sk, > >>case BPF_CGROUP_INET_EGRESS: > >>ret =

[RFC net-next iproute2 0/2] Add support for operating raw sockest via diag interface

2016-10-26 Thread Cyrill Gorcunov
The diag interface for raw sockets is now in linux-net-next http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=432490f9d455fb842d70219f22d9d2c812371676 so here is early patches for misc/ss While "showing" action works as expected, I see some weird effects on "kill" socket

[RFC net-next iproute2 1/2] libnetlink: Add test for error code returned from netlink reply

2016-10-26 Thread Cyrill Gorcunov
In case if some diag module is not present in the system, say the kernel is not modern enough, we simply skip the error code reported. Instead we should check for data length in NLMSG_DONE and process unsupported case. Signed-off-by: Cyrill Gorcunov --- lib/libnetlink.c | 21

[RFC net-next iproute2 2/2] ss: Add inet raw sockets information gathering via netlink diag interface

2016-10-26 Thread Cyrill Gorcunov
unix, tcp, udp[lite], packet, netlink sockets already support diag interface for their collection and killing. Now with commit XXX this facility is implemented for raw sockets. Signed-off-by: Cyrill Gorcunov --- include/linux/inet_diag.h | 15 +++ misc/ss.c

[PATCH 5/5] arm64: dts: NS2: add AMAC ethernet support

2016-10-26 Thread Jon Mason
Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 5 + arch/arm64/boot/dts/broadcom/ns2.dtsi| 12 2 files changed, 17 insertions(+) diff --git

[PATCH 4/5] net: ethernet: bgmac: add NS2 support

2016-10-26 Thread Jon Mason
Add support for the variant of amac hardware present in the Broadcom Northstar2 based SoCs. Northstar2 requires an additional register to be configured with the port speed/duplexity (NICPM). This can be added to the link callback to hide it from the instances that do not use this. Also, the

[PATCH 1/5] net: phy: broadcom: Add BCM54810 phy entry

2016-10-26 Thread Jon Mason
From: Vikas Soni Add BCM54810 phy entry Signed-off-by: Vikas Soni Signed-off-by: Jon Mason --- drivers/net/phy/Kconfig| 2 +- drivers/net/phy/broadcom.c | 65 ++

Re: [PATCH v7 0/6] Add eBPF hooks for cgroups

2016-10-26 Thread Pablo Neira Ayuso
On Tue, Oct 25, 2016 at 12:14:08PM +0200, Daniel Mack wrote: [...] > Dumping programs once they are installed is problematic because of > the internal optimizations done to the eBPF program during its > lifetime. Also, the references to maps etc. would need to be > restored during the

[RFC v4 18/18] samples/landlock: Add sandbox example

2016-10-26 Thread Mickaël Salaün
Add a basic sandbox tool to create a process isolated from some part of the system. This can depend of the current cgroup. A sandbox process can stat the directories from the root up to the allowed files. This then allow to stat ".." in an allowed directory. Accessing to other sibling files (not

[RFC v4 11/18] seccomp,landlock: Handle Landlock hooks per process hierarchy

2016-10-26 Thread Mickaël Salaün
The seccomp(2) syscall can be use to apply a Landlock rule to the current process. As with a seccomp filter, the Landlock rule is enforced for all its future children. An inherited rule tree can be updated (append-only) by the owner of inherited Landlock nodes (e.g. a parent process that create a

[RFC v4 16/18] bpf/cgroup,landlock: Handle Landlock hooks per cgroup

2016-10-26 Thread Mickaël Salaün
This allows to add new eBPF programs to Landlock hooks dedicated to a cgroup thanks to the BPF_PROG_ATTACH command. The Landlock hooks attached to a cgroup are propagated to the children cgroups. When a new Landlock program is attached to one of this nested cgroup, this cgroup hierarchy fork the

[RFC v4 17/18] landlock: Add update and debug access flags

2016-10-26 Thread Mickaël Salaün
For now, the update and debug accesses are only accessible to a process with CAP_SYS_ADMIN. This could change in the future. The capability check is statically done when loading an eBPF program, according to the current process. If the process has enough rights and set the appropriate access

  1   2   >