[PATCH iproute2 net-next] bridge: vlan: add support to display per-vlan statistics

2016-06-20 Thread Nikolay Aleksandrov
This patch adds support for the -statistics (-s) argument to the bridge vlan show command which will display the per-vlan statistics and the bridge device each vlan belongs to. The show command filtering options are both supported, also the man page is updated to explain the new option. This patch

Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Richard Cochran
On Mon, Jun 20, 2016 at 01:08:27PM +0200, Pierre-Louis Bossart wrote: > The ALSA API provides support for 'audio' timestamps (playback/capture rate > defined by audio subsystem) and 'system' timestamps (typically linked to > TSC/ART) with one option to take synchronized timestamps should the

Re: Micrel Phy KSZ8031 clock select setting in dts

2016-06-20 Thread Andrew Lunn
> { > pinctrl-names = "default"; > pinctrl-0 = <_enet1>; > phy-mode = "rmii"; > micrel,rmii-reference-clock-select-25-mhz; > clocks,rmii-ref; You are adding phy properties, not MAC properties. Please put them in the phy node. Andrew

Re: Micrel Phy KSZ8031 clock select setting in dts

2016-06-20 Thread Sergei Shtylyov
Hello. On 6/20/2016 3:08 PM, Oliver Graute wrote: thx you both for confirming that. Can you tell me also if the clock statement s fine in my dts? { pinctrl-names = "default"; pinctrl-0 = <_enet1>; phy-mode = "rmii"; micrel,rmii-reference-clock-select-25-mhz;

RE: [PATCH net-next 1/3] net: ipv6: Move ip6_route_get_saddr to inline

2016-06-20 Thread David Laight
From: Behalf Of David Ahern > Sent: 17 June 2016 00:24 > VRF driver needs access to ip6_route_get_saddr code. Since it does > little beyond ipv6_dev_get_saddr and ipv6_dev_get_saddr is already > exported for modules move ip6_route_get_saddr to the header as an > inline. > > Code move only; no

Re: [PATCH] ibmvnic: fix to use list_for_each_safe() when delete items

2016-06-20 Thread Thomas Falcon
On 06/17/2016 09:53 PM, weiyj...@163.com wrote: > From: Wei Yongjun > > Since we will remove items off the list using list_del() we need > to use a safe version of the list_for_each() macro aptly named > list_for_each_safe(). > > Signed-off-by: Wei Yongjun

[PATCH v4 net-next v4 12/14] net: dsa: mv88e6xxx: pass compatible info

2016-06-20 Thread Vivien Didelot
After allocating the chip structure, pass it a compatible info pointer. The compatible info structure will be used later to describe how to access the switch registers and where to read the switch ID. For the standard MDIO probe, get it from the device node data. For the legacy DSA driver

[PATCH v4 net-next v4 00/14] net: dsa: mv88e6xxx: probe compatible

2016-06-20 Thread Vivien Didelot
This patchset factorizes the legacy and new SMI probing and abstracts the switch register accesses. This simplifies adding support for new chips or alternative register accesses. This will allow us to use a compatible chip info to describe how to access the SMI device and its switch ID register

[PATCH v4 net-next v4 10/14] net: dsa: mv88e6xxx: add SMI init helper

2016-06-20 Thread Vivien Didelot
Add an helper function to isolate SMI specific assignments and checks. This function will later help choosing the different SMI accesses based of the compatible info. Since the chip structure is already allocated in the legacy probe, use the mv88e6xxx_reg_read access routine instead of

Re: rcu locking issue in mpls output code?

2016-06-20 Thread Roopa Prabhu
On Mon, Jun 20, 2016 at 8:19 AM, David Ahern wrote: > On 6/20/16 12:30 AM, Lennert Buytenhek wrote: >> >> On Sun, Jun 19, 2016 at 08:19:20PM -0600, David Ahern wrote: >> diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c index fb31aa8..802956b

[PATCH v4 03/19] netlabel: Initial support for the CALIPSO netlink protocol.

2016-06-20 Thread Huw Davies
CALIPSO is a packet labelling protocol for IPv6 which is very similar to CIPSO. It is specified in RFC 5570. Much of the code is based on the current CIPSO code. This adds support for adding passthrough-type CALIPSO DOIs through the NLBL_CALIPSO_C_ADD command. It requires attributes:

[PATCH v4 net-next v4 02/14] net: dsa: mv88e6xxx: remove redundant assignments

2016-06-20 Thread Vivien Didelot
The chip->ds and ds->slave_mii_bus assignments are common to both legacy and new MDIO probing and are already done in the later setup code. Remove the duplicated assignments from the MDIO probing code. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn

[PATCH v4 net-next v4 06/14] net: dsa: mv88e6xxx: use gpio get optional variant

2016-06-20 Thread Vivien Didelot
Use the optional variant to get the reset GPIO line, instead of checking for the -ENOENT error. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 13 +++-- 1 file changed, 3 insertions(+), 10

[PATCH v4 net-next v4 14/14] net: dsa: mv88e6xxx: abstract switch registers accesses

2016-06-20 Thread Vivien Didelot
When the SMI address of the switch chip is zero, the chip assumes to be the only one on the SMI master bus and thus responds to all its known SMI devices addresses (port registers, Global2, etc.) When its SMI address is not zero, some chips (e.g. 88E6352) use an indirect access through two SMI

Re: rcu locking issue in mpls output code?

2016-06-20 Thread David Ahern
On 6/20/16 10:33 AM, Lennert Buytenhek wrote: OK, patch coming up. Thanks! can you build a kernel with rcu debugging enabled as well and run it through your tests? Thanks,

[PATCH] can: only call can_stat_update with procfs

2016-06-20 Thread Arnd Bergmann
The change to leave out procfs support in CAN when CONFIG_PROC_FS is not set was incomplete and leads to a build error: net/built-in.o: In function `can_init': :(.init.text+0x9858): undefined reference to `can_stat_update' ERROR: "can_stat_update" [net/can/can.ko] undefined! This tries a better

[PATCH v4 net-next v4 09/14] net: dsa: mv88e6xxx: add chip allocation helper

2016-06-20 Thread Vivien Didelot
Add an helper function to allocate the chip structure at the beginning of the probe functions. It will be used to initialize the SMI access. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 39

Re: [patch net-next] net: hns: add skb_reset_mac_header() after skb being alloc

2016-06-20 Thread David Miller
From: Yisen Zhuang Date: Mon, 20 Jun 2016 15:12:34 +0800 > > > 在 2016/6/15 18:30, Yisen Zhuang 写道: >> Hi David, >> >> Thanks for your suggestions. >> >> Please see my comments below. >> >> Thanks, >> >> Yisen >> >> 在 2016/6/15 13:41, David Miller 写道: >>> From:

[PATCH v4 net-next v4 11/14] net: dsa: mv88e6xxx: add detection helper

2016-06-20 Thread Vivien Didelot
Extract the common detection code which assigns the info structure to the chip given the read switch ID. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 64

[PATCH v4 net-next v4 13/14] net: dsa: mv88e6xxx: add port base address to info

2016-06-20 Thread Vivien Didelot
The switch ID is located at address 0x3 of every Port Registers bank. But not all Marvell switches have their Port Registers SMI Addresses starting at 0x10. 88E6060 starts at 0x8 and 88E6390 starts at 0x0. Add this data in the info structure and use it in the detection code. Signed-off-by:

[PATCH v4 net-next v4 08/14] net: dsa: mv88e6xxx: rename smi_mutex to reg_lock

2016-06-20 Thread Vivien Didelot
The chip smi_mutex mutex is used to protect the access to the internal switch registers, not only the Multi-chip Addressing Mode, as commented. Since we will isolate SMI-specific pieces of code, avoid the confusion now by renaming smi_mutex to reg_lock. No functional changes here. Signed-off-by:

Re: [PATCH net-next 0/8] tou: Transports over UDP - part I

2016-06-20 Thread Tom Herbert
On Sun, Jun 19, 2016 at 8:07 PM, David Miller wrote: > From: Tom Herbert > Date: Fri, 17 Jun 2016 20:52:55 -0700 > >> For instance, TFO was put in the Linux several years ago, but it >> still hasn't been enabled in Android and only fairly recently >>

Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Richard Cochran
On Mon, Jun 20, 2016 at 02:31:48PM +0200, Richard Cochran wrote: > Where is this "audio_time" program of which you speak? Never mind, found it in alsa-lib. I still would appreciate an answer to my other questions, though... Thanks, Richard

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

2016-06-20 Thread Netanel Belgazal
On 06/20/2016 08:20 AM, Rosen, Rami wrote: > Hi all, > > A very limited review below. > > + > + /* get capabilities of particular feature */ > + ENA_ADMIN_GET_FEATURE = 8, > > Instead /* get capabilities SHOULD BE: /* set capabilities . > + > + /* get capabilities of

[PATCH v4 net-next v4 05/14] net: dsa: mv88e6xxx: add switch register helpers

2016-06-20 Thread Vivien Didelot
The mixed assignments, allocations and registrations in the probe code make it hard to follow the logic and figure out what is DSA or chip specific. Extract the struct dsa_switch related code in a simple mv88e6xxx_register_switch helper function. For symmetry in the code, add a

[PATCH v4 net-next v4 04/14] net: dsa: mv88e6xxx: do not increment bus refcount

2016-06-20 Thread Vivien Didelot
The MDIO device probe and remove functions are respectively incrementing and decrementing the bus refcount themselves. Since these bus level actions are out of the device scope, remove them. Signed-off-by: Vivien Didelot Acked-by: Andrew Lunn

[PATCH v4 net-next v4 03/14] net: dsa: mv88e6xxx: use already declared variables

2016-06-20 Thread Vivien Didelot
In the MDIO probing function, dev is already assigned to >dev and np is already assigned to mdiodev->dev.of_node, so use them. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 6 +++--- 1 file changed,

[PATCH v4 net-next v4 01/14] net: dsa: mv88e6xxx: fix style issues

2016-06-20 Thread Vivien Didelot
This patch fixes 5 style problems reported by checkpatch: WARNING: suspect code indent for conditional statements (8, 24) #492: FILE: drivers/net/dsa/mv88e6xxx.c:492: + if (phydev->link) + reg |= PORT_PCS_CTRL_LINK_UP; CHECK: Logical continuations should

[PATCH v4 net-next v4 07/14] net: dsa: mv88e6xxx: remove table args in info lookup

2016-06-20 Thread Vivien Didelot
The mv88e6xxx_table array and the mv88e6xxx_lookup_info function are static, so remove the table and size arguments from the lookup function. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 16

Re: rcu locking issue in mpls output code?

2016-06-20 Thread David Ahern
On 6/20/16 12:30 AM, Lennert Buytenhek wrote: On Sun, Jun 19, 2016 at 08:19:20PM -0600, David Ahern wrote: diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c index fb31aa8..802956b 100644 --- a/net/mpls/mpls_iptunnel.c +++ b/net/mpls/mpls_iptunnel.c @@ -105,12 +105,15 @@ static

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

2016-06-20 Thread Netanel Belgazal
On 06/17/2016 04:09 AM, Matt Wilson wrote: > On Thu, Jun 16, 2016 at 10:46:23PM +0200, Francois Romieu wrote: >> Netanel Belgazal : >> [...] >> >> Very limited review below. > I'll comment on the documentation (since I edited it heavily) but will > leave some the

Re: rcu locking issue in mpls output code?

2016-06-20 Thread Lennert Buytenhek
On Mon, Jun 20, 2016 at 09:13:36AM -0700, Roopa Prabhu wrote: > diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c > index fb31aa8..802956b 100644 > --- a/net/mpls/mpls_iptunnel.c > +++ b/net/mpls/mpls_iptunnel.c > @@ -105,12 +105,15 @@ static int

[RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-20 Thread Kedareswara rao Appana
This patch adds support for gmii2rgmii converter in the macb driver. The GMII to RGMII IP core provides the Reduced Gigabit Media Independent Interface (RGMII) between Ethernet physical media devices And the Gigabit Ethernet controller. This core can switch dynamically between the Three different

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-20 Thread Leon Romanovsky
On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier) wrote: > > > On 2016/6/17 17:58, Leon Romanovsky wrote: > >On Thu, Jun 16, 2016 at 10:35:16PM +0800, Lijun Ou wrote: > >>This patch mainly added icm support for RoCE. It initializes icm > >>which managers the relative memory blocks for

Re: [PATCH] net:ppp: replace too strict capability restriction on opening /dev/ppp

2016-06-20 Thread Richard Weinberger
Am 20.06.2016 um 07:02 schrieb Andi Kleen: > Shanker Wang writes: > >> This patch removes the check for CAP_NET_ADMIN in the initial namespace >> when opening /dev/open. Instead, CAP_NET_ADMIN is checked in the user >> namespace the net namespace was created so that

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-20 Thread Wei Hu (Xavier)
On 2016/6/20 14:06, Leon Romanovsky wrote: On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier) wrote: On 2016/6/17 17:58, Leon Romanovsky wrote: On Thu, Jun 16, 2016 at 10:35:16PM +0800, Lijun Ou wrote: This patch mainly added icm support for RoCE. It initializes icm which managers

[PATCH 2/3] can: at91_can: RX queue could get stuck at high bus load

2016-06-20 Thread Marc Kleine-Budde
From: Wolfgang Grandegger At high bus load it could happen that "at91_poll()" enters with all RX message boxes filled up. If then at the end the "quota" is exceeded as well, "rx_next" will not be reset to the first RX mailbox and hence the interrupts remain disabled.

[PATCH 3/6] wcn36xx: Split mmio space into explicit regions

2016-06-20 Thread Bjorn Andersson
Split the wcnss mmio space into explicit regions for ccu and dxe and acquire these from the node referenced by the qcom,mmio phandle. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/dxe.c | 26 ---

[PATCH 5/6] wcn36xx: Transition driver to SMD client

2016-06-20 Thread Bjorn Andersson
The wcn36xx wifi driver follows the life cycle of the WLAN_CTRL SMD channel, as such it should be a SMD client. This patch makes this transition, now that we have the necessary frameworks available. Signed-off-by: Bjorn Andersson --- This patch depends on the

[PATCH 4/6] wcn36xx: Correct DXE chip version differentiation

2016-06-20 Thread Bjorn Andersson
The CCU block in WCNSS is configured for appropriate routing of interrupts from the DXE to the application cpu, this is not dependant on the iris version (wcn3660 vs wcn3680), but rather if the SoC has a riva or pronto built in. Signed-off-by: Bjorn Andersson ---

Re: Micrel Phy KSZ8031 clock select setting in dts

2016-06-20 Thread Sascha Hauer
On Sun, Jun 19, 2016 at 09:29:41PM +0200, Oliver Graute wrote: > On 17/06/16, Sergei Shtylyov wrote: > > On 06/17/2016 04:04 PM, Oliver Graute wrote: > > > > >I try to enable a Micrel KSZ8031 in my imx6ul board device tree. But i'am > > >struggeling with the setting for KSZPHY_RMII_REF_CLK_SEL

[PATCH 1/6] wcn36xx: Fold indication payload into message header

2016-06-20 Thread Bjorn Andersson
From: Bjorn Andersson Merge the two allocation instead of separately allocating room for the indication payload. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson ---

Re: [RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-20 Thread Joe Perches
On Mon, 2016-06-20 at 10:57 +0530, Kedareswara rao Appana wrote: > This patch adds support for gmii2rgmii converter > in the macb driver. [] > diff --git a/drivers/net/ethernet/cadence/macb.c > b/drivers/net/ethernet/cadence/macb.c [] > @@ -376,6 +389,20 @@ static int macb_mii_probe(struct

RE: [RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-20 Thread Appana Durga Kedareswara Rao
Hi Florian, Thanks for the quick response... > > On June 19, 2016 10:27:17 PM MST, Kedareswara rao Appana > wrote: > >This patch adds support for gmii2rgmii converter in the macb driver. > > > >The GMII to RGMII IP core provides the > >Reduced Gigabit Media

[PATCH 2/6] wcn36xx: Change indication list lock to spinlock

2016-06-20 Thread Bjorn Andersson
From: Bjorn Andersson In preparation for handling incoming messages from IRQ context, change the indication list lock to a spinlock Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson ---

[PATCH 6/6] wcn36xx: Fix up wcn36xx_smd_update_scan_params()

2016-06-20 Thread Bjorn Andersson
Fix up the wcn36xx_smd_update_scan_params() to work with non-ancient versions of the firmware and support actually specifying the list of channels. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/hal.h | 4 ++--

Re: rcu locking issue in mpls output code?

2016-06-20 Thread Lennert Buytenhek
On Sun, Jun 19, 2016 at 08:19:20PM -0600, David Ahern wrote: > > diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c > > index fb31aa8..802956b 100644 > > --- a/net/mpls/mpls_iptunnel.c > > +++ b/net/mpls/mpls_iptunnel.c > > @@ -105,12 +105,15 @@ static int mpls_output(struct net

Re: [patch net-next] net: hns: add skb_reset_mac_header() after skb being alloc

2016-06-20 Thread Yisen Zhuang
在 2016/6/15 18:30, Yisen Zhuang 写道: > Hi David, > > Thanks for your suggestions. > > Please see my comments below. > > Thanks, > > Yisen > > 在 2016/6/15 13:41, David Miller 写道: >> From: Yisen Zhuang >> Date: Mon, 13 Jun 2016 20:41:22 +0800 >> >>> From: Kejian Yan

Re: [RESEND PATCH v9 00/22] Add HiSilicon RoCE driver

2016-06-20 Thread oulijun
On 2016/6/8 19:55, Doug Ledford wrote: > On 6/8/2016 2:44 AM, Lijun Ou wrote: >> The HiSilicon Network Substem is a long term evolution IP which is >> supposed to be used in HiSilicon ICT SoCs. HNS (HiSilicon Network >> Sybsystem) also has a hardware support of performing RDMA with >> RoCEE. >>

pull-request: can 2016-06-20

2016-06-20 Thread Marc Kleine-Budde
branch 'qed-fixes' (2016-06-19 10:47:33 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can.git tags/linux-can-fixes-for-4.7-20160620 for you to fetch changes up to f155d9c0a138463c3c9380d35e54e433c1477336: can: gs_usb: Add Basic

[PATCH 3/3] can: gs_usb: Add Basic support for the bytewerk.org candleLight interface

2016-06-20 Thread Marc Kleine-Budde
From: Maximilian Schneider This patchs adds basic support for the bytewerk.org candleLight interface, a open hardware (CERN OHL) USB CAN adapter. Signed-off-by: Hubert Denkmair Signed-off-by: Maximilian Schneider

[PATCH 1/3] can: c_can: Update D_CAN TX and RX functions to 32 bit - fix Altera Cyclone access

2016-06-20 Thread Marc Kleine-Budde
From: Thor Thayer When testing CAN write floods on Altera's CycloneV, the first 2 bytes are sometimes 0x00, 0x00 or corrupted instead of the values sent. Also observed bytes 4 & 5 were corrupted in some cases. The D_CAN Data registers are 32 bits and changing from

[PATCH v4 16/19] netlabel: Pass a family parameter to netlbl_skbuff_err().

2016-06-20 Thread Huw Davies
This makes it possible to route the error to the appropriate labelling engine. CALIPSO is far less verbose than CIPSO when encountering a bogus packet, so there is no need for a CALIPSO error handler. Signed-off-by: Huw Davies --- include/net/netlabel.h | 2

[PATCH v4 18/19] calipso: Add a label cache.

2016-06-20 Thread Huw Davies
This works in exactly the same way as the CIPSO label cache. The idea is to allow the lsm to cache the result of a secattr lookup so that it doesn't need to perform the lookup for every skbuff. It introduces two sysctl controls: calipso_cache_enable - enables/disables the cache.

[PATCH v4 17/19] calipso: Add validation of CALIPSO option.

2016-06-20 Thread Huw Davies
Lengths, checksum and the DOI are checked. Checking of the level and categories are left for the socket layer. CRC validation is performed in the calipso module to avoid unconditionally linking crc_ccitt() into ipv6. Signed-off-by: Huw Davies --- include/net/calipso.h |

[PATCH v4 08/19] ipv6: Add ipv6_renew_options_kern() that accepts a kernel mem pointer.

2016-06-20 Thread Huw Davies
The functionality is equivalent to ipv6_renew_options() except that the newopt pointer is in kernel, not user, memory The kernel memory implementation will be used by the CALIPSO network labelling engine, which needs to be able to set IPv6 hop-by-hop options. Signed-off-by: Huw Davies

[PATCH v4 02/19] netlabel: Add an address family to domain hash entries.

2016-06-20 Thread Huw Davies
The reason is to allow different labelling protocols for different address families with the same domain. This requires the addition of an address family attribute in the netlink communication protocol. It is used in several messages: NLBL_MGMT_C_ADD and NLBL_MGMT_C_ADDDEF take it as an

[PATCH v4 14/19] ipv6: constify the skb pointer of ipv6_find_tlv().

2016-06-20 Thread Huw Davies
Signed-off-by: Huw Davies --- include/net/ipv6.h | 2 +- net/ipv6/exthdrs_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 22c7a37..3e59785 100644 --- a/include/net/ipv6.h +++

[PATCH v4 06/19] netlabel: Add support for creating a CALIPSO protocol domain mapping.

2016-06-20 Thread Huw Davies
This extends the NLBL_MGMT_C_ADD and NLBL_MGMT_C_ADDDEF commands to accept CALIPSO protocol DOIs. Signed-off-by: Huw Davies --- net/netlabel/netlabel_domainhash.c | 43 +++--- net/netlabel/netlabel_domainhash.h | 1 +

[PATCH v4 04/19] netlabel: Add support for querying a CALIPSO DOI.

2016-06-20 Thread Huw Davies
Query a specified DOI through the NLBL_CALIPSO_C_LIST command. It requires the attribute: NLBL_CALIPSO_A_DOI. The reply will contain: NLBL_CALIPSO_A_MTYPE Signed-off-by: Huw Davies --- include/net/netlabel.h | 4 ++ net/ipv6/calipso.c | 68

[PATCH v4 01/19] netlabel: Mark rcu pointers with __rcu.

2016-06-20 Thread Huw Davies
This fixes sparse errors of the form: incompatible types in comparison expression (different address spaces) Signed-off-by: Huw Davies --- net/netlabel/netlabel_domainhash.c | 4 ++-- net/netlabel/netlabel_unlabeled.c | 4 ++-- 2 files changed, 4 insertions(+), 4

[PATCH v4 10/19] calipso: Set the calipso socket label to match the secattr.

2016-06-20 Thread Huw Davies
CALIPSO is a hop-by-hop IPv6 option. A lot of this patch is based on the equivalent CISPO code. The main difference is due to manipulating the options in the hop-by-hop header. Signed-off-by: Huw Davies --- include/net/ipv6.h | 2 + include/net/netlabel.h

[net-next,v4] openvswitch: Add packet len info to upcall.

2016-06-20 Thread William Tu
The commit f2a4d086ed4c ("openvswitch: Add packet truncation support.") introduces packet truncation before sending to userspace upcall receiver. This patch passes up the skb->len before truncation so that the upcall receiver knows the original packet size. Potentially this will be used by sFlow,

[PATCH v4 19/19] netlabel: Implement CALIPSO config functions for SMACK.

2016-06-20 Thread Huw Davies
SMACK uses similar functions to control CIPSO, these are the equivalent functions for CALIPSO and follow exactly the same semantics. int netlbl_cfg_calipso_add(struct calipso_doi *doi_def, struct netlbl_audit *audit_info) Adds a CALIPSO doi. void

[PATCH v4 00/19] CALIPSO Implementation

2016-06-20 Thread Huw Davies
This patch series implements RFC 5570 - Common Architecture Label IPv6 Security Option (CALIPSO). Its goal is to set MLS sensitivity labels on IPv6 packets using a hop-by-hop option. CALIPSO is very similar to its IPv4 cousin CIPSO and much of this series is based on that code. To use this

[PATCH v4 11/19] netlabel: Prevent setsockopt() from changing the hop-by-hop option.

2016-06-20 Thread Huw Davies
If a socket has a netlabel in place then don't let setsockopt() alter the socket's IPv6 hop-by-hop option. This is in the same spirit as the existing check for IPv4. Signed-off-by: Huw Davies --- security/selinux/netlabel.c | 17 - 1 file changed, 16

[PATCH v4 05/19] netlabel: Add support for enumerating the CALIPSO DOI list.

2016-06-20 Thread Huw Davies
Enumerate the DOI list through the NLBL_CALIPSO_C_LISTALL command. It takes no attributes. Signed-off-by: Huw Davies --- include/net/netlabel.h | 4 ++ net/ipv6/calipso.c | 41 net/netlabel/netlabel_calipso.c | 106

[PATCH v4 15/19] calipso: Allow the lsm to label the skbuff directly.

2016-06-20 Thread Huw Davies
In some cases, the lsm needs to add the label to the skbuff directly. A NF_INET_LOCAL_OUT IPv6 hook is added to selinux to match the IPv4 behaviour. This allows selinux to label the skbuffs that it requires. Signed-off-by: Huw Davies --- include/net/netlabel.h |

[PATCH v4 13/19] calipso: Allow request sockets to be relabelled by the lsm.

2016-06-20 Thread Huw Davies
Request sockets need to have a label that takes into account the incoming connection as well as their parent's label. This is used for the outgoing SYN-ACK and for their child full-socket. Signed-off-by: Huw Davies --- include/net/netlabel.h | 6 +++

[PATCH v4 07/19] netlabel: Add support for removing a CALIPSO DOI.

2016-06-20 Thread Huw Davies
Remove a specified DOI through the NLBL_CALIPSO_C_REMOVE command. It requires the attribute: NLBL_CALIPSO_A_DOI. Signed-off-by: Huw Davies --- include/net/netlabel.h | 1 + net/ipv6/calipso.c | 48 +

[PATCH v4 09/19] netlabel: Move bitmap manipulation functions to the NetLabel core.

2016-06-20 Thread Huw Davies
This is to allow the CALIPSO labelling engine to use these. Signed-off-by: Huw Davies --- include/net/netlabel.h | 6 +++ net/ipv4/cipso_ipv4.c| 88 +--- net/netlabel/netlabel_kapi.c | 70

[PATCH net 1/1] tipc: unclone unbundled buffers before forwarding

2016-06-20 Thread Jon Maloy
When extracting an individual message from a received "bundle" buffer, we just create a clone of the base buffer, and adjust it to point into the right position of the linearized data area of the latter. This works well for regular message reception, but during periods of extremely high load it

[PATCH v4 12/19] ipv6: Allow request socks to contain IPv6 options.

2016-06-20 Thread Huw Davies
If set, these will take precedence over the parent's options during both sending and child creation. If they're not set, the parent's options (if any) will be used. This is to allow the security_inet_conn_request() hook to modify the IPv6 options in just the same way that it already may do for

Re: esp: Fix ESN generation under UDP encapsulation

2016-06-20 Thread Steffen Klassert
On Sat, Jun 18, 2016 at 01:03:36PM +0800, Herbert Xu wrote: > On Fri, Jun 17, 2016 at 12:24:29PM +0200, Steffen Klassert wrote: > > On Wed, Jun 15, 2016 at 12:44:54AM +, Blair Steven wrote: > > > The restoration is happening - but being actioned on the wrong location. > > > > > > The

Re: [patch net-next v4 0/4] return offloaded stats as default and expose original sw stats

2016-06-20 Thread Jamal Hadi Salim
On 16-06-19 11:14 PM, Roopa Prabhu wrote: On Fri, Jun 17, 2016 at 10:12 AM, Florian Fainelli wrote: I have also mentioned this before, the default api must provide accumulated (hw and sw) stats..., because this is the api that the user queries on an interface. Sorry

Re: Micrel Phy KSZ8031 clock select setting in dts

2016-06-20 Thread Oliver Graute
On 20/06/16, Sascha Hauer wrote: > On Sun, Jun 19, 2016 at 09:29:41PM +0200, Oliver Graute wrote: > > On 17/06/16, Sergei Shtylyov wrote: > > > On 06/17/2016 04:04 PM, Oliver Graute wrote: > > > > > > >I try to enable a Micrel KSZ8031 in my imx6ul board device tree. But i'am > > > >struggeling

Re: [patch net-next v4 0/4] return offloaded stats as default and expose original sw stats

2016-06-20 Thread Jiri Pirko
Mon, Jun 20, 2016 at 02:28:31PM CEST, j...@mojatatu.com wrote: >On 16-06-19 11:14 PM, Roopa Prabhu wrote: >>On Fri, Jun 17, 2016 at 10:12 AM, Florian Fainelli >>wrote: > > >> >>I have also mentioned this before, the default api must provide >>accumulated (hw and sw)

Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Pierre-Louis Bossart
Presentation time is either set by a) Local sound card performing capture (in which case it will be 'capture time') b) Local media application sending a stream accross the network (time when the sample should be played out remotely) c) Remote media application streaming data *to* host, in

Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Richard Cochran
On Mon, Jun 20, 2016 at 02:18:38PM +0200, Richard Cochran wrote: > Documentation/sound/alsa/timestamping.txt says: Examples of typestamping with HDaudio: 1. DMA timestamp, no compensation for DMA+analog delay $ ./audio_time -p --ts_type=1 Where is this "audio_time" program of which

[PATCH 0/3] *** Mesh Path Selection Metric Calculation ***

2016-06-20 Thread Maxim Altshul
Hi All, This patch series focuses on metric calculation that occurs during the path selection phase of a mesh network. During the path selection phase, the mesh hwmp module performs metric calculations, that take as parameters the last TX rate that was used for a specific link, and the packet

Re: [PATCH v10 06/22] IB/hns: Add initial cmd operation

2016-06-20 Thread Leon Romanovsky
On Thu, Jun 16, 2016 at 10:35:14PM +0800, Lijun Ou wrote: > This patch added the operation for cmd, and added some functions > for initializing eq table and selecting cmd mode. > > Signed-off-by: Wei Hu > Signed-off-by: Nenglong Zhao >

[PATCH 2/3] wlcore: Add support for get_expected_throughput opcode

2016-06-20 Thread Maxim Altshul
Adding this opcode, allows the TI wireless driver, to report throughput directly from FW to mac80211. This is used mainly for mesh metric calculation. Signed-off-by: Maxim Altshul --- drivers/net/wireless/ti/wlcore/main.c | 15 +++ 1 file changed, 15

[PATCH 3/3] mac80211: mesh: Add support for HW RC implementation

2016-06-20 Thread Maxim Altshul
Mesh HWMP module will be able to rely on the HW RC algorithm if it exists, for path metric calculations. This allows the metric calculation mechanism to calculate a correct metric, based on PER and last TX rate both via HW RC algorithm if it exists or via parameters collected by the SW.

[PATCH 1/3] wlcore/wl18xx: Add functionality to accept TX rate per link

2016-06-20 Thread Maxim Altshul
FW will provide a TX rate per link for each FW status, and wlcore will be able to store the information for the use of the mesh hwmp module. This is used mainly in mesh. Rates are reported when a mesh interface is up. Signed-off-by: Maxim Altshul ---

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-20 Thread Leon Romanovsky
On Mon, Jun 20, 2016 at 05:48:15PM +0800, Wei Hu (Xavier) wrote: > > > On 2016/6/20 17:27, Leon Romanovsky wrote: > >On Mon, Jun 20, 2016 at 03:49:24PM +0800, Wei Hu (Xavier) wrote: > >> > >>On 2016/6/20 14:06, Leon Romanovsky wrote: > >>>On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier)

Re: Micrel Phy KSZ8031 clock select setting in dts

2016-06-20 Thread Sascha Hauer
On Mon, Jun 20, 2016 at 03:56:10PM +0300, Sergei Shtylyov wrote: > Hello. > > On 6/20/2016 3:08 PM, Oliver Graute wrote: > > >thx you both for confirming that. Can you tell me also if the clock > >statement s fine in my dts? > > > > { > > pinctrl-names = "default"; > > pinctrl-0 =

Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Henrik Austad
On Mon, Jun 20, 2016 at 01:08:27PM +0200, Pierre-Louis Bossart wrote: > > >Presentation time is either set by > >a) Local sound card performing capture (in which case it will be 'capture > > time') > >b) Local media application sending a stream accross the network > > (time when the sample

Re: [PATCH] mpls: Add missing RCU-bh read side critical section locking in output path

2016-06-20 Thread David Ahern
On 6/20/16 12:05 PM, Lennert Buytenhek wrote: From: David Barroso When locally originated IP traffic hits a route that says to push MPLS labels, we'll get a call chain dst_output() -> lwtunnel_output() -> mpls_output() -> neigh_xmit() -> ___neigh_lookup_noref() where the

[PATCH v5 net-next v5 05/14] net: dsa: mv88e6xxx: add switch register helpers

2016-06-20 Thread Vivien Didelot
The mixed assignments, allocations and registrations in the probe code make it hard to follow the logic and figure out what is DSA or chip specific. Extract the struct dsa_switch related code in a simple mv88e6xxx_register_switch helper function. For symmetry in the code, add a

[PATCH v5 net-next v5 13/14] net: dsa: mv88e6xxx: add port base address to info

2016-06-20 Thread Vivien Didelot
The switch ID is located at address 0x3 of every Port Registers bank. But not all Marvell switches have their Port Registers SMI Addresses starting at 0x10. 88E6060 starts at 0x8 and 88E6390 starts at 0x0. Add this data in the info structure and use it in the detection code. Signed-off-by:

[PATCH v5 net-next v5 11/14] net: dsa: mv88e6xxx: add detection helper

2016-06-20 Thread Vivien Didelot
Extract the common detection code which assigns the info structure to the chip given the read switch ID. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 64

[PATCH v5 net-next v5 09/14] net: dsa: mv88e6xxx: add chip allocation helper

2016-06-20 Thread Vivien Didelot
Add an helper function to allocate the chip structure at the beginning of the probe functions. It will be used to initialize the SMI access. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 39

[PATCH v5 net-next v5 14/14] net: dsa: mv88e6xxx: abstract switch registers accesses

2016-06-20 Thread Vivien Didelot
When the SMI address of the switch chip is zero, the chip assumes to be the only one on the SMI master bus and thus responds to all its known SMI devices addresses (port registers, Global2, etc.) When its SMI address is not zero, some chips (e.g. 88E6352) use an indirect access through two SMI

Re: Micrel Phy KSZ8031 clock select setting in dts

2016-06-20 Thread Oliver Graute
On 20/06/16, Andrew Lunn wrote: > > { > > pinctrl-names = "default"; > > pinctrl-0 = <_enet1>; > > phy-mode = "rmii"; > > micrel,rmii-reference-clock-select-25-mhz; > > clocks,rmii-ref; > > You are adding phy properties, not MAC properties. Please put them in > the phy node.

Re: [PATCH] [v5] net: emac: emac gigabit ethernet controller driver

2016-06-20 Thread Shanker Donthineni
Timur, I think, the device driver is responsible for setting the right DMA_MASK based on the underlying hardware capability if your driver wants to support 64bit DMA. Example code in drivers/usb/host/xhci.c: /* Set dma_mask and coherent_dma_mask to 64-bits, * if xHC

Re: [PATCH] [v5] net: emac: emac gigabit ethernet controller driver

2016-06-20 Thread Timur Tabi
Shanker Donthineni wrote: /* Set dma_mask and coherent_dma_mask to 64-bits, * if xHC supports 64-bit addressing */ if (HCC_64BIT_ADDR(xhci->hcc_params) && !dma_set_mask(dev, DMA_BIT_MASK(64))) { xhci_dbg(xhci, "Enabling 64-bit

[PATCH] mpls: Add missing RCU-bh read side critical section locking in output path

2016-06-20 Thread Lennert Buytenhek
From: David Barroso When locally originated IP traffic hits a route that says to push MPLS labels, we'll get a call chain dst_output() -> lwtunnel_output() -> mpls_output() -> neigh_xmit() -> ___neigh_lookup_noref() where the last function in this chain accesses a RCU-bh

Re: [PATCH v4 net-next v4 14/14] net: dsa: mv88e6xxx: abstract switch registers accesses

2016-06-20 Thread Andrew Lunn
On Mon, Jun 20, 2016 at 12:03:37PM -0400, Vivien Didelot wrote: > When the SMI address of the switch chip is zero, the chip assumes to be > the only one on the SMI master bus and thus responds to all its known > SMI devices addresses (port registers, Global2, etc.) > > When its SMI address is not

[PATCH v5 net-next v5 10/14] net: dsa: mv88e6xxx: add SMI init helper

2016-06-20 Thread Vivien Didelot
Add an helper function to isolate SMI specific assignments and checks. This function will later help choosing the different SMI accesses based of the compatible info. Since the chip structure is already allocated in the legacy probe, use the mv88e6xxx_reg_read access routine instead of

[PATCH v5 net-next v5 07/14] net: dsa: mv88e6xxx: remove table args in info lookup

2016-06-20 Thread Vivien Didelot
The mv88e6xxx_table array and the mv88e6xxx_lookup_info function are static, so remove the table and size arguments from the lookup function. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 16

  1   2   3   >