[PATCH v3 net-next 2/6] net: Rename and export copy_skb_header

2017-12-18 Thread Ilya Lesokhin
copy_skb_header is renamed to skb_copy_header and exported. Exposing this function give more flexibility in copying SKBs. skb_copy and skb_copy_expand do not give enough control over which parts are copied. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny --- include/linux/skbuff.h |

[PATCH v3 net-next 0/6] tls: Add generic NIC offload infrastructure

2017-12-18 Thread Ilya Lesokhin
Changes from v2: - Fix sk use after free and possible netdev use after free - tls device now keeps a refernce on the offloading netdev - tls device registers to the netdev notifer. Upon a NETDEV_DOWN event, offload is stopped and the reference on the netdev is dropped. - SW fallback support fo

Re: [PATCH][netfilter-next] netfilter: conntrack: make struct nf_conntrack_l4proto_gre4 static

2017-12-18 Thread Pablo Neira Ayuso
On Mon, Dec 11, 2017 at 10:18:05AM +0100, Florian Westphal wrote: > Colin King wrote: > > From: Colin Ian King > > > > The structure nf_conntrack_l4proto_gre4 is local to the source and does > > not need to be in global scope, so make it static. > > This bug was added in > commit b9679a9fd3a7d

Re: [bpf-next V1-RFC PATCH 01/14] xdp: base API for new XDP rx-queue info concept

2017-12-18 Thread Jesper Dangaard Brouer
On Wed, 13 Dec 2017 19:34:40 -0700 David Ahern wrote: > On 12/13/17 4:19 AM, Jesper Dangaard Brouer wrote: > > + > > +void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq) > > +{ > > + xdp_rxq->reg_state = REG_STATE_UNREGISTRED; > > +} > > +EXPORT_SYMBOL_GPL(xdp_rxq_info_unreg); > > + > > +void

Re: [Intel-wired-lan] [bpf-next V1-RFC PATCH 03/14] i40e: setup xdp_rxq_info

2017-12-18 Thread Björn Töpel
2017-12-13 12:19 GMT+01:00 Jesper Dangaard Brouer : > The i40e driver have a special "FDIR" RX-ring (I40E_VSI_FDIR) which is > a sideband channel for configuring/updating the flow director tables. > This (i40e_vsi_)type does not invoke XDP-ebpf code. Thus, mark this > type as a XDP RX-queue type RX

Re: [PATCH bpf 3/3] bpf: fix broken BPF selftest build

2017-12-18 Thread Daniel Borkmann
On 12/18/2017 10:28 AM, Hendrik Brueckner wrote: [...] > This is actually necessary on s390: > > cc -Wall -O2 -I../../../include/uapi -I../../../lib > -I../../../../include/generated -I../../../includetest_verifier.c > /root/git/linux/tools/testing/selftests/bpf/libbpf.a > /root/git/linux/

Re: b53 tags on bpi-r1 (bcm53125)

2017-12-18 Thread Jochen Friedrich
Hi Florian, unfortunately, this doesn't make any difference. Just out of curiosity, BPI-R1 has pull-down resistors on LED6 and 7 (MII_MODE0/1). However, the public available 53125U sheet doesn't document these pins: LED[6] IMP_MODE[0] Pull-up Active low (since IMP Mode is not used) LED[7] IM

pull request: bluetooth-next 2017-12-18

2017-12-18 Thread Johan Hedberg
Hi Dave, Here's the first bluetooth-next pull request for the 4.16 kernel. - hci_ll: multiple cleanups & fixes - Remove Gustavo Padovan from the MAINTAINERS file - Support BLE Adversing while connected (if the controller can do it) - DT updates for TI chips - Various other smaller cleanups &

Re: v4.15-rc2 on thinkpad x60: ethernet stopped working

2017-12-18 Thread Pavel Machek
Hi! > >> >In v4.15-rc2+, network manager can not see my ethernet card, and > >> >manual attempts to ifconfig it up did not really help, either. > >> > > >> >Card is: > >> > > >> >02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet > >> >Controller > > > >> >Any ideas ? > >>

Re: [PATCH net-next] udp: handle gro_receive only when necessary

2017-12-18 Thread Paolo Abeni
Hi, On Mon, 2017-12-18 at 12:11 +0800, zhangliping wrote: > From: zhangliping > > Under our udp pressure performance test, after gro is disabled, rx rate > will be improved from ~2500kpps to ~2800kpps. We can find some difference > from perf report: > 1. gro is enabled: > 24.23% [kernel]

[PATCH] net: ks8851: Support DT-provided MAC address

2017-12-18 Thread Lukas Wunner
Allow the boot loader to specify the MAC address in the device tree to override the EEPROM, or in case no EEPROM is present. Cc: Ben Dooks Cc: Tristram Ha Cc: David J. Choi Signed-off-by: Lukas Wunner --- We're using this small patch on the "Revolution Pi" family of open source PLCs (https://r

Re: [PATCH 1/3] kallsyms: don't leak address when symbol not found

2017-12-18 Thread Felix Fietkau
On 2017-12-18 00:53, Tobin C. Harding wrote: > Currently if kallsyms_lookup() fails to find the symbol then the address > is printed. This potentially leaks sensitive information. Instead of > printing the address we can return an error, giving the calling code the > option to print the address or

Re: [PATCH v10 3/5] bpf: add a bpf_override_function helper

2017-12-18 Thread Masami Hiramatsu
On Fri, 15 Dec 2017 14:12:54 -0500 Josef Bacik wrote: > From: Josef Bacik > > Error injection is sloppy and very ad-hoc. BPF could fill this niche > perfectly with it's kprobe functionality. We could make sure errors are > only triggered in specific call chains that we care about with very >

[PATCH net-next v3 0/7] net: phy: meson-gxl: clean-up and improvements

2017-12-18 Thread Jerome Brunet
This patchset adds defines for the control registers and helpers to access the banked registers. The goal being to make it easier to understand what the driver actually does. Then CONFIG_A6 settings is removed since this statement was without effect Finally interrupt support is added, speeding thin

[PATCH net-next v3 1/7] net: phy: meson-gxl: check phy_write return value

2017-12-18 Thread Jerome Brunet
Always check phy_write return values. Better to be safe than sorry Reviewed-by: Andrew Lunn Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 50 ++--- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/net/phy/meson-gxl.

Re: [bpf-next V1-RFC PATCH 12/14] xdp: generic XDP handling of xdp_rxq_info

2017-12-18 Thread Jesper Dangaard Brouer
On Wed, 13 Dec 2017 14:50:07 -0800 Saeed Mahameed wrote: > On 12/13/2017 3:20 AM, Jesper Dangaard Brouer wrote: > > Hook points for xdp_rxq_info: > > * init+reg: netif_alloc_rx_queues > > * unreg : netif_free_rx_queues > > > > The net_device have some members (num_rx_queues + real_num_rx_q

[PATCH net-next v3 5/7] net: phy: meson-gxl: leave CONFIG_A6 untouched

2017-12-18 Thread Jerome Brunet
The PHY performs just as well when left in its default configuration and it makes senses because this poke gets reset just after init. According to the documentation, all registers in the Analog/DSP bank are reset when there is a mode switch from 10BT to 100BT. The bank is also reset on power down

[PATCH net-next v3 2/7] net: phy: meson-gxl: define control registers

2017-12-18 Thread Jerome Brunet
Define registers and bits in meson-gxl PHY driver to make a bit more human friendly. No functional change. Signed-off-by: Neil Armstrong Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 86 ++--- 1 file changed, 66 insertions(+), 20 deletion

[PATCH net-next v3 6/7] net: phy: meson-gxl: add interrupt support

2017-12-18 Thread Jerome Brunet
Enable interrupt support in meson-gxl PHY driver Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index ddc92424e8de..ee

[PATCH net-next v3 3/7] net: phy: meson-gxl: add read and write helpers for banked registers

2017-12-18 Thread Jerome Brunet
Add read and write helpers to manipulate banked registers on this PHY This helps clarify the settings applied to these registers and what the driver actually does Signed-off-by: Neil Armstrong Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 130 +++

[PATCH net-next v3 7/7] net: phy: meson-gxl: join the authors

2017-12-18 Thread Jerome Brunet
Following previous changes, join the other authors of this driver and take the blame with them Reviewed-by: Andrew Lunn Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c inde

[PATCH net-next v3 4/7] net: phy: meson-gxl: use genphy_config_init

2017-12-18 Thread Jerome Brunet
Use the generic init function to populate some of the phydev structure fields Reviewed-by: Andrew Lunn Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2017-12-18 Thread Ard Biesheuvel
On 18 December 2017 at 10:17, Marcin Wojtas wrote: > Hi, > > This patchset introduces ACPI support in mvpp2 and mvmdio drivers. > First three patches introduce fwnode helpers for obtaining PHY > information from nodes and also MDIO fwnode API for registering > the bus with its PHY/devices. > > Fol

Re: [PATCH bpf 3/3] bpf: fix broken BPF selftest build

2017-12-18 Thread Hendrik Brueckner
Hi Daniel, On Tue, Dec 12, 2017 at 02:25:32AM +0100, Daniel Borkmann wrote: > At least on x86_64, the kernel's BPF selftests seemed to have stopped > to build due to 618e165b2a8e ("selftests/bpf: sync kernel headers and > introduce arch support in Makefile"): > > [...] > In file included from

[net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2017-12-18 Thread Marcin Wojtas
Hi, This patchset introduces ACPI support in mvpp2 and mvmdio drivers. First three patches introduce fwnode helpers for obtaining PHY information from nodes and also MDIO fwnode API for registering the bus with its PHY/devices. Following patches update code of the mvmdio and mvpp2 drivers to supp

[net-next: PATCH 1/8] device property: Introduce fwnode_get_mac_address()

2017-12-18 Thread Marcin Wojtas
Until now there were two almost identical functions for obtaining MAC address - of_get_mac_address() and, more generic, device_get_mac_address(). However it is not uncommon, that the network interface is represented as a child of the actual controller, hence it is not associated directly to any str

[net-next: PATCH 2/8] device property: Introduce fwnode_get_phy_mode()

2017-12-18 Thread Marcin Wojtas
Until now there were two almost identical functions for obtaining network PHY mode - of_get_phy_mode() and, more generic, device_get_phy_mode(). However it is not uncommon, that the network interface is represented as a child of the actual controller, hence it is not associated directly to any stru

[net-next: PATCH 3/8] mdio_bus: Introduce fwnode MDIO helpers

2017-12-18 Thread Marcin Wojtas
This patch introduces fwnode helper for registering MDIO bus, as well as one for finding the PHY, basing on its firmware node pointer. Comparing to existing OF equivalent, fwnode_mdiobus_register() does not support: * deprecated bindings (device whitelist, nor the PHY ID embedded in the compati

[net-next: PATCH 5/8] net: mvpp2: simplify maintaining enabled ports' list

2017-12-18 Thread Marcin Wojtas
'port_count' field of the mvpp2 structure holds an overall amount of available ports, based on DT nodes status. In order to be prepared to support other HW description, obtain the value by incrementing it upon each successful port initialization. This allowed for simplifying port indexing in the co

[net-next: PATCH 4/8] net: mvmdio: add ACPI support

2017-12-18 Thread Marcin Wojtas
This patch introducing ACPI support for the mvmdio driver by adding acpi_match_table with two entries: * "MRVL0100" for the SMI operation * "MRVL0101" for the XSMI mode Also clk enabling is skipped, because the tables do not contain such data and clock maintenance relies on the firmware. The MDIO

[net-next: PATCH 8/8] net: mvpp2: enable ACPI support in the driver

2017-12-18 Thread Marcin Wojtas
This patch introduces an alternative way of obtaining resources - via ACPI tables provided by firmware. Enabling coexistence with the DT support, in addition to the OF_*->device_*/fwnode_* API replacement, required following steps to be taken: * Add mvpp2_acpi_match table * Omit clock configuratio

[net-next: PATCH 7/8] net: mvpp2: handle PHY with its fwnode

2017-12-18 Thread Marcin Wojtas
Newly introduced mvmdio driver ACPI support and also fwnode MDIO helpers allow for switching to PHY handling with its fwnode. This patch replaces of_* related PHY handling function with the fwnode_* equivalent and updates mvpp2_port structure accordingly. Signed-off-by: Marcin Wojtas --- driver

[net-next: PATCH 6/8] net: mvpp2: use device_*/fwnode_* APIs instead of of_*

2017-12-18 Thread Marcin Wojtas
OF functions can be used only for the driver using DT. As a preparation for introducing ACPI support in mvpp2 driver, use struct fwnode_handle in order to obtain properties from the hardware description. Because there is no equivalent for for_each_available_child_of_node(), use device_for_each_chi

Re: [kernel-hardening] [PATCH 0/3] kallsyms: don't leak address

2017-12-18 Thread Tobin C. Harding
On Mon, Dec 18, 2017 at 05:00:48PM +1100, Tobin C. Harding wrote: > On Mon, Dec 18, 2017 at 04:31:25PM +1100, Michael Ellerman wrote: > > "Tobin C. Harding" writes: > > > > > This set plugs a kernel address leak that occurs if kallsyms symbol > > > look up fails. This set was prompted by a leakin

[PATCH net-next 02/17] net: hns3: add support to modify tqps number

2017-12-18 Thread Lipeng
This patch add the support to change tqps number for PF driver by using ehtool -L command. Signed-off-by: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 3 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 122 + drivers/net

[PATCH net-next 07/17] net: hns3: Add vlan offload config command

2017-12-18 Thread Lipeng
This patch adds vlan offload config commands, initializes the rules of tx/rx vlan tag handle for hw. Signed-off-by: Shenjian Signed-off-by: Lipeng --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 45 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 158 -

[PATCH net-next 04/17] net: hns3: Free the ring_data structrue when change tqps

2017-12-18 Thread Lipeng
This patch fix a memory leak problems in change tqps process, the function hns3_uninit_all_ring and hns3_init_all_ring may be called many times. Signed-off-by: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 1 file changed, 4 insertions(+) diff -

[PATCH net-next 01/17] net: hns3: add support to query tqps number

2017-12-18 Thread Lipeng
This patch add the support to query tqps number for PF driver by using ehtool -l command. Signed-off-by: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 10 ++ .../net/ethernet/hisil

[PATCH net-next 09/17] net: hns3: Add handling vlan tag offload in bd

2017-12-18 Thread Lipeng
This patch deals with the vlan tag information between sk_buff and rx/tx bd. Signed-off-by: Shenjian Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 83 +++-- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hisi

[PATCH net-next 03/17] net: hns3: change the returned tqp number by ethtool -x

2017-12-18 Thread Lipeng
This patch modify the return data of get_rxnfc, it will return the current handle's rss_size but not the total tqp number. because the tc_size has been change to the log2 of roundup power of two of rss_size. Signed-off-by: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns

Re: [PATCH v10 1/5] add infrastructure for tagging functions as error injectable

2017-12-18 Thread Masami Hiramatsu
On Fri, 15 Dec 2017 14:12:52 -0500 Josef Bacik wrote: > From: Josef Bacik > > Using BPF we can override kprob'ed functions and return arbitrary > values. Obviously this can be a bit unsafe, so make this feature opt-in > for functions. Simply tag a function with KPROBE_ERROR_INJECT_SYMBOL in >

[PATCH net-next 05/17] net: hns3: Get rss_size_max from configuration but not hardcode

2017-12-18 Thread Lipeng
From: qumingguang Add configuration for rss_size_max in hdev but not hardcode it. Signed-off-by: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +- drivers/net/ethernet/hisil

[PATCH net-next 00/17] add some features and fix some bugs for HNS3 driver

2017-12-18 Thread Lipeng
This patchset adds some new feature support and fixes some bugs: [Patch 1/17 - 5/17] add the support to modify/query the tqp number through ethtool -L/l command, and also fix some related bugs for change tqp number. [Patch 6/17 - 9-17] add support vlan tag offload on tx&&rx direction for pf, and fi

[PATCH net-next 08/17] net: hns3: Add ethtool related offload command

2017-12-18 Thread Lipeng
This patch adds offload command related to "ethtool -K". Signed-off-by: Shenjian Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 16 drivers/net/ethernet/hisilicon/hns3/hns3pf/

Re: [PATCH v3 07/33] nds32: MMU initialization

2017-12-18 Thread Guo Ren
Hi Greentime, On Fri, Dec 08, 2017 at 05:11:50PM +0800, Greentime Hu wrote: [...] > > diff --git a/arch/nds32/mm/highmem.c b/arch/nds32/mm/highmem.c [...] > +void *kmap(struct page *page) > +{ > + unsigned long vaddr; > + might_sleep(); > + if (!PageHighMem(page)) > + retu

Re: [PATCH net-next 17/17] net: hns3: change TM sched mode to TC-based mode when SRIOV enabled

2017-12-18 Thread Sergei Shtylyov
On 12/18/2017 12:31 PM, Lipeng wrote: TC-based sched mode supports SRIOV enabled and SRIOV disabled. This patch change the TM sched mode to TC-based mode in initialization process. Fixes: cc9bb43 (net: hns3: Add tc-based TM support for sriov enabled port) Need at least 12 hex digits. Sig

Re: [PATCH net-next 14/17] net: hns3: add Asym Pause support to phy default features

2017-12-18 Thread Sergei Shtylyov
Hello! On 12/18/2017 12:31 PM, Lipeng wrote: From: Fuyun Liang commit c4fb2cdf575d (net: hns3: fix a bug for phy supported feature initialization) adds default supported features for phy, but our hardware Ten cited commit's summary needs to be enclosed in (""), not just ()... also supp

[PATCH net-next 10/17] net: hns3: cleanup mac auto-negotiation state query

2017-12-18 Thread Lipeng
From: Fuyun Liang When checking whether auto-negotiation is on, driver only needs to check the value of mac.autoneg(SW) directly, and does not need to query it from hardware. Because this value is always synchronized with the auto-negotiation state of hardware. This patch removes the mac auto-ne

[PATCH net-next 06/17] net: hns3: Add a mask initialization for mac_vlan table

2017-12-18 Thread Lipeng
This patch sets vlan masked, in order to avoid the received packets being filtered. Signed-off-by: Shenjian Signed-off-by: Lipeng --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 10 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 39 +- 2 files changed,

[PATCH net-next 16/17] net: hns3: Increase the default depth of bucket for TM shaper

2017-12-18 Thread Lipeng
Burstiness of a flow is determined by the depth of a bucket, When the upper rate of shaper is large, the current depth of a bucket is not enough. The default upper rate of shaper is 100G, so increase the depth of a bucket according to UM. Signed-off-by: Yunsheng Lin Signed-off-by: Lipeng --- d

[PATCH net-next 14/17] net: hns3: add Asym Pause support to phy default features

2017-12-18 Thread Lipeng
From: Fuyun Liang commit c4fb2cdf575d (net: hns3: fix a bug for phy supported feature initialization) adds default supported features for phy, but our hardware also supports Asym Pause. This patch adds Asym Pause support to phy default features to prevent Asym Pause can not be advertised when the

[PATCH net-next 13/17] net: hns3: add support to update flow control settings after autoneg

2017-12-18 Thread Lipeng
When auto-negotiation is enabled, the MAC flow control settings is based on the flow control negotiation result. And it should be configured after a valid link has been established. This patch adds support to update flow control settings after auto-negotiation has completed. Signed-off-by: Fuyun L

[PATCH net-next 15/17] net: hns3: add support for querying advertised pause frame by ethtool ethx

2017-12-18 Thread Lipeng
This patch adds support for querying advertised pause frame by using ethtool command(ethtool ethx). Fixes: 496d03e960ae (net: hns3: Add Ethtool support to HNS3 driver) Signed-off-by: Fuyun Liang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ drivers/n

[PATCH net-next 11/17] net: hns3: fix for getting auto-negotiation state in hclge_get_autoneg

2017-12-18 Thread Lipeng
From: Fuyun Liang When phy exists, we use the value of phydev.autoneg to represent the auto-negotiation state of hardware. Otherwise, we use the value of mac.autoneg to represent it. This patch fixes for getting a error value of auto-negotiation state in hclge_get_autoneg(). Fixes: 46a3df9f9718

[PATCH net-next 12/17] net: hns3: add support for set_pauseparam

2017-12-18 Thread Lipeng
This patch adds set_pauseparam support for ethtool cmd. Signed-off-by: Fuyun Liang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 13 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 83 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge

[PATCH net-next 17/17] net: hns3: change TM sched mode to TC-based mode when SRIOV enabled

2017-12-18 Thread Lipeng
TC-based sched mode supports SRIOV enabled and SRIOV disabled. This patch change the TM sched mode to TC-based mode in initialization process. Fixes: cc9bb43 (net: hns3: Add tc-based TM support for sriov enabled port) Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mai

[PATCH net] net: mediatek: setup proper state for disabled GMAC on the default

2017-12-18 Thread sean.wang
From: Sean Wang The current solution would setup fixed and force link of 1Gbps to the both GMAC on the default. However, The GMAC should always be put to link down state when the GMAC is disabled on certain target boards. Otherwise, the driver possibly receives unexpected data from the floating h

Re: [PATCH] net: ibm: emac: support RGMII-[RX|TX]ID phymode

2017-12-18 Thread Andrew Lunn
> @@ -201,6 +201,9 @@ static inline int emac_phy_supports_gige(int phy_mode) > { > return phy_mode == PHY_MODE_GMII || > phy_mode == PHY_MODE_RGMII || > + phy_mode == PHY_MODE_RGMII_ID || > + phy_mode == PHY_MODE_RGMII_RXID || > + phy_mode =

[v2 PATCH -tip 6/6] net: dccp: Remove dccpprobe module

2017-12-18 Thread Masami Hiramatsu
Remove DCCP probe module since jprobe has been deprecated. That function is now replaced by dccp/dccp_probe trace-event. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/dccp/Kconfig | 17 net/dccp/Makefile |2 - net/dccp/probe.c | 203 ---

[v2 PATCH -tip 4/6] net: sctp: Remove debug SCTP probe module

2017-12-18 Thread Masami Hiramatsu
Remove SCTP probe module since jprobe has been deprecated. That function is now replaced by sctp/sctp_probe and sctp/sctp_probe_path trace-events. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/sctp/Kconfig | 12 --- net/sctp/Makefile |3 - net/sctp/probe.

[PATCH net] ipv4: Fix use-after-free when flushing FIB tables

2017-12-18 Thread Ido Schimmel
Since commit 0ddcf43d5d4a ("ipv4: FIB Local/MAIN table collapse") the local table uses the same trie allocated for the main table when custom rules are not in use. When a net namespace is dismantled, the main table is flushed and freed (via an RCU callback) before the local table. In case the call

[v2 PATCH -tip 5/6] net: dccp: Add DCCP sendmsg trace event

2017-12-18 Thread Masami Hiramatsu
Add DCCP sendmsg trace event (dccp/dccp_probe) for replacing dccpprobe. User can trace this event via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/dccp/proto.c |5 +++ net/dccp/trace.h | 105 ++ 2 files changed, 110 inserti

[v2 PATCH -tip 2/6] net: tcp: Remove TCP probe module

2017-12-18 Thread Masami Hiramatsu
Remove TCP probe module since jprobe has been deprecated. That function is now replaced by tcp/tcp_probe trace-event. You can use it via ftrace or perftools. Signed-off-by: Masami Hiramatsu --- net/Kconfig | 17 --- net/ipv4/Makefile|1 net/ipv4/tcp_probe.c | 301 ---

[v2 PATCH -tip 3/6] net: sctp: Add SCTP ACK tracking trace event

2017-12-18 Thread Masami Hiramatsu
Add SCTP ACK tracking trace event to trace the changes of SCTP association state in response to incoming packets. It is used for debugging SCTP congestion control algorithms, and will replace sctp_probe module. Note that this event a bit tricky. Since this consists of 2 events (sctp_probe and sctp

[v2 PATCH -tip 0/6] net: tcp: sctp: dccp: Replace jprobe usage with trace events

2017-12-18 Thread Masami Hiramatsu
Hi, This series is v2 of the replacement of jprobe usage with trace events, and is just rebased on current tip/master branch. Please review it and test it. Anyway, this removes all {tcp,sctp,dccp}_probe.ko because those depend on jprobe. This introduce new trace events which allows user to trace

[v2 PATCH -tip 1/6] net: tcp: Add trace events for TCP congestion window tracing

2017-12-18 Thread Masami Hiramatsu
This adds an event to trace TCP stat variables with slightly intrusive trace-event. This uses ftrace/perf event log buffer to trace those state, no needs to prepare own ring-buffer, nor custom user apps. User can use ftrace to trace this event as below; # cd /sys/kernel/debug/tracing # echo 1

Re: [net-next] phylib: Add device reset GPIO support causes DSA MT7530 acquires reset-gpios fails

2017-12-18 Thread Andrew Lunn
Hi Sean > It probably can't. Because before the GPIO line is manipulated to reset, > certain power control should be handled such as power sources from > external PMIC to let devices actually enter the proper state. > > So, I thought the kind of reset should be better controlled by the > specific

<    1   2   3   4