[PATCH net] macsec: fix validation failed in asynchronous operation.

2017-01-19 Thread Ryder Lee
Add missing "macsec_skb_cb(skb)->valid = true" in callback function macsec_decrypt_done(), this fixes packet validation failed while decrypting asynchronously. Signed-off-by: Ryder Lee --- drivers/net/macsec.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net] r8152: fix rtl8152_post_reset function

2017-01-19 Thread Hayes Wang
The rtl8152_post_reset() should sumbit rx urb and interrupt transfer, otherwise the rx wouldn't work and the linking change couldn't be detected. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

ipv6_get_ifaddr() not exported

2017-01-19 Thread Valentine Sinitsyn
Hi all, I'm working on a custom Netfilter module which could seemingly use ipv6_get_ifaddr() function to find a netdev which has a destination IPv6 assigned (if any). The function is public, but not exported, so I can't use it in my module. Am I doing anything wrong, or I'm just a first

[PATCH net] virtio-net: restore VIRTIO_HDR_F_DATA_VALID on receiving

2017-01-19 Thread Jason Wang
Commit 501db511397f ("virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit") in fact disables VIRTIO_HDR_F_DATA_VALID on receiving path too, fixing this by adding a hint (has_data_valid) and set it only on the receiving path. Cc: Rolf Neugebauer Signed-off-by: Jason

RE: [PATCH net] r8152: fix the rx doesn't work

2017-01-19 Thread Hayes Wang
> Subject: [PATCH net] r8152: fix the rx doesn't work > > The rtl8152_post_reset() doesn't submit the rx urb, so the rx wouldn't work. > > Signed-off-by: Hayes Wang Excuse me. Please ignore this patch. I would submit another one.

Re: [PATCH net 1/1] net sched actions: fix refcnt when GETing of action after bind

2017-01-19 Thread Cong Wang
On Wed, Jan 18, 2017 at 3:33 AM, Jamal Hadi Salim wrote: > On 17-01-17 01:17 PM, Cong Wang wrote: >> >> Why this check for RTM_GETACTION? It does not make sense >> at least for the error case, that is, when tcf_action_get_1() fails >> in the middle of the loop, all the previous

[PATCH net-next v2 0/2] net: ipv6: Improve user experience with multipath routes

2017-01-19 Thread David Ahern
This series closes a couple of gaps between IPv4 and IPv6 with respect to multipath routes: 1. IPv4 allows all nexthops of multipath routes to be deleted using just the prefix and length; IPv6 only deletes the first nexthop for the route if only the prefix and length are given. 2. IPv4

[PATCH net-next v2 1/2] net: ipv6: Allow shorthand delete of all nexthops in multipath route

2017-01-19 Thread David Ahern
IPv4 allows multipath routes to be deleted using just the prefix and length. For example: $ ip ro ls vrf red unreachable default metric 8192 1.1.1.0/24 nexthop via 10.100.1.254 dev eth1 weight 1 nexthop via 10.11.200.2 dev eth11.200 weight 1 10.11.200.0/24 dev

[PATCH net-next v2 2/2] net: ipv6: Add option to dump multipath routes via RTA_MULTIPATH attribute

2017-01-19 Thread David Ahern
IPv6 returns multipath routes as a series of individual routes making their display and handling by userspace different and more complicated than IPv4, putting the burden on the user to see that a route is part of a multipath route and internally creating a multipath route if desired (e.g., libnl

[PATCH net] r8152: fix the rx doesn't work

2017-01-19 Thread Hayes Wang
The rtl8152_post_reset() doesn't submit the rx urb, so the rx wouldn't work. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index f3b48ad..e8f4f88 100644 ---

Re: fs, net: deadlock between bind/splice on af_unix

2017-01-19 Thread Cong Wang
On Wed, Jan 18, 2017 at 1:17 AM, Dmitry Vyukov wrote: > On Tue, Jan 17, 2017 at 10:21 PM, Cong Wang wrote: >> On Mon, Jan 16, 2017 at 1:32 AM, Dmitry Vyukov wrote: >>> On Fri, Dec 9, 2016 at 7:41 AM, Al Viro

Re: [PATCH net-next] net: ipv6: Keep nexthop of multipath route on admin down

2017-01-19 Thread David Miller
From: David Ahern Date: Wed, 18 Jan 2017 07:40:36 -0800 > IPv6 deletes route entries associated with multipath routes on an > admin down where IPv4 does not. For example: ... > Signed-off-by: David Ahern Seems reasonable, applied, thanks

Re: [PATCH net-next] mlx4: support __GFP_MEMALLOC for rx

2017-01-19 Thread David Miller
From: Eric Dumazet Date: Tue, 17 Jan 2017 20:14:10 -0800 > From: Eric Dumazet > > Commit 04aeb56a1732 ("net/mlx4_en: allocate non 0-order pages for RX > ring with __GFP_NOMEMALLOC") added code that appears to be not needed at > that time, since mlx4

Re: [PATCH] Revert "net: qcom/emac: configure the external phy to allow pause frames"

2017-01-19 Thread David Miller
From: Timur Tabi Date: Tue, 17 Jan 2017 16:31:19 -0600 > This reverts commit 3e884493448131179a5b7cae1ddca1028ffaecc8. > > With commit 529ed1275263 ("net: phy: phy drivers should not set > SUPPORTED_[Asym_]Pause"), phylib now handles automatically enabling > pause frame

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2017-01-19 Thread Andy Lutomirski
On Thu, Jan 19, 2017 at 6:39 PM, Alexei Starovoitov wrote: > On Wed, Jan 18, 2017 at 06:29:22PM -0800, Andy Lutomirski wrote: >> I think it could work by making a single socket cgroup controller that >> handles all cgroup things that are bound to a socket. Using > >

Re: Setting skb->csum in shared skb with csum-complete

2017-01-19 Thread Tom Herbert
On Thu, Jan 19, 2017 at 6:00 PM, Eric Dumazet wrote: > On Thu, 2017-01-19 at 17:29 -0800, Tom Herbert wrote: >> Hi Herbert, >> >> I am looking at "net: Fix skb csum races when peeking". The context is >> that I'm seeing checksum faults after backporting mlx5 from driver.

Re: [PATCH RFC net-next 2/7] net: add dst_pending_confirm flag to skbuff

2017-01-19 Thread YueHaibing
On 2016/12/20 4:37, Julian Anastasov wrote: > > Hello, > > On Mon, 19 Dec 2016, Eric Dumazet wrote: > >> I am still digesting this awesome patch series ;) > > Thanks. I don't feel quite comfortable with some > of the changes (mostly XFRM, dst_confirm usage in CXGB) and > I hope

Re: [net PATCH v5 6/6] virtio_net: XDP support for adjust_head

2017-01-19 Thread John Fastabend
On 17-01-19 07:26 PM, Jason Wang wrote: > > > On 2017年01月20日 05:11, Michael S. Tsirkin wrote: >> On Thu, Jan 19, 2017 at 11:05:40AM +0800, Jason Wang wrote: >>> >>> On 2017年01月18日 23:15, Michael S. Tsirkin wrote: On Tue, Jan 17, 2017 at 02:22:59PM -0800, John Fastabend wrote: > Add

Re: [net PATCH v5 6/6] virtio_net: XDP support for adjust_head

2017-01-19 Thread John Fastabend
On 17-01-19 01:11 PM, Michael S. Tsirkin wrote: > On Thu, Jan 19, 2017 at 11:05:40AM +0800, Jason Wang wrote: >> >> >> On 2017年01月18日 23:15, Michael S. Tsirkin wrote: >>> On Tue, Jan 17, 2017 at 02:22:59PM -0800, John Fastabend wrote: Add support for XDP adjust head by allocating a 256B

Re: [PATCH] virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit

2017-01-19 Thread Jason Wang
On 2017年01月20日 06:30, Michael S. Tsirkin wrote: On Thu, Jan 19, 2017 at 11:06:59AM +0800, Jason Wang wrote: On 2017年01月18日 23:18, Michael S. Tsirkin wrote: On Wed, Jan 18, 2017 at 11:54:21AM +0800, Jason Wang wrote: On 2017年01月18日 02:27, Michael S. Tsirkin wrote: On Tue, Jan 17, 2017 at

Re: [PATCH v2 0/2] net: dsa: Move temperature sensor code into PHY.

2017-01-19 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > Sorry, i forget the net-next in the subject line. Maybe use this opportunity to resend this thread with the good subject prefix and the people involved in v1? Thanks, Vivien

Re: [net PATCH v5 6/6] virtio_net: XDP support for adjust_head

2017-01-19 Thread Jason Wang
On 2017年01月20日 05:11, Michael S. Tsirkin wrote: On Thu, Jan 19, 2017 at 11:05:40AM +0800, Jason Wang wrote: On 2017年01月18日 23:15, Michael S. Tsirkin wrote: On Tue, Jan 17, 2017 at 02:22:59PM -0800, John Fastabend wrote: Add support for XDP adjust head by allocating a 256B header region

Re: [PATCH] rtlwifi: rtl8192x: Enabling and disabling hardware interrupts after enabling local irq flags

2017-01-19 Thread Larry Finger
On 01/19/2017 04:14 AM, Bharat Kumar Gogada wrote: -Realtek 8192CE chipset maintains local irq flags after enabling/disabling hardware interrupts. -Hardware interrupts are enabled before enabling the local irq flags(these flags are being checked in interrupt handler), leading to race condition

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2017-01-19 Thread Alexei Starovoitov
On Wed, Jan 18, 2017 at 06:29:22PM -0800, Andy Lutomirski wrote: > I think it could work by making a single socket cgroup controller that > handles all cgroup things that are bound to a socket. Using Such 'socket cgroup controller' would limit usability of the feature to sockets and force all

Re: [PATCH 2/2] at803x: double check SGMII side autoneg

2017-01-19 Thread Timur Tabi
Zefir Kurtisi wrote: It always operates at 675MHz, which with two lines gives 1.25Gbps, which at 10/8 coding gives exactly 1Gbps net data rate. If the at803x's copper side autonegotiates to 1Gbps, the bits traversing over the SGMII match the copper side 1:1. In case the copper side

Re: Setting skb->csum in shared skb with csum-complete

2017-01-19 Thread Eric Dumazet
On Thu, 2017-01-19 at 17:29 -0800, Tom Herbert wrote: > Hi Herbert, > > I am looking at "net: Fix skb csum races when peeking". The context is > that I'm seeing checksum faults after backporting mlx5 from driver. > The handling of the checksum faults in interesting in itself. One side > effect is

Re: [PATCH v5 2/2] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-19 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> Maybe I missed it, Andrew, can you confirm that 6341 is a proper Marvell >> family of switch chips? > > My understand is that it is. Marvell have not added it to DSDT. There > is a new SDK called UMSD, also GPLv2 and BSD. They call this family >

Re: [PATCH v5 1/2] net: dsa: mv88e6xxx: Don't forbid MDIO I/Os for PHY addr >= num_of_ports

2017-01-19 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> Isn't there an hardware table used to map the PHY addresses on such chip? > > The 6390 has something like this. But if we can avoid it, lets keep it > KISS. I definitely agree. I was just curious about this new chip. Thanks, Vivien

Setting skb->csum in shared skb with csum-complete

2017-01-19 Thread Tom Herbert
Hi Herbert, I am looking at "net: Fix skb csum races when peeking". The context is that I'm seeing checksum faults after backporting mlx5 from driver. The handling of the checksum faults in interesting in itself. One side effect is that we end up recalculating and doing the dump twice when GRO is

Re: [PATCH v3 net-next 1/2] net/ipv6: allow sysctl to change link-local address generation mode

2017-01-19 Thread Stephen Hemminger
On Fri, 20 Jan 2017 11:46:19 +1300 Felix Jia wrote: > diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h > index 0fa4c324b713..48e2a34a6ed3 100644 > --- a/include/net/if_inet6.h > +++ b/include/net/if_inet6.h > @@ -1,9 +1,9 @@ > /* > * inet6

Re: [PATCH v2 0/2] net: dsa: Move temperature sensor code into PHY.

2017-01-19 Thread Andrew Lunn
Hi Dave Sorry, i forget the net-next in the subject line. Andrew

[PATCH net] net: mpls: Fix multipath selection for LSR use case

2017-01-19 Thread David Ahern
MPLS multipath for LSR is broken -- always selecting the first nexthop in the one label case. For example: $ ip netns exec ns1 ip -f mpls ro ls 100 nexthop as to 200 via inet 172.16.2.2 dev virt12 nexthop as to 300 via inet 172.16.3.2 dev virt13 101

Re: [PATCH v5 2/2] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-19 Thread Andrew Lunn
On Thu, Jan 19, 2017 at 05:26:03PM -0500, Vivien Didelot wrote: > Gregory CLEMENT writes: > > > +static bool mv88e6xxx_6341_family(struct mv88e6xxx_chip *chip) > > +{ > > + return chip->info->family == MV88E6XXX_FAMILY_6341; > > +} > > I don't want to see

[PATCH v2 2/2] net: dsa: Remove hwmon support

2017-01-19 Thread Andrew Lunn
Only the Marvell mv88e6xxx DSA driver made use of the HWMON support in DSA. The temperature sensor registers are actually in the embedded PHYs, and the PHY driver now supports it. So remove all HWMON support from DSA and drivers. Signed-off-by: Andrew Lunn ---

[PATCH v2 1/2] phy: marvell: Add support for temperature sensor

2017-01-19 Thread Andrew Lunn
Some Marvell PHYs have an inbuilt temperature sensor. Add hwmon support for this sensor. There are two different variants. The simpler, older chips have a 5 degree accuracy. The newer devices have 1 degree accuracy. Signed-off-by: Andrew Lunn --- v2: Simplify using

[PATCH v2 0/2] net: dsa: Move temperature sensor code into PHY.

2017-01-19 Thread Andrew Lunn
Marvell Ethernet switches contain a temperature sensor. There appears to be one sensor, which is shared by each of the internal PHYs. Each PHY has independent registers to read this sensor, and to set a limit for when an alarm should be raised. Some Marvell discrete PHY also have the same sensor

Re: [PATCH v5 1/2] net: dsa: mv88e6xxx: Don't forbid MDIO I/Os for PHY addr >= num_of_ports

2017-01-19 Thread Andrew Lunn
On Thu, Jan 19, 2017 at 05:13:12PM -0500, Vivien Didelot wrote: > Hi Gregory, > > Gregory CLEMENT writes: > > > From: Romain Perier > > > > Some Marvell ethernet switches have internal ethernet transceivers with > >

[PATCH] inet: don't use sk_v6_rcv_saddr directly

2017-01-19 Thread Josef Bacik
When comparing two sockets we need to use inet6_rcv_saddr so we get a NULL sk_v6_rcv_saddr if the socket isn't AF_INET6, otherwise our comparison function can be wrong. Fixes: 637bc8b ("inet: reset tb->fastreuseport when adding a reuseport sk") Signed-off-by: Josef Bacik ---

Re: [PATCH v3 1/3] NFC: trf7970a: add device tree option for 27MHz clock

2017-01-19 Thread Mark Greer
On Wed, Dec 21, 2016 at 11:18:32PM -0500, Geoff Lansberry wrote: > The TRF7970A has configuration options to support hardware designs > which use a 27.12MHz clock. This commit adds a device tree option > 'clock-frequency' to support configuring the this chip for default > 13.56MHz clock or the

RE: [EXT] Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-19 Thread Jon Pannell
+ Bob + Christine Jon Pannell -Original Message- From: Andrew Lunn [mailto:and...@lunn.ch] Sent: Thursday, January 19, 2017 2:06 PM To: Gregory CLEMENT Cc: Vivien Didelot ; Florian Fainelli

RE: [PATCHv2 3/7] TAP: Tap character device creation/destroy API

2017-01-19 Thread Grandhi, Sainath
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, January 18, 2017 1:27 PM > To: Grandhi, Sainath > Cc: netdev@vger.kernel.org; mah...@bandewar.net; linux- > ker...@vger.kernel.org > Subject: Re: [PATCHv2 3/7] TAP: Tap

RE: [PATCHv2 7/7] IPVTAP: IP-VLAN based tap driver

2017-01-19 Thread Grandhi, Sainath
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, January 18, 2017 1:29 PM > To: Grandhi, Sainath > Cc: netdev@vger.kernel.org; mah...@bandewar.net; linux- > ker...@vger.kernel.org > Subject: Re: [PATCHv2 7/7] IPVTAP:

Re: [PATCH v7 00/13] net: ethernet: aquantia: Add AQtion 2.5/5 GB NIC driver

2017-01-19 Thread Florian Fainelli
On 01/19/2017 02:45 PM, David VomLehn wrote: > On 01/19/2017 02:41 PM, Florian Fainelli wrote: >> On 01/19/2017 01:33 PM, Alexander Loktionov wrote: >>> From: David VomLehn >>> >>> This series introduces the AQtion NIC driver for the aQuantia >>> AQC107/AQC108 network devices.

[PATCH v3 net-next 2/2] net/ipv6: support more tunnel interfaces for EUI64 link-local generation

2017-01-19 Thread Felix Jia
Signed-off-by: Felix Jia --- net/ipv6/addrconf.c | 5 + net/ipv6/ip6_gre.c | 3 +++ net/ipv6/ip6_vti.c | 4 3 files changed, 12 insertions(+) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index e35259dd17ba..4c47656b9f09 100644 ---

[PATCH v3 net-next 1/2] net/ipv6: allow sysctl to change link-local address generation mode

2017-01-19 Thread Felix Jia
The address generation mode for IPv6 link-local can only be configured by netlink messages. This patch adds the ability to change the address generation mode via sysctl. v1 -> v2 Removed the rtnl lock and switch to use RCU lock to iterate through the netdev list. v2 -> v3 Removed the addrgenmode

Re: [PATCH v7 00/13] net: ethernet: aquantia: Add AQtion 2.5/5 GB NIC driver

2017-01-19 Thread David VomLehn
On 01/19/2017 02:41 PM, Florian Fainelli wrote: On 01/19/2017 01:33 PM, Alexander Loktionov wrote: From: David VomLehn This series introduces the AQtion NIC driver for the aQuantia AQC107/AQC108 network devices. v5: o Removed extra newline at the end of the files. v6: o

[pull request][net-next 00/15] Mellanox mlx5 updates 2017-01-19

2017-01-19 Thread Saeed Mahameed
Hi Dave, This pull request includes some small mlx5 updates and two new features, The 1st exposes new HW counters to "ethtool -S" and the other introduces mlx5 ptp 1pps support. Details are down bleow. Please pull and let me know if there's any problem. Thanks, Saeed. --- The following

[net-next 12/15] net/mlx5: Add MPCNT register infrastructure

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman Add the needed infrastructure for future use of MPCNT register. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- include/linux/mlx5/device.h | 4 include/linux/mlx5/driver.h | 1 +

[net-next 03/15] net/mlx5: Add MTPPS and MTPPSE registers infrastructure

2017-01-19 Thread Saeed Mahameed
From: Eugenia Emantayev Implement query and set functionality for MTPPS and MTPPSE registers. MTPPS (Management Pulse Per Second) provides the device PPS capabilities, configures the PPS in and out modules and holds the PPS in time stamp. Query MTPPS is supported only when

[net-next 01/15] net/mlx5: Remove information print after attempt to load mlx5_ib module

2017-01-19 Thread Saeed Mahameed
From: Leon Romanovsky Infiniband part of mlx5 driver can be compiled as a module or as a part of bzImage (compiled in). In the second case, the call to request_module will return an error -ENOENT. It will cause to a misleading print "failed request module on mlx5_ib". This

[net-next 06/15] net/mlx5e: Receive s-tagged packets in promiscuous mode

2017-01-19 Thread Saeed Mahameed
From: Mohamad Haj Yahia Today when the driver enter to promiscuous mode or vlan filter is disabled, we add flow rule to receive any c-taggd packets, therefore s-tagged packets are dropped. In order to receive s-tagged packets as well we need to add flow rule to receive any

[net-next 07/15] net/mlx5: Expose PCAM, MCAM registers infrastructure

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman PCAM: Ports capabilities mask register. MCAM: Management capabilities mask register. PCAM and MCAM registers will provide information regarding firmware support for different features, in order to avoid cases where new driver combined with old firmware

[net-next 15/15] net/mlx5e: Reorder update stats

2017-01-19 Thread Saeed Mahameed
Reorder update stats flow to update most important counters last, to get more accurate results. New update order: - PCIe counters - Port counters - Vport counters - Queue counters - Software counters Signed-off-by: Saeed Mahameed

[net-next 10/15] net/mlx5: Add PPCNT physical layer statistical group infrastructure

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman Add the needed infrastructure for future use of PPCNT physical layer statistical group. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky ---

[net-next 04/15] net/mlx5e: Implement 1PPS support

2017-01-19 Thread Saeed Mahameed
From: Eugenia Emantayev This patch enables the 1PPS IN and 1PPS OUT support according to the advertised HCA capability. Single pin may be configured to one of the above mutual exclusive functions via standard Linux tools and APIs. For example, testptp open source

[net-next 02/15] net/mlx5: Fix version printout in case of health issue

2017-01-19 Thread Saeed Mahameed
From: Eli Cohen Firmware representation of the firmware version on the health buffer has changed for newer device. The representation in the initialization segment does not and will not change. In addition, we print the health buffer firmware version as a raw hex number.

[net-next 13/15] net/mlx5e: Expose PCIe statistics to ethtool

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman This patch exposes PCIe performance counters, queried with ethtool -S . Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 9 +

[net-next 11/15] net/mlx5e: Expose physical layer statistical counters to ethtool

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman Use ethtool -S to query physical layer statistical counters including: - rx_symbol_errors_phy: Number of symbol errors that were not corrected by FEC correction algorithm or that FEC was not active on this interface. - rx_corrected_bits_phy: Number of

Re: [Xen-devel] xennet_start_xmit assumptions

2017-01-19 Thread Sowmini Varadhan
On (01/19/17 13:47), Sowmini Varadhan wrote: > > Specifically I'm talking about the dev_validate_header() check. > > That is supposed to protect us from these kinds of situations. > > ah, but I run my pf_packet application as root, so I have > capable(CAP_SYS_RAWIO), so I slip through the

Re: [PATCH v7 00/13] net: ethernet: aquantia: Add AQtion 2.5/5 GB NIC driver

2017-01-19 Thread Florian Fainelli
On 01/19/2017 01:33 PM, Alexander Loktionov wrote: > From: David VomLehn > > This series introduces the AQtion NIC driver for the aQuantia > AQC107/AQC108 network devices. > v5: o Removed extra newline at the end of the files. > v6: o Removed unnecessary cast from void*. >

[net-next 05/15] net/mlx5: Add support to s-tag in mlx5 firmware interface

2017-01-19 Thread Saeed Mahameed
From: Mohamad Haj Yahia Add svlan_tag and rename vlan_tag to cvlan_tag in flow table entry match param. Signed-off-by: Mohamad Haj Yahia Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky ---

[net-next 08/15] net/mlx5: Implement PCAM, MCAM access register commands

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman Introduced registers will expose capabilities of new registers and features related to port/management. Driver will query MCAM and PCAM in order to avoid failing on old firmwares with lack of support. Signed-off-by: Gal Pressman

[net-next 14/15] net/mlx5: Move cached hca caps to designated caps struct

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman The caps structure consists of hca caps and port/management caps, all under one roof. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 2 +-

[net-next 09/15] net/mlx5: Query and cache PCAM, MCAM registers on initialization

2017-01-19 Thread Saeed Mahameed
From: Gal Pressman On load_one, we now cache our capabilities registers internally, similar to QUERY_HCA_CAP. Capabilities can later be queried using macros introduced in this patch. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed

Re: [PATCH v7 10/13] net: ethernet: aquantia: Hardware interface and utility functions

2017-01-19 Thread Florian Fainelli
On 01/19/2017 01:33 PM, Alexander Loktionov wrote: > From: David VomLehn > > Add functions to interface with the hardware and some utility functions. > > Signed-off-by: Alexander Loktionov > Signed-off-by: Dmitrii Tarakanov

Re: [PATCH] virtio: don't set VIRTIO_NET_HDR_F_DATA_VALID on xmit

2017-01-19 Thread Michael S. Tsirkin
On Thu, Jan 19, 2017 at 11:06:59AM +0800, Jason Wang wrote: > > > On 2017年01月18日 23:18, Michael S. Tsirkin wrote: > > On Wed, Jan 18, 2017 at 11:54:21AM +0800, Jason Wang wrote: > > > On 2017年01月18日 02:27, Michael S. Tsirkin wrote: > > > > On Tue, Jan 17, 2017 at 06:13:51PM +, Rolf

Re: [PATCH v5 2/2] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-19 Thread Vivien Didelot
Gregory CLEMENT writes: > +static bool mv88e6xxx_6341_family(struct mv88e6xxx_chip *chip) > +{ > + return chip->info->family == MV88E6XXX_FAMILY_6341; > +} I don't want to see these erronous family checks anymore, but I cannot blame you for adding it

Re: [PATCH v7 11/13] net: ethernet: aquantia: Ethtool support

2017-01-19 Thread Florian Fainelli
On 01/19/2017 01:33 PM, Alexander Loktionov wrote: > From: David VomLehn > > Add the driver interfaces required for support by the ethtool utility. > > Signed-off-by: Alexander Loktionov > Signed-off-by: Dmitrii Tarakanov

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-19 Thread Vivien Didelot
Hi Gregory, Vivien Didelot writes: > The temperature is accessed via ethtool -e|-E. Oops, that was a silly mistake, no need to explain! ;-) Vivien

Re: [PATCH v5 1/2] net: dsa: mv88e6xxx: Don't forbid MDIO I/Os for PHY addr >= num_of_ports

2017-01-19 Thread Vivien Didelot
Hi Gregory, Gregory CLEMENT writes: > From: Romain Perier > > Some Marvell ethernet switches have internal ethernet transceivers with > hardcoded phy addresses. These addresses can be greater than the number > of ports or

Re: [PATCHv3 net-next 4/4] sctp: implement sender-side procedures for Add Incoming/Outgoing Streams Request Parameter

2017-01-19 Thread Marcelo Ricardo Leitner
On Fri, Jan 20, 2017 at 01:19:14AM +0800, Xin Long wrote: > This patch is to implement Sender-Side Procedures for the Add > Outgoing and Incoming Streams Request Parameter described in > rfc6525 section 5.1.5-5.1.6. > > It is also to add sockopt SCTP_ADD_STREAMS in rfc6525 section > 6.3.4 for

Re: [PATCH] rtlwifi: rtl8192x: Enabling and disabling hardware interrupts after enabling local irq flags

2017-01-19 Thread Lino Sanfilippo
Hi, On 19.01.2017 19:08, Larry Finger wrote: On 01/19/2017 08:35 AM, Lino Sanfilippo wrote: Hi, altek/rtlwifi/rtl8192ce/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c index a47be73..143766c4 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c +++

Re: linux-next: build failure after merge of the rcu tree

2017-01-19 Thread Paul McKenney
On Wed, Jan 18, 2017 at 7:34 PM, Stephen Rothwell wrote: > Hi Paul, > > After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > net/smc/af_smc.c:102:16: error: 'SLAB_DESTROY_BY_RCU' undeclared here (not in > a function) >

Re: [PATCHv3 net-next 4/4] sctp: implement sender-side procedures for Add Incoming/Outgoing Streams Request Parameter

2017-01-19 Thread Marcelo Ricardo Leitner
On Thu, Jan 19, 2017 at 03:17:18PM -0500, Neil Horman wrote: > On Fri, Jan 20, 2017 at 01:19:14AM +0800, Xin Long wrote: > > This patch is to implement Sender-Side Procedures for the Add > > Outgoing and Incoming Streams Request Parameter described in > > rfc6525 section 5.1.5-5.1.6. > > > > It

Re: [RFC] RESEND - rdmatool - tool for RDMA users

2017-01-19 Thread Jason Gunthorpe
On Thu, Jan 19, 2017 at 10:06:12PM +, Bart Van Assche wrote: > On Thu, 2017-01-19 at 11:03 -0700, Jason Gunthorpe wrote: > > sysfs is unpopular because the 'one value per file' dogma is laregly > > unsuitable for complex mulit-value atomic changes which are common in > > netdev. You can force

Re: [RFC] RESEND - rdmatool - tool for RDMA users

2017-01-19 Thread Bart Van Assche
On Thu, 2017-01-19 at 11:03 -0700, Jason Gunthorpe wrote: > sysfs is unpopular because the 'one value per file' dogma is laregly > unsuitable for complex mulit-value atomic changes which are common in > netdev. You can force it to work, but it is pretty horrible.. > > It is also very expensive if

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-19 Thread Vivien Didelot
Hi Gregory, Gregory CLEMENT writes: > I created a new family for this switch and filled the ops structure by > selecting which seems the more appropriate functions. We don't create families, this information comes from the Marvell DSDT. If you don't know

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-19 Thread Andrew Lunn
> While comparing the datasheet and the ops functions used, some > question came to me. They should not prevent applying this series, > but their answer would help me to have a better understanding of the > dsa subsystem. > > - Are the temperature related operation still useful with dsa2 ? No.

Re: [PATCHv3 net-next 2/4] sctp: implement sender-side procedures for SSN/TSN Reset Request Parameter

2017-01-19 Thread Marcelo Ricardo Leitner
On Fri, Jan 20, 2017 at 01:19:12AM +0800, Xin Long wrote: > This patch is to implement Sender-Side Procedures for the SSN/TSN > Reset Request Parameter descibed in rfc6525 section 5.1.4. > > It is also to add sockopt SCTP_RESET_ASSOC in rfc6525 section 6.3.3 > for users. > > Signed-off-by: Xin

[PATCH iproute2] f_flower: don't set TCA_FLOWER_KEY_ETH_TYPE for "protocol all"

2017-01-19 Thread Benjamin LaHaise
When using the tc filter flower, rules marked with "protocol all" do not actually match all packets. This is due to a bug in f_flower.c that passes in ETH_P_ALL in the TCA_FLOWER_KEY_ETH_TYPE attribute when adding a rule. Fix this by omitting TCA_FLOWER_KEY_ETH_TYPE if the protocol is set to

[PATCH v5 1/2] net: dsa: mv88e6xxx: Don't forbid MDIO I/Os for PHY addr >= num_of_ports

2017-01-19 Thread Gregory CLEMENT
From: Romain Perier Some Marvell ethernet switches have internal ethernet transceivers with hardcoded phy addresses. These addresses can be greater than the number of ports or its value might be different than the associated port number. This is for example the

[PATCH v5 2/2] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-19 Thread Gregory CLEMENT
The Marvell 88E6341 device is single-chip, 6-port Ethernet switch with four integrated 10/100/1000Mbps Ethernet transceivers and one high speed SerDes interfaces. It is partially compatible with switches of family 88E6352 and switches of family 88E6390. This commit adds an initial support for

[PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-19 Thread Gregory CLEMENT
Hi, This set of patches adds support for the Marvell Ethernet switch 88E6341 which is found on the ESPRESSObin. With this series the network is usable on this board. >From now on, I am taking care of this series. As Andrew Lunn pointed this switch is not fully compatible with the 6352. However

Re: [PATCHv3 net-next 4/4] sctp: implement sender-side procedures for Add Incoming/Outgoing Streams Request Parameter

2017-01-19 Thread Marcelo Ricardo Leitner
On Fri, Jan 20, 2017 at 01:19:14AM +0800, Xin Long wrote: > This patch is to implement Sender-Side Procedures for the Add > Outgoing and Incoming Streams Request Parameter described in > rfc6525 section 5.1.5-5.1.6. > > It is also to add sockopt SCTP_ADD_STREAMS in rfc6525 section > 6.3.4 for

Re: [Xen-devel] xennet_start_xmit assumptions

2017-01-19 Thread Sowmini Varadhan
On (01/19/17 11:37), David Miller wrote: > > I thought we had code which made sure that at least a minimal > link layer header was present in the SKB? > > Specifically I'm talking about the dev_validate_header() check. > That is supposed to protect us from these kinds of situations. ah, but I

[PATCH v7 06/13] net: ethernet: aquantia: Atlantic A0 and B0 specific functions.

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add Atlantic A0 and B0 specific functions. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: Dmitry

[PATCH v7 05/13] net: ethernet: aquantia: Support for NIC-specific code

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add support for code specific to the Atlantic NIC. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH v7 00/13] net: ethernet: aquantia: Add AQtion 2.5/5 GB NIC driver

2017-01-19 Thread Alexander Loktionov
From: David VomLehn This series introduces the AQtion NIC driver for the aQuantia AQC107/AQC108 network devices. v1: Initial version v2: o Make necessary drivers/net/ethernet changes to integrate software o Drop intermediate atlantic directory o Remove Makefile things

[PATCH v7 12/13] net: ethernet: aquantia: Receive side scaling

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add definitions that support receive side scaling. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH v7 11/13] net: ethernet: aquantia: Ethtool support

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add the driver interfaces required for support by the ethtool utility. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH v7 10/13] net: ethernet: aquantia: Hardware interface and utility functions

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add functions to interface with the hardware and some utility functions. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH v7 09/13] net: ethernet: aquantia: Atlantic hardware abstraction layer

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add common functions for Atlantic hardware abstraction layer. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH v7 08/13] net: ethernet: aquantia: PCI operations

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add functions that handle the PCI bus interface. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by:

[PATCH v7 13/13] net: ethernet: aquantia: Integrate AQtion 2.5/5 GB NIC driver

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Modify the drivers/net/ethernet/{Makefile,Kconfig} file to make them a part of the network drivers build. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by:

[PATCH v7 02/13] net: ethernet: aquantia: Common functions and definitions

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add files containing the functions and definitions used in common in different functional areas. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel

[PATCH v7 03/13] net: ethernet: aquantia: Add ring support code

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add code to support the transmit and receive ring buffers. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH v7 07/13] net: ethernet: aquantia: Vector operations

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Add functions to manululate the vector of receive and transmit rings. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel.Belous

[PATCH v7 01/13] net: ethernet: aquantia: Make and configuration files.

2017-01-19 Thread Alexander Loktionov
From: David VomLehn Patches to create the make and configuration files. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH] rtlwifi: rtl8723bs: Add firmware for new driver

2017-01-19 Thread Larry Finger
This driver is being added for Fedora users, and will then be added to the mainline kernel. Signed-off-by: Larry Finger c: Hans de Goede --- WHENCE | 13 + rtlwifi/rtl8723bs_ap_wowlan.bin | Bin 0 -> 20886

Re: [net PATCH v5 6/6] virtio_net: XDP support for adjust_head

2017-01-19 Thread Michael S. Tsirkin
On Thu, Jan 19, 2017 at 11:05:40AM +0800, Jason Wang wrote: > > > On 2017年01月18日 23:15, Michael S. Tsirkin wrote: > > On Tue, Jan 17, 2017 at 02:22:59PM -0800, John Fastabend wrote: > > > Add support for XDP adjust head by allocating a 256B header region > > > that XDP programs can grow into.

  1   2   3   >