[PATCH v2 11/15] time/posix-clock:Convert to the 64bit methods for k_clock and posix_clock_operations structure

2015-04-30 Thread Baolin Wang
This patch converts the posix clock operations over to the new methods with timespec64/itimerspec64 type to making them ready for 2038, and it is based on the ptp patch series. And also changes to the 64bit methods for k_clock structure, that converts the timespec/itimerspec type to

[PATCH][net-next] xfrm: remove the unnecessary checking before call xfrm_pol_hold

2015-04-30 Thread roy . qing . li
From: Li RongQing roy.qing...@gmail.com xfrm_pol_hold will check its input with NULL Signed-off-by: Li RongQing roy.qing...@gmail.com --- net/xfrm/xfrm_policy.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index

Re: [PATCH] xfrm: fix a race in xfrm_state_lookup_byspi

2015-04-30 Thread Steffen Klassert
On Wed, Apr 29, 2015 at 05:25:25AM +, Du, Fan wrote: -Original Message- From: roy.qing...@gmail.com [mailto:roy.qing...@gmail.com] Sent: Wednesday, April 29, 2015 8:43 AM To: netdev@vger.kernel.org Cc: Du, Fan; steffen.klass...@secunet.com Subject: [PATCH] xfrm: fix a race in

Re: [RFC PATCH net-next 3/8] net: phy: Allow PHY devices to identify themselves as Ethernet switches

2015-04-30 Thread Andrew Lunn
On Wed, Apr 29, 2015 at 06:57:39PM -0700, Florian Fainelli wrote: Some Ethernet MAC drivers using the PHY library require the hardcoding of link parameters when interfaced to a switch device. This has typically lead to various ad-hoc implementations looking like this: - using a fixed PHY

[PATCH net] net/mlx4_en: Schedule napi when RX buffers allocation fails

2015-04-30 Thread Amir Vadai
From: Ido Shamay i...@mellanox.com When system is out of memory, refilling of RX buffers fails while the driver continue to pass the received packets to the kernel stack. At some point, when all RX buffers deplete, driver may fall into a sleep, and not recover when memory for new RX buffers is

[PATCH net] codel: fix maxpacket/mtu confusion

2015-04-30 Thread Eric Dumazet
From: Eric Dumazet eduma...@google.com Under presence of TSO/GSO/GRO packets, codel at low rates can be quite useless. In following example, not a single packet was ever dropped, while average delay in codel queue is ~100 ms ! qdisc codel 0: parent 1:12 limit 16000p target 5.0ms interval 100.0ms

Re: [PATCH net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-04-30 Thread David Miller
From: K. Y. Srinivasan k...@microsoft.com Date: Wed, 29 Apr 2015 15:33:42 -0700 @@ -772,19 +773,21 @@ static inline int netvsc_send_pkt( if (packet-page_buf_cnt) { pgbuf = packet-cp_partial ? packet-page_buf + packet-rmsg_pgcnt : packet-page_buf; -

Re: [PATCH] net: fec: Fix RGMII-ID mode

2015-04-30 Thread David Miller
From: Markus Pargmann m...@pengutronix.de Date: Thu, 30 Apr 2015 17:07:50 +0200 RGMII-ID uses an internal delay within the transmitter or receiver. This feature is phy specific. The rest of the communication is normal RGMII. So the fec driver has to check for all RGMII modes, not only

Re: [PATCH net-next v1 0/4] drivers: net: xgene: Add ethernet with ring manager v2 support

2015-04-30 Thread David Miller
From: Iyappan Subramanian isubraman...@apm.com Date: Tue, 28 Apr 2015 13:52:36 -0700 Adding XFI based 10GbE and SGMII based 1GbE with ring manager v2 support for APM X-Gene ethernet driver. The ring manager v2 is used by 2nd generation SoC. v1: * Initial version Series applied, thanks.

Re: [PATCH net-next v3 1/4] ibmveth: change rx buffer default allocation for CMO

2015-04-30 Thread David Miller
From: Thomas Falcon tlfal...@linux.vnet.ibm.com Date: Wed, 29 Apr 2015 16:25:44 -0500 This patch enables 64k rx buffer pools by default. If Cooperative Memory Overcommitment (CMO) is enabled, the number of 64k buffers is reduced to save memory. Cc: Brian King brk...@linux.vnet.ibm.com

Re: [PATCH net-next v3 4/4] ibmveth: Add support for Large Receive Offload

2015-04-30 Thread David Miller
From: Thomas Falcon tlfal...@linux.vnet.ibm.com Date: Wed, 29 Apr 2015 16:25:47 -0500 Enables receiving large packets from other LPARs. These packets have a -1 IP header checksum, so we must recalculate to have a valid checksum. Signed-off-by: Brian King brk...@linux.vnet.ibm.com

Re: [PATCH net-next v3 2/4] ibmveth: Add support for TSO

2015-04-30 Thread David Miller
From: Thomas Falcon tlfal...@linux.vnet.ibm.com Date: Wed, 29 Apr 2015 16:25:45 -0500 Add support for TSO. TSO is turned off by default and must be enabled and configured by the user. The driver version number is increased so that users can be sure that they are using ibmveth with TSO

Re: [PATCH net-next v3 3/4] ibmveth: Add GRO support

2015-04-30 Thread David Miller
From: Thomas Falcon tlfal...@linux.vnet.ibm.com Date: Wed, 29 Apr 2015 16:25:46 -0500 Cc: Brian King brk...@linux.vnet.ibm.com Signed-off-by: Thomas Falcon tlfal...@linux.vnet.ibm.com Applied. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH net-next] test_bpf: indicate whether bpf prog got jited in test suite

2015-04-30 Thread David Miller
From: Daniel Borkmann dan...@iogearbox.net Date: Thu, 30 Apr 2015 16:17:27 +0200 I think this is useful to verify whether a filter could be JITed or not in case of bpf_prog_enable = 1, which otherwise the test suite doesn't tell besides taking a good peek at the performance numbers. Nicolas

Re: [PATCH net-next v3] be2net: log link status

2015-04-30 Thread David Miller
From: Ivan Vecera ivec...@redhat.com Date: Thu, 30 Apr 2015 11:59:49 +0200 The driver unlike other drivers does not log link state changes. It's better for an user when asynchronous link states are logged to the system log. v3: Changes from v2 discarded as not necessary Cc: Sathya Perla

Re: [PATCH v2] bnx2x: Alloc 4k fragment for each rx ring buffer element

2015-04-30 Thread David Miller
From: Yuval Mintz yuval.mi...@qlogic.com Date: Thu, 30 Apr 2015 11:25:31 + +struct bnx2x_alloc_pool { +struct page *page; +dma_addr_t dma; +int len; Isn't len always set to PAGE_SIZE? If so it can be dropped Agreed, len appears unnecessary. -- To

Re: [PATCH] mlx4_en: Use correct loop cursor in error path.

2015-04-30 Thread David Miller
From: Benjamin Poirier bpoir...@suse.de Date: Wed, 29 Apr 2015 15:59:35 -0700 Signed-off-by: Benjamin Poirier bpoir...@suse.de Fixes: 9e311e7 (net/mlx4_en: Use affinity hint) Applied, thanks. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH] net/mlx4_core: Fix unaligned accesses

2015-04-30 Thread David Miller
From: Or Gerlitz gerlitz...@gmail.com Date: Thu, 30 Apr 2015 16:26:42 +0300 On Wed, Apr 29, 2015 at 11:52 PM, David Ahern david.ah...@oracle.com wrote: Addresses the following kernel logs seen during boot: Kernel unaligned access at TPC[100ee150] mlx4_QUERY_HCA+0x80/0x248 [mlx4_core]

[PATCH 3/3] bnx2: Use dev_kfree_skb in Tx cleanup path

2015-04-30 Thread Alexander Duyck
This change replaces the use of either dev_kfree_skb_any or dev_consume_skb_any in the Tx cleanup path of this driver with dev_kfree_skb. There isn't any need for the _any version of these functions since the NAPI cleanup context is not a hard irq context. This change allows us to drop one

Re: [PATCH] netxen_nic: use spin_[un]lock_bh around tx_clean_lock

2015-04-30 Thread David Miller
From: Tony Camuso tcam...@redhat.com Date: Thu, 30 Apr 2015 07:51:27 -0400 While testing this driver with DEBUG_LOCKDEP and DEBUG_SPINLOCK enabled did not produce any traces, it would be more prudent in the case of tx_clean_lock to use spin_[un]lock_bh, since this lock is manipulated in both

Re: [PATCH net-next 1/1] drivers: net: xgene: fix kbuild warnings

2015-04-30 Thread David Miller
From: Iyappan Subramanian isubraman...@apm.com Date: Thu, 30 Apr 2015 16:09:17 -0700 Fixed the following kbuild warnings: 1. unused variable 'of_id' 2. buffer overflow 'ring_cfg' 5 = 5 Signed-off-by: Iyappan Subramanian isubraman...@apm.com Applied. -- To unsubscribe from this list: send

Re: [PATCH 1/3] etherdev: Avoid unnecessary byte swap in check for Ethertype

2015-04-30 Thread Alexander Duyck
On 04/30/2015 05:13 PM, Eric Dumazet wrote: On Thu, 2015-04-30 at 16:24 -0700, Alexander Duyck wrote: Actually a byte operation itself is not faster. Note in the next line we are returning the value. So what you typically end up with by doing it that way would be 2 reads, one for the u8 and

Re: [PATCH -next] net: sched: remove TC_MUNGED bits

2015-04-30 Thread Jamal Hadi Salim
On 04/30/15 17:16, Alexei Starovoitov wrote: On Thu, Apr 30, 2015 at 12:12:00PM +0200, Florian Westphal wrote: Not used. pedit sets TC_MUNGED when packet content was altered, but all the core does is unset MUNGED again and then set OK2MUNGE. And the latter isn't tested anywhere. So lets

[PATCH 1/3] etherdev: Avoid unnecessary byte swap in check for Ethertype

2015-04-30 Thread Alexander Duyck
This change takes advantage of the fact that ETH_P_802_3_MIN is aligned to 512 so as a result we can actually ignore the lower 8b when comparing the Ethertype to ETH_P_802_3_MIN. This allows us to avoid a byte swap by simply masking the value and comparing it to the byte swapped value for

[PATCH net-next 1/1] drivers: net: xgene: fix kbuild warnings

2015-04-30 Thread Iyappan Subramanian
Fixed the following kbuild warnings: 1. unused variable 'of_id' 2. buffer overflow 'ring_cfg' 5 = 5 Signed-off-by: Iyappan Subramanian isubraman...@apm.com --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 ++ drivers/net/ethernet/apm/xgene/xgene_enet_main.h | 2 +- 2 files changed, 3

Re: [PATCH net-next 1/2] rhashtable: Simplify iterator code

2015-04-30 Thread Herbert Xu
Thomas Graf tg...@suug.ch wrote: Remove useless obj variable and goto logic. Signed-off-by: Thomas Graf tg...@suug.ch Acked-by: Herbert Xu herb...@gondor.apana.org.au Thanks, -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

[PATCH v2 net-next 0/3] tcp: SACK RTTM changes for congestion control

2015-04-30 Thread Kenneth Klette Jonassen
This patch series improves SACK RTT measurements for congestion control: o Picks the latest sequence SACKed for RTT, i.e. most accurate delay signal. o Calls the congestion control's pkts_acked hook with SACK RTTMs even when not sequentially ACKing new data. V2: amend misleading

Re: [PATCH] net/rds: fix unaligned memory access

2015-04-30 Thread David Miller
From: David Laight david.lai...@aculab.com Date: Thu, 30 Apr 2015 15:23:39 + From: David Ahern Sent: 30 April 2015 15:28 rdma_conn_param private data is copied using memcpy after headers such as cma_hdr (see cma_resolve_ib_udp as example). so the start of the private data is aligned to

Re: [RFC PATCH net-next 7/8] net: dsa: mv88e6060: make it a proper PHY driver

2015-04-30 Thread Guenter Roeck
On 04/29/2015 06:57 PM, Florian Fainelli wrote: Convert the Marvell 88E6060 switch driver into a proper PHY library driver that can be registered. To make sure we do not introduce functional changes, the PHY driver provides autoneg and status callbacks to make sure the attached Ethernet MAC

Re: [PATCH] tcp: set SOCK_NOSPACE under memory presure

2015-04-30 Thread David Miller
From: Jason Baron jba...@akamai.com Date: Thu, 30 Apr 2015 10:34:17 -0400 Just curious if anybody had any further reaction on this issue. I think making the epoll edge trigger case, as least match what we are seeing for poll()/select()/epoll() level trigger seems reasonable here. It's in my

Re: [PATCH] net/rds: fix unaligned memory access

2015-04-30 Thread David Miller
From: David Ahern david.ah...@oracle.com Date: Thu, 30 Apr 2015 10:27:53 -0400 @@ -183,8 +183,17 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even /* If the peer gave us the last packet it saw, process this as if * we had received a regular

Re: [PATCH 6/6] net: move qdisc ingress filtering on top of netfilter ingress hooks

2015-04-30 Thread Alexei Starovoitov
On Thu, Apr 30, 2015 at 06:05:37AM +0200, Patrick McHardy wrote: 06:05:37AM do you ever sleep? ;) For the sake of completeness - on ingress, this alternativ means simply ditching TC. I'm sure 'ditching TC' doesn't mean to kill ingress qdisc completely. Compatibility needs to be preserved.