Re: [PATCH net-next] ipv6: pass up EMSGSIZE msg for UDP socket in Ipv6

2016-02-17 Thread Eric Dumazet
On mer., 2016-02-17 at 13:58 -0800, Wei Wang wrote: > From: Wei Wang > > In ipv4, when the machine receives a ICMP_FRAG_NEEDED message, the > connected UDP socket will get EMSGSIZE message on its next read from the > socket. > However, this is not the case for ipv6. > This

Re: [Intel-wired-lan] [next] igb: allow setting MAC address on i211 using a device tree blob V4

2016-02-17 Thread John Holland
> On Feb 18, 2016, at 03:29, David Miller wrote: > > From: John Holland > Date: Thu, 18 Feb 2016 00:49:17 +0100 > >> The Intel i211 LOM pcie ethernet controllers' iNVM operates as an OTP >> and has no externel EEPROM interface [1]. The following allows

[RESEND PATCH v3] isdn: divamnt: use y2038-safe ktime_get_ts64() for trace data timestamps

2016-02-17 Thread Alison Schofield
divamnt stores a start_time at module init and uses it to calculate elapsed time. The elapsed time, stored in secs and usecs, is part of the trace data the driver maintains for the DIVA Server ISDN cards. No change to the format of that time data is required. To avoid overflow on 32-bit systems

Re: [PATCH net] vxlan: do not use fdb in metadata mode

2016-02-17 Thread Simon Horman
Hi Jiri, On Tue, Feb 16, 2016 at 10:18:26PM +0100, Jiri Benc wrote: > In metadata mode, the vxlan interface is not supposed to use the fdb control > plane but an external one (openvswitch or static routes). With the current > code, packets may leak into the fdb handling code which usually causes

Re: [net] r8169 Remove duplicate command which set RxVlan and RxChksum bits.

2016-02-17 Thread Simon Horman
On Sun, Jan 31, 2016 at 05:33:08PM +0200, Corcodel Marian wrote: > These bits is already set on set geatures stage. > > Signed-off-by: Corcodel Marian > --- > drivers/net/ethernet/realtek/r8169.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [net-next 13/15] i40e/i40evf: use logical operators, not bitwise

2016-02-17 Thread Joe Perches
On Wed, 2016-02-17 at 19:38 -0800, Jeff Kirsher wrote: > From: Mitch Williams > > Mr. Spock would certainly raise an eyebrow to see us using bitwise > operators, when we should clearly be relying on logic. Fascinating. I think it read better before this change.

Re: [net-next 00/15][pull request] 40GbE Intel Wired LAN Driver Updates 2016-02-17

2016-02-17 Thread David Miller
From: Jeff Kirsher Date: Wed, 17 Feb 2016 19:38:42 -0800 > This series contains updates to i40e/i40evf only (again). Spock approves, pulled, thanks a lot.

Re: [PATCH v2 net-next 6/8] net: mvneta: bm: add support for hardware buffer management

2016-02-17 Thread David Miller
From: Gregory CLEMENT Date: Tue, 16 Feb 2016 16:33:41 +0100 > pp->dev = dev; > SET_NETDEV_DEV(dev, >dev); > > + dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO; > + dev->hw_features |= dev->features; > + dev->vlan_features

Re: [PATCH] et131x: check return value of dma_alloc_coherent

2016-02-17 Thread David Miller
From: Insu Yun Date: Mon, 15 Feb 2016 21:23:47 -0500 > For error handling, dma_alloc_coherent's return value > needs to be checked, not argument. > > Signed-off-by: Insu Yun Applied, thanks.

Re: [patch net-next v2 00/13] rocker: do world split

2016-02-17 Thread David Miller
From: Jiri Pirko Date: Tue, 16 Feb 2016 15:14:38 +0100 > This patchset allows new rocker worlds to be easily added in future. > Two new worlds are now under development: P4 and eBPF. > > The main part of the patchset is the OF-DPA carve-out. It resuts in OF-DPA > specific

[PATCH net-next 3/3] samples/bpf: offwaketime example

2016-02-17 Thread Alexei Starovoitov
This is simplified version of Brendan Gregg's offwaketime: This program shows kernel stack traces and task names that were blocked and "off-CPU", along with the stack traces and task names for the threads that woke them, and the total elapsed time from when they blocked to when they were woken up.

[PATCH net-next 0/3] bpf_get_stackid() and stack_trace map

2016-02-17 Thread Alexei Starovoitov
This patch set introduces new map type to store stack traces and corresponding bpf_get_stackid() helper. BPF programs already can walk the stack via unrolled loop of bpf_probe_read()s which is ok for simple analysis, but it's not efficient and limited to <30 frames after that the programs don't

[PATCH net-next 2/3] bpf: introduce BPF_MAP_TYPE_STACK_TRACE

2016-02-17 Thread Alexei Starovoitov
add new map type to store stack traces and corresponding helper bpf_get_stackid(ctx, map, flags) - walk user or kernel stack and return id @ctx: struct pt_regs* @map: pointer to stack_trace map @flags: bits 0-7 - numer of stack frames to skip bit 8 - collect user stack instead of kernel

[PATCH net-next 1/3] perf: generalize perf_callchain

2016-02-17 Thread Alexei Starovoitov
. avoid walking the stack when there is no room left in the buffer . generalize get_perf_callchain() to be called from bpf helper Signed-off-by: Alexei Starovoitov --- arch/x86/include/asm/stacktrace.h | 2 +- arch/x86/kernel/cpu/perf_event.c | 4 ++--

[PATCH next v3 0/3] IPvlan misc patches

2016-02-17 Thread Mahesh Bandewar
From: Mahesh Bandewar This is a collection of unrelated patches for IPvlan driver. a. crub_skb() changes are added to ensure that the packets hit the NF_HOOKS in masters' ns in L3 mode. b. u16 change is bug fix while c. the third patch is to group tx/rx variables in single

[PATCH next v3 3/3] ipvlan: misc perf changes

2016-02-17 Thread Mahesh Bandewar
From: Mahesh Bandewar 1. scope correction for few functions that are used in single file. 2. Adjust variables that are used in fast-path to fit into single cacheline 3. Update rcv_frame() to skip shared check for frames coming over wire Signed-off-by: Mahesh Bandewar

[PATCH next v3 2/3] ipvlan: mode is u16

2016-02-17 Thread Mahesh Bandewar
From: Mahesh Bandewar The mode argument was erronusly defined as u32 but it has always been u16. Also use ipvlan_set_mode() helper to set the mode instead of assigning directly. This should avoid future erronus assignments / updates. Signed-off-by: Mahesh Bandewar

[PATCH next v3 1/3] ipvlan: scrub skb before routing in L3 mode.

2016-02-17 Thread Mahesh Bandewar
From: Mahesh Bandewar Scrub skb before hitting the iptable hooks to ensure packets hit these hooks in master's namespace. Signed-off-by: Mahesh Bandewar --- drivers/net/ipvlan/ipvlan_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[net-next 02/15] i40e: Make the DCB firmware checks for X710/XL710 only

2016-02-17 Thread Jeff Kirsher
From: Neerav Parikh Make the DCB firmware version related checks specific to X710 and XL710 only. These checks are not required for X722 family of devices. Introduced an inline routine to help determine if the MAC type is X710/XL710 or not. Moved the firmware version

[net-next 06/15] i40e: Refactor force_wb and WB_ON_ITR functionality code

2016-02-17 Thread Jeff Kirsher
From: Anjali Singhai Jain Now that the Force-WriteBack functionality in X710/XL710 devices has been moved out of the clean routine and into the service task, we need to make sure WriteBack-On-ITR is separated out since it is still called from clean. In the X722

[net-next 14/15] i40e: properly show packet split status in debugfs

2016-02-17 Thread Jeff Kirsher
From: Mitch Williams Get rid of the unused hsplit field in the ring struct and use the existing macro to detect packet split enablement. This allows debugfs dumps of the VSI to properly show which Rx routine is in use. Change-ID:

[net-next 15/15] i40e/i40evf: Bump version

2016-02-17 Thread Jeff Kirsher
From: Jesse Brandeburg Bump version to i40e-1.4.13 and i40evf-1.4.9 Change-ID: I9db37f9d4899141c3e5455dfb456d45465b8c035 Signed-off-by: Jesse Brandeburg Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher

[net-next 03/15] i40e: set shared bit for multicast filters

2016-02-17 Thread Jeff Kirsher
From: Shannon Nelson Add the use of the new Shared MAC filter bit for multicast and broadcast filters in order to make better use of the filters available from the device. The FW folks have assured me that setting this bit on older FW will have no affect, so we don't

[net-next 04/15] i40e: add VEB stat control and remove L2 cloud filter

2016-02-17 Thread Jeff Kirsher
From: Shannon Nelson With the latest firmware, statistics gathering can now be enabled and disabled in the HW switch, so we need to add a parameter to allow the driver to set it as desired. At the same time, the L2 cloud filtering parameter has been removed as it was

[net-next 00/15][pull request] 40GbE Intel Wired LAN Driver Updates 2016-02-17

2016-02-17 Thread Jeff Kirsher
This series contains updates to i40e/i40evf only (again). Jesse moves sync_vsi_filters() up in the service_task because it may need to request a reset, and we do not want to wait another round of service task time. Refactored the enable_icr0() in order to allow it to be decided by the caller

[net-next 05/15] i40e: use new add_veb calling with VEB stats control

2016-02-17 Thread Jeff Kirsher
From: Shannon Nelson The new parameters for add_veb allow us to enable and disable VEB stats, so let's use them. Update copyright year. Change-ID: Ie6e68c68e2d1d459e42168eda661051b56bf0a65 Signed-off-by: Shannon Nelson Tested-by: Andrew

[net-next 07/15] i40evf: Change vf driver string to reflect all products i40evf supports

2016-02-17 Thread Jeff Kirsher
From: Catherine Sullivan Change the driver string to 40-10 Gigabit instead of XL710/X710 for X722 and all future products. Also update copyright year in file header. Change-ID: I57fae656b36dc4eb682b2b7a054f8f48f3589149 Signed-off-by: Catherine Sullivan

[net-next 12/15] i40e/i40evf: use pages correctly in Rx

2016-02-17 Thread Jeff Kirsher
From: Mitch Williams Refactor the packet split Rx code to properly use half-pages for receives. The previous code was doing way more mapping and unmapping than it needed to, and wasn't properly using half-pages. Increment the page use count each time we give a

[net-next 09/15] i40e/i40evf: try again after failure

2016-02-17 Thread Jeff Kirsher
From: Jesse Brandeburg This is the "Don't Give Up" patch. Previously the driver could fail an allocation, and then possibly stall a queue forever, by never coming back to continue receiving or allocating buffers. With this patch, the driver will keep polling trying

[net-next 13/15] i40e/i40evf: use logical operators, not bitwise

2016-02-17 Thread Jeff Kirsher
From: Mitch Williams Mr. Spock would certainly raise an eyebrow to see us using bitwise operators, when we should clearly be relying on logic. Fascinating. Change-ID: Ie338010c016f93e9faa2002c07c90b15134b7477 Signed-off-by: Mitch Williams

[net-next 08/15] i40e/i40evf: don't lose interrupts

2016-02-17 Thread Jeff Kirsher
From: Jesse Brandeburg While re-enabling interrupts the driver would clear all pending causes. This meant that if an interrupt was generated while the driver was cleaning or polling with interrupts disabled, then that interrupt was lost. This could cause a queue to

[net-next 10/15] i40e: dump descriptor indexes in hex

2016-02-17 Thread Jeff Kirsher
From: Jesse Brandeburg The debugging helpers for showing descriptor rings were dumping the indexes in decimal and the offsets in hex. Put everything in hex and at least be consistent. Also update copyright year in file header. Change-ID:

[net-next 11/15] i40e/i40evf: use __GFP_NOWARN

2016-02-17 Thread Jeff Kirsher
From: Jesse Brandeburg The i40e and i40evf drivers now cleanly handle allocation failures and can avoid kernel log spew from the memory allocator when allocations fail, so set __GFP_NOWARN on Rx buffer alloc. Change-ID: Ic9e1b83c495e2a3ef6b069ba7fb6e52ce134cd23

[net-next 01/15] i40e: move sync_vsi_filters up in service_task

2016-02-17 Thread Jeff Kirsher
From: Jesse Brandeburg The sync_vsi_filters function is moved up in the service_task because it may need to request a reset, and we don't want to wait another round of service task time. NOTE: Filters will be replayed by sync_vsi_filters including broadcast and

Re: [PATCH 0/3] net: thunderx: Miscellaneous fixes

2016-02-17 Thread David Miller
From: sunil.kovv...@gmail.com Date: Tue, 16 Feb 2016 16:29:48 +0530 > This patch series fixes couple of issues w.r.t multiqset mode > and receive packet statastics. Series applied, thanks.

Re: [PATCH] tcp: correctly crypto_alloc_hash return check

2016-02-17 Thread David Miller
From: Insu Yun Date: Mon, 15 Feb 2016 21:30:33 -0500 > crypto_alloc_hash never returns NULL > > Signed-off-by: Insu Yun Applied, thanks.

Re: [PATCH net-next v3 0/4] Add support for Classifier and RSS

2016-02-17 Thread David Miller
From: Iyappan Subramanian Date: Wed, 17 Feb 2016 15:00:38 -0800 > This patch set enables, > > (i) Classifier engine that is used for parsing > through the packet and extracting a search string that is then used > to search a database to find associative data. > > (ii)

Re: [net-next v2] vlan: change return type of vlan_proc_rem_dev

2016-02-17 Thread David Miller
From: Zhang Shengju Date: Thu, 18 Feb 2016 02:29:30 + > Since function vlan_proc_rem_dev() will only return 0, it's better to > return void instead of int. > > Signed-off-by: Zhang Shengju Applied, thanks.

Re: [PATCH net v2] net: dsa: Unregister slave_dev in error path

2016-02-17 Thread David Miller
From: Florian Fainelli Date: Wed, 17 Feb 2016 18:43:22 -0800 > With commit 0071f56e46da ("dsa: Register netdev before phy"), we are now > trying > to free a network device that has been previously registered, and in case of > errors, this will make us hit the

Re: [net-next PATCH] net: pack tc_cls_u32_knode struct slighter better

2016-02-17 Thread David Miller
From: John Fastabend Date: Wed, 17 Feb 2016 14:59:30 -0800 > By packing the structure we can remove a few holes as Jamal > suggests. > > before: ... > after: ... > Suggested-by: Jamal Hadi Salim > Signed-off-by: John Fastabend

Re: [net-next PATCH 2/2] ixgbe: fix dates on header of ixgbe_model.h

2016-02-17 Thread David Miller
From: John Fastabend Date: Wed, 17 Feb 2016 14:35:23 -0800 > Fixes: 9d35cf062e05 ("net: ixgbe: add minimal parser details for ixgbe") > Reported-by: Mark Rustad > Signed-off-by: John Fastabend Applied.

Re: [net-next PATCH 1/2] ixgbe: use u32 instead of __u32 in model header

2016-02-17 Thread David Miller
From: John Fastabend Date: Wed, 17 Feb 2016 14:34:53 -0800 > I incorrectly used __u32 types where we should be using u32 types when > I added the ixgbe_model.h file. > > Fixes: 9d35cf062e05 ("net: ixgbe: add minimal parser details for ixgbe") > Suggested-by: Jamal Hadi

[PATCH net v2] net: dsa: Unregister slave_dev in error path

2016-02-17 Thread Florian Fainelli
With commit 0071f56e46da ("dsa: Register netdev before phy"), we are now trying to free a network device that has been previously registered, and in case of errors, this will make us hit the BUG_ON(dev->reg_state != NETREG_UNREGISTERED) condition. Fix this by adding a missing unregister_netdev()

Re: [Intel-wired-lan] [next] igb: allow setting MAC address on i211 using a device tree blob V4

2016-02-17 Thread David Miller
From: John Holland Date: Thu, 18 Feb 2016 00:49:17 +0100 > The Intel i211 LOM pcie ethernet controllers' iNVM operates as an OTP > and has no externel EEPROM interface [1]. The following allows the > driver to pickup the MAC address from a device tree blob when > CONFIG_OF >

Re: [PATCH net] net: dsa: Unregister slave_dev in error path

2016-02-17 Thread Florian Fainelli
Le 17/02/2016 18:19, Florian Fainelli a écrit : > With commit 0071f56e46da ("dsa: Register netdev before phy"), we are now > trying > to unregister s/unregister/free/... a network device that has been previously registered, and in case > of errors, this will make us hit the

[net-next v2] vlan: change return type of vlan_proc_rem_dev

2016-02-17 Thread Zhang Shengju
Since function vlan_proc_rem_dev() will only return 0, it's better to return void instead of int. Signed-off-by: Zhang Shengju --- net/8021q/vlanproc.c | 3 +-- net/8021q/vlanproc.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git

Re: [net-next] vlan: change return type of vlan_proc_rem_dev

2016-02-17 Thread 张胜举
> > On Wed, Feb 17, 2016 at 3:44 AM, Zhang Shengju > wrote: > > Since function vlan_proc_rem_dev() will only return 0, it's better to > > return void instead of int. > > > > Signed-off-by: Zhang Shengju > > --- > >

Re: [net-next PATCH 1/2] ixgbe: use u32 instead of __u32 in model header

2016-02-17 Thread David Miller
From: Jeff Kirsher Date: Wed, 17 Feb 2016 14:41:48 -0800 > On Wed, 2016-02-17 at 14:34 -0800, John Fastabend wrote: >> I incorrectly used __u32 types where we should be using u32 types >> when >> I added the ixgbe_model.h file. >> >> Fixes: 9d35cf062e05 ("net:

[PATCH net] net: dsa: Unregister slave_dev in error path

2016-02-17 Thread Florian Fainelli
With commit 0071f56e46da ("dsa: Register netdev before phy"), we are now trying to unregister a network device that has been previously registered, and in case of errors, this will make us hit the BUG_ON(dev->reg_state != NETREG_UNREGISTERED) condition. Fix this by adding a missing

Re: [iproute2 net-next] vrf: Add support for slave_info

2016-02-17 Thread Stephen Hemminger
On Tue, 2 Feb 2016 07:43:46 -0800 David Ahern wrote: > Print VRF slave_info attributes if present. > > Signed-off-by: David Ahern Applied to net-next

Re: [PATCH iproute2] netns: Fix an off-by-one strcpy() in netns_map_add().

2016-02-17 Thread Stephen Hemminger
On Fri, 12 Feb 2016 14:47:39 +0100 Nicolas Cavallari wrote: > netns_map_add() does a malloc of (sizeof (struct nsid_cache) + > strlen(name)) and then proceed with strcpy() of name into the > zero-length member at the end of the nsid_cache structure.

Re: [PATCH iproute2 1/5] iplink: bridge_slave: export read-only values

2016-02-17 Thread Stephen Hemminger
On Tue, 16 Feb 2016 16:08:51 +0100 Nikolay Aleksandrov wrote: > From: Nikolay Aleksandrov > > Export all the read-only values that get returned about a bridge port > such as the timers, the ids, designated_port and cost, > topology_change_ack

Re: [PATCH 1/2] [iproute2] tc/q_htb.c: remove printing of a deprecated overhead value previously encoded as a part of mpu field

2016-02-17 Thread Stephen Hemminger
On Sat, 19 Dec 2015 18:25:52 +0300 Dmitrii Shcherbakov wrote: > Remove printing according to the previously used encoding of mpu and overhead > values within the tc_ratespec's mpu field. This encoding is no longer being > used as a separate 'overhead' field in the

linux-next: build failure after merge of the net-next tree

2016-02-17 Thread Stephen Rothwell
pport for default application priority.") This build is big endian. I have used the net-next tree from next-20160217 for today. -- Cheers, Stephen Rothwell

Re: [PATCH] mwifiex: Use to_delayed_work()

2016-02-17 Thread Julian Calaby
Hi All, On Wed, Feb 17, 2016 at 11:33 PM, Amitoj Kaur Chawla wrote: > Introduce the use of to_delayed_work() helper function instead of open > coding it with container_of() > > A simplified version of the Coccinelle semantic patch used to make > this change is: > > // > @@

[PATCH nf 3/3] netfilter: ipvs: handle ip_vs_fill_iph_skb_off failure

2016-02-17 Thread Simon Horman
From: Arnd Bergmann ip_vs_fill_iph_skb_off() may not find an IP header, and gcc has determined that ip_vs_sip_fill_param() then incorrectly accesses the protocol fields: net/netfilter/ipvs/ip_vs_pe_sip.c: In function 'ip_vs_sip_fill_param': net/netfilter/ipvs/ip_vs_pe_sip.c:76:5:

[PATCH nf 2/3] netfilter: ipvs: allow rescheduling after RST

2016-02-17 Thread Simon Horman
From: Julian Anastasov "RFC 5961, 4.2. Mitigation" describes a mechanism to request client to confirm with RST the restart of TCP connection before resending its SYN. As result, IPVS can see SYNs for existing connection in CLOSE state. Add check to allow rescheduling in this state.

[GIT PULL nf 0/3] IPVS Fixes for v4.5

2016-02-17 Thread Simon Horman
Hi Pablo, please consider these IPVS fixes for v4.5. * Arnd Bergman has corrected an error whereby the SIP persistence engine may incorrectly access protocol fields * Julian Anastasov has corrected a problem reported by Jiri Bohac with the connection rescheduling mechanism added in 3.10 when

[PATCH nf 1/3] netfilter: ipvs: drop first packet to redirect conntrack

2016-02-17 Thread Simon Horman
From: Julian Anastasov Jiri Bohac is reporting for a problem where the attempt to reschedule existing connection to another real server needs proper redirect for the conntrack used by the IPVS connection. For example, when IPVS connection is created to NAT-ed real server we alter

[PATCH nf-next 2/2] netfilter: ipvs: avoid unused variable warnings

2016-02-17 Thread Simon Horman
From: Arnd Bergmann The proc_create() and remove_proc_entry() functions do not reference their arguments when CONFIG_PROC_FS is disabled, so we get a couple of warnings about unused variables in IPVS: ipvs/ip_vs_app.c:608:14: warning: unused variable 'net' [-Wunused-variable]

[GIT PULL nf-next 0/2] IPVS Updates for v4.6

2016-02-17 Thread Simon Horman
Hi Pablo, please consider these cleanups for IPVS for v4.6. * Arnd Bergmann has resolved a bunch of unused variable warnings and; * Yannick Brosseau has removed a noisy debug message The following changes since commit 667f00630ebefc4d73aa105c6ab254e4aec867f8: Merge branch

[PATCH nf-next 1/2] netfilter: ipvs: Remove noisy debug print from ip_vs_del_service

2016-02-17 Thread Simon Horman
From: Yannick Brosseau This have been there for a long time, but does not seem to add value Signed-off-by: Yannick Brosseau Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 2 -- 1 file changed, 2 deletions(-) diff

[PATCH] ipv6: Annotate change of locking mechanism for np->opt

2016-02-17 Thread Benjamin Poirier
follows up commit 45f6fad84cc3 ("ipv6: add complete rcu protection around np->opt") which added mixed rcu/refcount protection to np->opt. Given the current implementation of rcu_pointer_handoff(), this has no effect at runtime. Signed-off-by: Benjamin Poirier ---

[PATCH] net: phy: dp83848: Fix sysfs naming collision warning

2016-02-17 Thread Andrew F. Davis
Files in sysfs are created using the name from the phy_driver struct, when two names are the same we may get a duplicate filename warning, fix this. Reported-by: kernel test robot Signed-off-by: Andrew F. Davis --- drivers/net/phy/dp83848.c | 2 +- 1

Re: [ovs-dev] [PATCH nf-next v7 6/7] openvswitch: Delay conntrack helper call for new connections.

2016-02-17 Thread Joe Stringer
On 5 February 2016 at 17:41, Jarno Rajahalme wrote: > There is no need to help connections that are not confirmed, so we can > delay helping new connections to the time when they are confirmed. > This change is needed for NAT support, and having this as a separate > patch will make

Re: [PATCH nf-next v7 4/7] openvswitch: Find existing conntrack entry after upcall.

2016-02-17 Thread Joe Stringer
On 5 February 2016 at 17:41, Jarno Rajahalme wrote: > /* Determine whether skb->nfct is equal to the result of conntrack lookup. */ > -static bool skb_nfct_cached(const struct net *net, const struct sk_buff *skb, > - const struct ovs_conntrack_info

Re: [PATCH net-next 2/2] phy: marvell: Add support for phy packet generator

2016-02-17 Thread Florian Fainelli
On 17/02/2016 12:32, Andrew Lunn wrote: > +static int marvell_pkt_gen(struct phy_device *phydev, > +struct ethtool_phy_pkt_gen *pkt_gen) > +{ > + int err, oldpage, reg, max_loop = 100; > + u32 phy_id = phydev->drv->phy_id; > + bool has_ipg = false; [snip] > +

[Intel-wired-lan] [next] igb: allow setting MAC address on i211 using a device tree blob V4

2016-02-17 Thread John Holland
Hello, The Intel i211 LOM pcie ethernet controllers' iNVM operates as an OTP and has no externel EEPROM interface [1]. The following allows the driver to pickup the MAC address from a device tree blob when CONFIG_OF has been enabled.

Re: [PATCH v2 2/5] net: phy: dp83848: Add PHY ID for TI version of DP83848C

2016-02-17 Thread Florian Fainelli
On 17/02/2016 15:37, Andrew F. Davis wrote: > On 02/07/2016 11:47 AM, Andrew F. Davis wrote: >> After acquiring National Semiconductor, TI appears to have >> changed the Vendor Model Number for the DP83848C PHYs, >> add this new ID to supported IDs. >> >> Signed-off-by: Andrew F. Davis

Re: [PATCH v2 2/5] net: phy: dp83848: Add PHY ID for TI version of DP83848C

2016-02-17 Thread Andrew F. Davis
On 02/07/2016 11:47 AM, Andrew F. Davis wrote: After acquiring National Semiconductor, TI appears to have changed the Vendor Model Number for the DP83848C PHYs, add this new ID to supported IDs. Signed-off-by: Andrew F. Davis --- drivers/net/phy/dp83848.c | 9 ++--- 1 file

[PATCH 1/1] cxgb3: fix up vpd strings for kstrto*()

2016-02-17 Thread Steve Wise
The vpd strings are left justified, in a fixed length array, with possible trailing white space and no NUL. So fix them up before calling kstrto*(). This is a recent regression which causes cxgb3 to fail to load. Fixes:e72c932('cxgb3: Convert simple_strtoul to kstrtox') Signed-off-by: Steve

Re: [PATCH net-next 1/2] net: ethtool: Add support for PHY packet generators

2016-02-17 Thread Ben Hutchings
On Wed, 2016-02-17 at 22:55 +0100, Andrew Lunn wrote: > On Wed, Feb 17, 2016 at 09:06:19PM +, Ben Hutchings wrote: > > On Wed, 2016-02-17 at 21:32 +0100, Andrew Lunn wrote: > > > Some PHY devices contain a simple packet generator. Features vary, but > > > often they can be used to generate

Re: [net-next] vlan: change return type of vlan_proc_rem_dev

2016-02-17 Thread Cong Wang
On Wed, Feb 17, 2016 at 3:44 AM, Zhang Shengju wrote: > Since function vlan_proc_rem_dev() will only return 0, it's better to > return void instead of int. > > Signed-off-by: Zhang Shengju > --- > net/8021q/vlanproc.c | 3 +--

Re: [net-next PATCH v3 3/8] net: sched: add cls_u32 offload hooks for netdevs

2016-02-17 Thread John Fastabend
[...] >> >>> +static void u32_replace_hw_hnode(struct tcf_proto *tp, struct >>> tc_u_hnode *h) >>> +{ >>> +struct net_device *dev = tp->q->dev_queue->dev; >>> +struct tc_cls_u32_offload u32_offload = {0}; >>> +struct tc_to_netdev offload; >>> + >>> +offload.type = TC_SETUP_CLSU32;

[PATCH net-next] hv_netvsc: add software transmit timestamp support

2016-02-17 Thread Simon Xiao
Enable skb_tx_timestamp in hyperv netvsc. Signed-off-by: Simon Xiao Reviewed-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/net/hyperv/netvsc_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH v2 net-next 0/8] API set for HW Buffer management

2016-02-17 Thread Willy Tarreau
Hi Gregory, On Tue, Feb 16, 2016 at 04:33:35PM +0100, Gregory CLEMENT wrote: > Hello, > > A few weeks ago I sent a proposal for a API set for HW Buffer > management, to have a better view of the motivation for this API see > the cover letter of this proposal: >

[PATCH net-next v3 1/4] drivers: net: xgene: Add support for Classifier engine

2016-02-17 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/Makefile | 3 +- drivers/net/ethernet/apm/xgene/xgene_enet_cle.c

[PATCH net-next v3 4/4] dtb: xgene: Add irqs to support multi queue

2016-02-17 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 8 +++- arch/arm64/boot/dts/apm/apm-storm.dtsi | 8

[PATCH net-next v3 3/4] drivers: net: xgene: Add support for multiple queues

2016-02-17 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_cle.c | 11 +- drivers/net/ethernet/apm/xgene/xgene_enet_hw.c

[PATCH net-next v3 0/4] Add support for Classifier and RSS

2016-02-17 Thread Iyappan Subramanian
This patch set enables, (i) Classifier engine that is used for parsing through the packet and extracting a search string that is then used to search a database to find associative data. (ii) Receive Side Scaling (RSS) that does dynamic load balancing of the CPUs by controlling the number of

[PATCH net-next v3 2/4] drivers: net: xgene: Add support for RSS

2016-02-17 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_cle.c | 386 +++-

[net-next PATCH] net: pack tc_cls_u32_knode struct slighter better

2016-02-17 Thread John Fastabend
By packing the structure we can remove a few holes as Jamal suggests. before: struct tc_cls_u32_knode { struct tcf_exts * exts; /* 0 8 */ u8 fshift; /* 8 1 */ /* XXX 3 bytes hole, try to pack

Re: [PATCH] rtnl: RTM_GETNETCONF: fix wrong return value

2016-02-17 Thread Cong Wang
On Tue, Feb 16, 2016 at 6:43 PM, Anton Protopopov wrote: > An error response from a RTM_GETNETCONF request can return the positive > error value EINVAL in the struct nlmsgerr that can mislead userspace. > > Signed-off-by: Anton Protopopov

Copyright © 2016.

2016-02-17 Thread Drouet, Christian
Please Follow the link below for your mail Box account to be Upgrade to the New Standard Version for fast internet protocol. Click on UPGRADE for proper confirmation and verification to the new standard version. Thank You for your

Re: [net-next PATCH 2/2] ixgbe: fix dates on header of ixgbe_model.h

2016-02-17 Thread Jeff Kirsher
On Wed, 2016-02-17 at 14:35 -0800, John Fastabend wrote: > Fixes: 9d35cf062e05 ("net: ixgbe: add minimal parser details for > ixgbe") > Reported-by: Mark Rustad > Signed-off-by: John Fastabend > --- >  

Re: [net-next PATCH 1/2] ixgbe: use u32 instead of __u32 in model header

2016-02-17 Thread Jeff Kirsher
On Wed, 2016-02-17 at 14:34 -0800, John Fastabend wrote: > I incorrectly used __u32 types where we should be using u32 types > when > I added the ixgbe_model.h file. > > Fixes: 9d35cf062e05 ("net: ixgbe: add minimal parser details for > ixgbe") > Suggested-by: Jamal Hadi Salim

[net-next PATCH 2/2] ixgbe: fix dates on header of ixgbe_model.h

2016-02-17 Thread John Fastabend
Fixes: 9d35cf062e05 ("net: ixgbe: add minimal parser details for ixgbe") Reported-by: Mark Rustad Signed-off-by: John Fastabend --- drivers/net/ethernet/intel/ixgbe/ixgbe_model.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[net-next PATCH 1/2] ixgbe: use u32 instead of __u32 in model header

2016-02-17 Thread John Fastabend
I incorrectly used __u32 types where we should be using u32 types when I added the ixgbe_model.h file. Fixes: 9d35cf062e05 ("net: ixgbe: add minimal parser details for ixgbe") Suggested-by: Jamal Hadi Salim Signed-off-by: John Fastabend ---

Re: [net-next PATCH v3 6/8] net: ixgbe: add minimal parser details for ixgbe

2016-02-17 Thread John Fastabend
On 16-02-17 10:01 AM, Rustad, Mark D wrote: > John Fastabend wrote: > >> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h >> b/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h >> new file mode 100644 >> index 000..43ebec4 >> --- /dev/null >> +++

Re: [PATCH net-next 2/2] phy: marvell: Add support for phy packet generator

2016-02-17 Thread Lino Sanfilippo
Hi, On 17.02.2016 21:32, Andrew Lunn wrote: > + > + oldpage = phy_read(phydev, MII_MARVELL_PHY_PAGE); > + if (oldpage < 0) { > + err = oldpage; > + goto out; > + } > + shouldn't this return immediately? Jump to out label and writing an error value to the phy

[PATCH] USB: cdc_subset: only build when one driver is enabled

2016-02-17 Thread Arnd Bergmann
This avoids a harmless randconfig warning I get when USB_NET_CDC_SUBSET is enabled, but all of the more specific drivers are not: drivers/net/usb/cdc_subset.c:241:2: #warning You need to configure some hardware for this driver The current behavior is clearly intentional, giving a warning when a

Re: [PATCH nf-next v7 4/7] openvswitch: Find existing conntrack entry after upcall.

2016-02-17 Thread Joe Stringer
On 5 February 2016 at 17:41, Jarno Rajahalme wrote: > Add a new function ovs_ct_find_existing() to find an existing > conntrack entry for which this packet was already applied to. This is > only to be called when there is evidence that the packet was already > tracked and

Re: [PATCH nf-next v7 5/7] openvswitch: Handle NF_REPEAT in conntrack action.

2016-02-17 Thread Joe Stringer
On 5 February 2016 at 17:41, Jarno Rajahalme wrote: > Repeat the nf_conntrack_in() call when it returns NF_REPEAT. This > avoids dropping a SYN packet re-opening an existing TCP connection. > > Signed-off-by: Jarno Rajahalme Arguably this is a bugfix. Acked-by:

[PATCH net-next] ipv6: pass up EMSGSIZE msg for UDP socket in Ipv6

2016-02-17 Thread Wei Wang
From: Wei Wang In ipv4, when the machine receives a ICMP_FRAG_NEEDED message, the connected UDP socket will get EMSGSIZE message on its next read from the socket. However, this is not the case for ipv6. This fix modifies the udp err handler in Ipv6 for ICMP6_PKT_TOOBIG to

Re: [PATCH net-next 1/2] net: ethtool: Add support for PHY packet generators

2016-02-17 Thread Andrew Lunn
On Wed, Feb 17, 2016 at 09:06:19PM +, Ben Hutchings wrote: > On Wed, 2016-02-17 at 21:32 +0100, Andrew Lunn wrote: > > Some PHY devices contain a simple packet generator. Features vary, but > > often they can be used to generate packets of different sizes, > > different contents, with or

Re: [PATCH v2] gre: Avoid kernel panic by clearing IPCB before dst_link_failure called

2016-02-17 Thread David Miller
From: Bernie Harris Date: Tue, 16 Feb 2016 14:10:16 +1300 > skb->cb may contain data from previous layers (in the observed case the > qdisc layer). In the observed scenario, the data was misinterpreted as > ip header options, which later caused the ihl to be

Re: [PATCH net-next] store complete hash type information in socket buffer...

2016-02-17 Thread Eric Dumazet
On mer., 2016-02-17 at 15:44 -0500, David Miller wrote: > From: Paul Durrant > Date: Mon, 15 Feb 2016 08:32:08 + > > > ...rather than a boolean merely indicating a canonical L4 hash. > > > > skb_set_hash() takes a hash type (from enum pkt_hash_types) as an > >

Re: [Intel-wired-lan] [next] igb: allow setting MAC address on i211 using a device tree blob V3

2016-02-17 Thread Jeff Kirsher
On Wed, 2016-02-17 at 07:43 +0100, John Holland wrote: > Hello, > > The Intel i211 LOM pcie ethernet controllers' iNVM operates as an OTP > and has no externel EEPROM interface [1]. The following allows the > driver to pickup the MAC address from a device tree blob when > CONFIG_OF > has been

Re: [PATCH] net-sysfs: remove unused fmt_long_hex

2016-02-17 Thread David Miller
From: Colin King Date: Mon, 15 Feb 2016 22:54:47 + > From: Colin Ian King > > Ever since commit 04ed3e741d0f133e02bed7fa5c98edba128f90e7 > ("net: change netdev->features to u32") the format string > fmt_long_hex has not been used, so we

Re: [PATCH v3] phy: marvell: Fix and unify reg-init behavior

2016-02-17 Thread David Miller
From: Andrew Lunn Date: Tue, 16 Feb 2016 16:29:02 +0100 > On Mon, Feb 15, 2016 at 11:46:45PM +0100, Clemens Gruber wrote: >> For the Marvell 88E1510, marvell_of_reg_init was called too late, in the >> config_aneg function. >> Since commit 113c74d83eef ("net: phy: turn carrier off

  1   2   3   >