Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-03 Thread Jiri Pirko
Sun, Mar 04, 2018 at 01:26:53AM CET, alexander.du...@gmail.com wrote: >On Sat, Mar 3, 2018 at 1:25 PM, Jiri Pirko wrote: >> Sat, Mar 03, 2018 at 07:04:57PM CET, alexander.du...@gmail.com wrote: >>>On Sat, Mar 3, 2018 at 3:31 AM, Jiri Pirko wrote: Fri, Mar

RE: [PATCH net-next 1/5] net: mvpp2: use the same buffer pool for all ports

2018-03-03 Thread Stefan Chulski
> Hello, > > On Fri, 2 Mar 2018 16:40:40 +0100, Antoine Tenart wrote: > > +static struct { > > + int pkt_size; > > + int buf_num; > > +} mvpp2_pools[MVPP2_BM_POOLS_NUM]; > > Any reason for not doing: > > } mvpp2_pools[MVPP2_BM_POOLS_NUM] = { > [MVPP2_BM_SHORT] = { >

RE: [PATCH net-next 5/5] net: mvpp2: jumbo frames support

2018-03-03 Thread Stefan Chulski
> > netdev_err(port->dev, "Invalid pool %d\n", pool); > > return NULL; > > } > > @@ -4596,11 +4604,24 @@ mvpp2_bm_pool_use(struct mvpp2_port > *port, int > > pool, int pkt_size) static int mvpp2_swf_bm_pool_init(struct > > mvpp2_port *port) { > > int rxq; > > +

RE: [PATCH net-next 3/5] net: mvpp2: use a data size of 10kB for Tx FIFO on port 0

2018-03-03 Thread Stefan Chulski
> On Fri, 2 Mar 2018 16:40:42 +0100, Antoine Tenart wrote: > > > -/* Initialize Tx FIFO's */ > > +/* Initialize Tx FIFO's > > + * The CP110's total tx-fifo size is 19kB. > > + * Use large-size 10kB for fast port but 3kB for others. > > + */ > > Is there a reason to hardcode 10KB for port 0,

Re: WARNING: refcount bug in should_fail

2018-03-03 Thread Tetsuo Handa
Switching from mm to fsdevel, for this report says that put_net(net) in rpc_kill_sb() made net->count < 0 when mount_ns() failed due to register_shrinker() failure. Relevant commits will be commit 9ee332d99e4d5a97 ("sget(): handle failures of register_shrinker()") and commit d91ee87d8d85a080

Re: [PATCH 0/7] pull request for net: batman-adv 2018-03-02

2018-03-03 Thread David Miller
From: Simon Wunderlich Date: Fri, 2 Mar 2018 18:51:35 +0100 > here are some bugfixes which we would like to see integrated into net. > > Please pull or let me know of any problem! Pulled, thanks Simon.

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-03 Thread Michael S. Tsirkin
On Fri, Mar 02, 2018 at 03:56:31PM -0800, Siwei Liu wrote: > On Fri, Mar 2, 2018 at 1:36 PM, Michael S. Tsirkin wrote: > > On Fri, Mar 02, 2018 at 01:11:56PM -0800, Siwei Liu wrote: > >> On Thu, Mar 1, 2018 at 12:08 PM, Sridhar Samudrala > >> wrote:

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-03 Thread Michael S. Tsirkin
On Fri, Mar 02, 2018 at 02:26:48PM -0800, Siwei Liu wrote: > On Fri, Mar 2, 2018 at 1:31 PM, Michael S. Tsirkin wrote: > > On Fri, Mar 02, 2018 at 12:44:56PM -0800, Siwei Liu wrote: > >> On Fri, Mar 2, 2018 at 12:10 PM, Michael S. Tsirkin > >> wrote: > >> > On

[PATCH 1/3] net: core: dst_cache: Fix a typo in a comment

2018-03-03 Thread Jonathan Neuschäfer
Signed-off-by: Jonathan Neuschäfer --- include/net/dst_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/dst_cache.h b/include/net/dst_cache.h index 72fd5067c353..844906fbf8c9 100644 --- a/include/net/dst_cache.h +++

[PATCH 2/3] net: core: dst_cache_set_ip6: Rename 'addr' parameter to 'saddr' for consistency

2018-03-03 Thread Jonathan Neuschäfer
The other dst_cache_{get,set}_ip{4,6} functions, and the doc comment for dst_cache_set_ip6 use 'saddr' for their source address parameter. Rename the parameter to increase consistency. This fixes the following kernel-doc warnings: ./include/net/dst_cache.h:58: warning: Function parameter or

[PATCH 3/3] net: core: dst: Add kernel-doc for 'net' parameter

2018-03-03 Thread Jonathan Neuschäfer
This fixes the following kernel-doc warning: ./include/net/dst.h:366: warning: Function parameter or member 'net' not described in 'skb_tunnel_rx' Fixes: ea23192e8e57 ("tunnels: harmonize cleanup done on skb on rx path") Signed-off-by: Jonathan Neuschäfer ---

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-03 Thread Alexander Duyck
On Sat, Mar 3, 2018 at 1:25 PM, Jiri Pirko wrote: > Sat, Mar 03, 2018 at 07:04:57PM CET, alexander.du...@gmail.com wrote: >>On Sat, Mar 3, 2018 at 3:31 AM, Jiri Pirko wrote: >>> Fri, Mar 02, 2018 at 08:42:47PM CET, m...@redhat.com wrote: On Fri, Mar 02,

[PATCH AUTOSEL for 4.9 136/219] MIPS: BPF: Quit clobbering callee saved registers in JIT code.

2018-03-03 Thread Sasha Levin
From: David Daney [ Upstream commit 1ef0910cfd681f0bd0b81f8809935b2006e9cfb9 ] If bpf_needs_clear_a() returns true, only actually clear it if it is ever used. If it is not used, we don't save and restore it, so the clearing has the nasty side effect of clobbering caller

[PATCH AUTOSEL for 4.9 137/219] MIPS: BPF: Fix multiple problems in JIT skb access helpers.

2018-03-03 Thread Sasha Levin
From: David Daney [ Upstream commit a81507c79f4ae9a0f9fb1054b59b62a090620dd9 ] o Socket data is unsigned, so use unsigned accessors instructions. o Fix path result pointer generation arithmetic. o Fix half-word byte swapping code for unsigned semantics.

[PATCH AUTOSEL for 4.4 067/115] MIPS: BPF: Quit clobbering callee saved registers in JIT code.

2018-03-03 Thread Sasha Levin
From: David Daney [ Upstream commit 1ef0910cfd681f0bd0b81f8809935b2006e9cfb9 ] If bpf_needs_clear_a() returns true, only actually clear it if it is ever used. If it is not used, we don't save and restore it, so the clearing has the nasty side effect of clobbering caller

[PATCH AUTOSEL for 4.4 068/115] MIPS: BPF: Fix multiple problems in JIT skb access helpers.

2018-03-03 Thread Sasha Levin
From: David Daney [ Upstream commit a81507c79f4ae9a0f9fb1054b59b62a090620dd9 ] o Socket data is unsigned, so use unsigned accessors instructions. o Fix path result pointer generation arithmetic. o Fix half-word byte swapping code for unsigned semantics.

[PATCH] ravb: remove erroneous comment

2018-03-03 Thread Niklas Söderlund
When addressing a review comment in a early version of the offending patch a comment where left in which should have been removed. Remove the comment to keep it consistent with the code. Fixes: 75efa06f457bbed3 ("ravb: add support for changing MTU") Reported-by: Sergei Shtylyov

[PATCH AUTOSEL for 3.18 37/63] MIPS: BPF: Quit clobbering callee saved registers in JIT code.

2018-03-03 Thread Sasha Levin
From: David Daney [ Upstream commit 1ef0910cfd681f0bd0b81f8809935b2006e9cfb9 ] If bpf_needs_clear_a() returns true, only actually clear it if it is ever used. If it is not used, we don't save and restore it, so the clearing has the nasty side effect of clobbering caller

lnstat

2018-03-03 Thread David Kaufmann
Hi! `lnstat` segfaults (tested on Debian 9, CentOS 6+7, Fedora 27) if it is started as `lnstat -w 1` according to gdb the crash is in `build_hdr_string` at lnstat.c:212 as it seems to be an useless value for the option anyway it might make sense to just handle a single "1" the same as if "0"

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-03 Thread Jiri Pirko
Sat, Mar 03, 2018 at 07:04:57PM CET, alexander.du...@gmail.com wrote: >On Sat, Mar 3, 2018 at 3:31 AM, Jiri Pirko wrote: >> Fri, Mar 02, 2018 at 08:42:47PM CET, m...@redhat.com wrote: >>>On Fri, Mar 02, 2018 at 05:20:17PM +0100, Jiri Pirko wrote: >Yeah, this code

Re: lost interrupts when running sabrelite images (v4.15+) in qemu

2018-03-03 Thread Guenter Roeck
On 03/03/2018 12:48 PM, Guenter Roeck wrote: On 03/03/2018 11:07 AM, Troy Kisky wrote: On 3/3/2018 8:32 AM, Guenter Roeck wrote: Hi, since v4.15, I get the following runtime warning when running sabrelite images in qemu. irq 65: nobody cared (try booting with the "irqpoll" option) ...

Re: [PATCH bpf] bpf: fix bpf_skb_adjust_net/bpf_skb_proto_xlat to deal with gso sctp skbs

2018-03-03 Thread Alexei Starovoitov
On Sat, Mar 03, 2018 at 09:57:15PM +0100, Daniel Borkmann wrote: > On 03/03/2018 05:02 PM, Daniel Axtens wrote: > >> From: Daniel Axtens > >> > >> SCTP GSO skbs have a gso_size of GSO_BY_FRAGS, so any sort of > >> unconditionally mangling of that will result in nonsense value >

Re: [PATCH bpf] bpf: fix bpf_skb_adjust_net/bpf_skb_proto_xlat to deal with gso sctp skbs

2018-03-03 Thread Daniel Borkmann
On 03/03/2018 05:02 PM, Daniel Axtens wrote: >> From: Daniel Axtens >> >> SCTP GSO skbs have a gso_size of GSO_BY_FRAGS, so any sort of >> unconditionally mangling of that will result in nonsense value >> and would corrupt the skb later on. >> >> Therefore, i) add two helpers

Re: lost interrupts when running sabrelite images (v4.15+) in qemu

2018-03-03 Thread Guenter Roeck
On 03/03/2018 11:07 AM, Troy Kisky wrote: On 3/3/2018 8:32 AM, Guenter Roeck wrote: Hi, since v4.15, I get the following runtime warning when running sabrelite images in qemu. irq 65: nobody cared (try booting with the "irqpoll" option) ... handlers: [<26292474>] fec_pps_interrupt Disabling

Re: lost interrupts when running sabrelite images (v4.15+) in qemu

2018-03-03 Thread Troy Kisky
On 3/3/2018 8:32 AM, Guenter Roeck wrote: > Hi, > > since v4.15, I get the following runtime warning when running sabrelite images > in qemu. > > irq 65: nobody cared (try booting with the "irqpoll" option) > ... > handlers: > [<26292474>] fec_pps_interrupt > Disabling IRQ #65 > fec

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-03 Thread Alexander Duyck
On Sat, Mar 3, 2018 at 3:31 AM, Jiri Pirko wrote: > Fri, Mar 02, 2018 at 08:42:47PM CET, m...@redhat.com wrote: >>On Fri, Mar 02, 2018 at 05:20:17PM +0100, Jiri Pirko wrote: >>> >Yeah, this code essentially calls out the "shareable" code with a >>> >comment at the start and end

Re: [PATCH iproute2] ss: fix NULL dereference when rendering without header

2018-03-03 Thread Stefano Brivio
On Sat, 3 Mar 2018 16:59:44 + Jean-Philippe Brucker wrote: > When ss is invoked with the no-header flag, if the query doesn't return > any result, render() is called with 'buffer' uninitialized. This > currently leads to a segfault. Ensure that buffer is

[PATCH iproute2] ss: fix NULL dereference when rendering without header

2018-03-03 Thread Jean-Philippe Brucker
When ss is invoked with the no-header flag, if the query doesn't return any result, render() is called with 'buffer' uninitialized. This currently leads to a segfault. Ensure that buffer is initialized before rendering. The bug can be triggered with: ss -H sport = 10 Signed-off-by:

lost interrupts when running sabrelite images (v4.15+) in qemu

2018-03-03 Thread Guenter Roeck
Hi, since v4.15, I get the following runtime warning when running sabrelite images in qemu. irq 65: nobody cared (try booting with the "irqpoll" option) ... handlers: [<26292474>] fec_pps_interrupt Disabling IRQ #65 fec 2188000.ethernet (unnamed net_device) (uninitialized): MDIO read timeout

[PATCH v2] net: ethernet: Drop unnecessary continue

2018-03-03 Thread Arushi Singhal
Continue at the bottom of a loop are removed. Issue found using drop_continue.cocci Coccinelle script. Signed-off-by: Arushi Singhal --- Changes in v2: - Braces is dropped from if with single statement. drivers/net/ethernet/amd/ni65.c | 4 +---

Re: [PATCH bpf] bpf: fix bpf_skb_adjust_net/bpf_skb_proto_xlat to deal with gso sctp skbs

2018-03-03 Thread Daniel Axtens
Hi Daniel, > From: Daniel Axtens > > SCTP GSO skbs have a gso_size of GSO_BY_FRAGS, so any sort of > unconditionally mangling of that will result in nonsense value > and would corrupt the skb later on. > > Therefore, i) add two helpers skb_increase_gso_size() and >

[ANNOUNCE] nftables 0.8.3 release

2018-03-03 Thread Florian Westphal
Hi! The Netfilter project proudly presents: nftables 0.8.3 This release includes a few fixes since last release plus following enhancements: - ifname_type, so its possible to match interface names via sets: table inet t { set s { type ifname elements = { "eth0",

Re: [Outreachy kernel] [PATCH] net: ethernet: Drop unnecessary continue

2018-03-03 Thread Julia Lawall
On Sat, 3 Mar 2018, Arushi Singhal wrote: > Continue at the bottom of a loop are removed. > Issue found using drop_continue.cocci Coccinelle script. In each case you leave an if with a single statement in the branch. In that case the { } should be dropped too. julia > > Signed-off-by:

[PATCH] net: ethernet: Drop unnecessary continue

2018-03-03 Thread Arushi Singhal
Continue at the bottom of a loop are removed. Issue found using drop_continue.cocci Coccinelle script. Signed-off-by: Arushi Singhal --- drivers/net/ethernet/amd/ni65.c | 1 - drivers/net/ethernet/neterion/s2io.c | 1 -

Re: [PATCH net] sch_netem: fix skb leak in netem_enqueue()

2018-03-03 Thread Neil Horman
On Fri, Mar 02, 2018 at 09:16:48PM +0300, Alexey Kodanev wrote: > When we exceed current packets limit and have more than one > segment in the list returned by skb_gso_segment(), netem drops > only the first one, skipping the rest, hence kmemleak reports: > > unreferenced object

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-03 Thread Jiri Pirko
Fri, Mar 02, 2018 at 08:42:47PM CET, m...@redhat.com wrote: >On Fri, Mar 02, 2018 at 05:20:17PM +0100, Jiri Pirko wrote: >> >Yeah, this code essentially calls out the "shareable" code with a >> >comment at the start and end of the section what defines the >> >virtio_bypass functionality. It would

Re: [PATCH net] ipv6: Reflect MTU changes on PMTU of exceptions for MTU-less routes

2018-03-03 Thread Stefano Brivio
On Fri, 2 Mar 2018 15:39:03 -0700 David Ahern wrote: > On 3/2/18 8:36 AM, Stefano Brivio wrote: > > Currently, administrative MTU changes on a given netdevice are > > not reflected on route exceptions for MTU-less routes, with a > > set PMTU value, for that device: > > > > #

Re: [PATCH net] ipv6: Reflect MTU changes on PMTU of exceptions for MTU-less routes

2018-03-03 Thread Stefano Brivio
Hi Maciej, On Fri, 2 Mar 2018 10:54:36 -0800 Maciej Żenczykowski wrote: > I spend a significant fraction of my time making sure we never rely on PMTUD. Thanks for your comments. I see your point, but here we are not blindly relying on PMTUD, rather reflecting an MTU

Re: [RFC 0/2] kernel: add support to collect hardware logs in panic

2018-03-03 Thread Rahul Lakkireddy
On Friday, March 03/02/18, 2018 at 18:52:45 +0530, Eric W. Biederman wrote: > Rahul Lakkireddy writes: > > > On production servers running variety of workloads over time, kernel > > panic can happen sporadically after days or even months. It is > > important to

Re: ppp/pppoe, still panic 4.15.3 in ppp_push

2018-03-03 Thread Denys Fedoryshchenko
On 2018-03-02 19:43, Guillaume Nault wrote: On Thu, Mar 01, 2018 at 10:07:05PM +0200, Denys Fedoryshchenko wrote: On 2018-03-01 22:01, Guillaume Nault wrote: > diff --git a/drivers/net/ppp/ppp_generic.c > b/drivers/net/ppp/ppp_generic.c > index 255a5def56e9..2acf4b0eabd1 100644 > ---

Re: [RFC PATCH V1 01/12] audit: add container id

2018-03-03 Thread Serge E. Hallyn
On Thu, Mar 01, 2018 at 02:41:04PM -0500, Richard Guy Briggs wrote: ... > +static inline bool audit_containerid_set(struct task_struct *tsk) Hi Richard, the calls to audit_containerid_set() confused me. Could you make it is_audit_containerid_set() or audit_containerid_isset()? > +{ > +

[no subject]

2018-03-03 Thread Vanesa Ali
hi My name is Vanessa Ali. a France Nationality, I am a widow, currently hospitalized due to cancer illness . Meanwhile, I have decided to donate my fund to you as a reliable individual that will use this money wisely, €2,800.000 Million Euros. to help the poor and less privileged. So if you are

Re: [PATCH net-next 1/2] mac80211_hwsim: Make hwsim_netgroup IDA

2018-03-03 Thread Benjamin Beichler
Am 2. März 2018 12:37:25 MEZ schrieb Kirill Tkhai : >destroy_radio() may be executed in parallel with everything above you >wrote, >doesn't it? There may be several network namespaces, and >destroy_radio() >queued from one net namespace may race with