Re: [PATCH RFC v2 1/8] xdp: Infrastructure to generalize XDP

2017-02-08 Thread Jiri Pirko
Thu, Feb 09, 2017 at 12:41:20AM CET, t...@herbertland.com wrote: >This patch creates an infrastructure for registering and running code at >XDP hooks in drivers. This extends and generalizes the original XDP/BPF >interface. Specifically, it defines a generic xdp_hook structure and a >set of hooks t

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

2017-02-08 Thread Xin Long
On Thu, Feb 9, 2017 at 5:50 AM, Marcelo Ricardo Leitner wrote: > On Wed, Feb 08, 2017 at 07:48:01PM -0200, Marcelo Ricardo Leitner wrote: >> Hi Xin, >> >> On Thu, Feb 09, 2017 at 01:18:18AM +0800, Xin Long wrote: >> > This patch is to implement Sender-Side Procedures for the SSN/TSN >> > Reset Req

[lkp-robot] [rhashtable] 60be2ebf32: INFO:suspicious_RCU_usage

2017-02-08 Thread kernel test robot
FYI, we noticed the following commit: commit: 60be2ebf326aa90c88e9a967412557d832a1612e ("rhashtable: Add nested tables") url: https://github.com/0day-ci/linux/commits/Herbert-Xu/rhashtable-Handle-table-allocation-failure-during-insertion/20170207-204835 in testcase: boot on test machine: qem

Re: [PATCHv6 net-next 3/6] sctp: add support for generating stream reconf ssn/tsn reset request chunk

2017-02-08 Thread Xin Long
On Thu, Feb 9, 2017 at 5:57 AM, Marcelo Ricardo Leitner wrote: > On Thu, Feb 09, 2017 at 01:18:17AM +0800, Xin Long wrote: >> This patch is to define SSN/TSN Reset Request Parameter described >> in rfc6525 section 4.3. >> >> It's also to drop some unnecessary __packed in include/linux/sctp.h. > >

Re: [net, v3, 1/3] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Heiko Schocher
Hello Florian, Am 09.02.2017 um 08:13 schrieb Florian Fainelli: On 02/08/2017 10:58 PM, Heiko Schocher wrote: Hello Florian, Am 09.02.2017 um 01:13 schrieb Florian Fainelli: The Generic PHY drivers gets assigned after we checked that the current PHY driver is NULL, so we need to check a few

[PATCH 0/4] Whitespace checkpatch fixes

2017-02-08 Thread Tobin C. Harding
This patch set fixes various whitespace checkpatch errors and warnings. Tobin C. Harding (4): net: Fix checkpatch WARNING: please, no space before tabs net: Fix checkpatch whitespace errors net: Fix checkpatch block comments warnings net: Fix checkpatch, Missing a blank line after declarat

Re: [net, v3, 1/3] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Florian Fainelli
On 02/08/2017 10:58 PM, Heiko Schocher wrote: > Hello Florian, > > Am 09.02.2017 um 01:13 schrieb Florian Fainelli: >> The Generic PHY drivers gets assigned after we checked that the current >> PHY driver is NULL, so we need to check a few things before we can >> safely dereference d->driver. Th

[PATCH 4/4] net: Fix checkpatch, Missing a blank line after declarations

2017-02-08 Thread Tobin C. Harding
This patch fixes multiple occurrences of checkpatch WARNING: Missing a blank line after declarations. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 13 + 1 file changed, 13 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 6a076a1..fa63485 100644 --- a/net/core

[PATCH 1/4] net: Fix checkpatch WARNING: please, no space before tabs

2017-02-08 Thread Tobin C. Harding
This patch fixes multiple occurrences of space before tabs warnings. More lines of code were moved than required to keep kernel-doc comments uniform. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 142 - 1 file changed, 71 insertions(

[PATCH 2/4] net: Fix checkpatch whitespace errors

2017-02-08 Thread Tobin C. Harding
This patch fixes two trivial whitespace errors. Brace should be on the previous line and trailing statements should be on next line. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/ne

[PATCH 3/4] net: Fix checkpatch block comments warnings

2017-02-08 Thread Tobin C. Harding
Fix multiple occurrences of checkpatch warning. WARNING: Block comments use * on subsequent lines. Also make comment blocks more uniform. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 65 +- 1 file changed, 33 insertions(+), 32 delet

Re: [net, v3, 1/3] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Heiko Schocher
Hello Florian, Am 09.02.2017 um 01:13 schrieb Florian Fainelli: The Generic PHY drivers gets assigned after we checked that the current PHY driver is NULL, so we need to check a few things before we can safely dereference d->driver. This would be causing a NULL deference to occur when a system b

Crashes in -next due to 'net: phy: Fix lack of reference count on PHY driver'

2017-02-08 Thread Guenter Roeck
t on PHY driver"). Bisect log is attached below. Reverting this patch fixes the problem for all affected architectures in my tests. Guenter --- # bad: [e3e6c5f3544c5d05c6b3b309a34f4f2c3537e993] Add linux-next specific files for 20170208 # good: [d5adbfcd5f7bcc6fa58a41c5c5ada0e5c826ce2c] Linux

Re: Extending socket timestamping API for NTP

2017-02-08 Thread Denny Page
[Resend as plain text] > On Feb 07, 2017, at 06:01, Miroslav Lichvar wrote: > > 5) new SO_TIMESTAMPING options to get transposed RX timestamps > > PTP uses preamble RX timestamps, but NTP works with trailer RX > timestamps. This means NTP implementations currently need to > transpose HW

[PATCH 1/1] ixgbe: add the external ixgbe fiber transceiver status

2017-02-08 Thread Zhu Yanjun
When the ixgbe fiber transceiver is external, it is necessary to get the present/absent status of this external ixgbe fiber transceiver. The steps to get the present/absent status: The enp1s0f0 is an external ixgbe fiber NIC. ethtool enp1s0f0 ... Port: FIBRE PHYAD: 0 Tran

[PATCH 1/1] ethtool: add the external transceiver status of the ixgbe fiber

2017-02-08 Thread Zhu Yanjun
When the the fiber transceiver of the ixgbe NIC is external, sometimes it is necessary to get the present/absent status of the fiber transceiver of the ixgbe NIC. The steps to get the present/absent status: The NIC enp1s0f0 is an external ixgbe fiber NIC. ethtool enp1s0f0 ... Port: FIBRE

[PATCHv2 iproute2 net-next] man: ip-link.8: Document bridge_slave fdb_flush option

2017-02-08 Thread Hangbin Liu
Signed-off-by: Hangbin Liu --- man/man8/ip-link.8.in | 5 + 1 file changed, 5 insertions(+) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index 469bb43..651a255 100644 --- a/man/man8/ip-link.8.in +++ b/man/man8/ip-link.8.in @@ -1429,6 +1429,8 @@ the following additional argument

[PATCH net] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Florian Fainelli
The Generic PHY drivers gets assigned after we checked that the current PHY driver is NULL, so we need to check a few things before we can safely dereference d->driver. This would be causing a NULL deference to occur when a system binds to the Generic PHY driver. Update phy_attach_direct() to do th

Re: [PATCH net] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Florian Fainelli
On 02/08/2017 07:05 PM, Florian Fainelli wrote: > The Generic PHY drivers gets assigned after we checked that the current > PHY driver is NULL, so we need to check a few things before we can > safely dereference d->driver. This would be causing a NULL deference to > occur when a system binds to the

Re: [RFC PATCH net-next 1/2] bpf: Save original ebpf instructions

2017-02-08 Thread David Ahern
On 2/8/17 12:40 PM, David Ahern wrote: > On 2/8/17 3:52 AM, Daniel Borkmann wrote: >> for cBPF dumps it looks like this in ss. Can you tell me what these >> 11 insns do? Likely you can, but can a normal admin? >> >> # ss -0 -b >> Netid Recv-Q Send-Q Local >> A

[RFC PATCH net-next 1/1] net: rmnet_data: Initial implementation

2017-02-08 Thread Subash Abhinov Kasiviswanathan
RmNet Data driver provides a transport agnostic MAP (multiplexing and aggregation protocol) support in embedded and bridge modes. Module provides virtual network devices which can be attached to any IP-mode physical device. This will be used to provide all MAP functionality on future hardware in a

[RFC PATCH net-next 0/1] net: Add support for rmnet_data driver

2017-02-08 Thread Subash Abhinov Kasiviswanathan
This patch adds support for the rmnet_data driver which is required to support recent chipsets using Qualcomm Technologies, Inc. modems. The data from hardware follows the multiplexing and aggregation protocol (MAP). This driver can be used to register onto any physical network device in IP mode.

[PATCH v3 net-next 10/10] openvswitch: Pack struct sw_flow_key.

2017-02-08 Thread Jarno Rajahalme
struct sw_flow_key has two 16-bit holes. Move the most matched conntrack match fields there. In some typical cases this reduces the size of the key that needs to be hashed into half and into one cache line. Signed-off-by: Jarno Rajahalme --- net/openvswitch/conntrack.c| 40 +

[PATCH v3 net-next 07/10] openvswitch: Inherit master's labels.

2017-02-08 Thread Jarno Rajahalme
We avoid calling into nf_conntrack_in() for expected connections, as that would remove the expectation that we want to stick around until we are ready to commit the connection. Instead, we do a lookup in the expectation table directly. However, after a successful expectation lookup we have set th

[PATCH v3 net-next 04/10] openvswitch: Unionize ovs_key_ct_label with a u32 array.

2017-02-08 Thread Jarno Rajahalme
Make the array of labels in struct ovs_key_ct_label an union, adding a u32 array of the same byte size as the existing u8 array. It is faster to loop through the labels 32 bits at the time, which is also the alignment of netlink attributes. Signed-off-by: Jarno Rajahalme --- include/uapi/linux/

[PATCH v3 net-next 01/10] openvswitch: Fix comments for skb->_nfct

2017-02-08 Thread Jarno Rajahalme
Fix comments referring to skb 'nfct' and 'nfctinfo' fields now that they are combined into '_nfct'. Signed-off-by: Jarno Rajahalme --- net/openvswitch/conntrack.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conn

[PATCH v3 net-next 05/10] openvswitch: Simplify labels length logic.

2017-02-08 Thread Jarno Rajahalme
Since 23014011ba42 ("netfilter: conntrack: support a fixed size of 128 distinct labels"), the size of conntrack labels extension has fixed to 128 bits, so we do not need to check for labels sizes shorter than 128 at run-time. This patch simplifies labels length logic accordingly, but allows the co

[PATCH v3 net-next 00/10] openvswitch: Conntrack integration improvements.

2017-02-08 Thread Jarno Rajahalme
This series improves the conntrack integration code in the openvswitch module by fixing outdated comments (patch 1), bugs (patches 2, 3, and 7), clarifying code (patches 4, 5, and 6), improving performance (patch 10), and adding new features enabling better translation from firewall admission polic

[PATCH v3 net-next 06/10] openvswitch: Refactor labels initialization.

2017-02-08 Thread Jarno Rajahalme
Refactoring conntrack labels initialization makes chenges in later patches easier to review. Signed-off-by: Jarno Rajahalme --- net/openvswitch/conntrack.c | 104 ++-- 1 file changed, 62 insertions(+), 42 deletions(-) diff --git a/net/openvswitch/conntrac

[PATCH v3 net-next 03/10] openvswitch: Do not trigger events for unconfirmed connections.

2017-02-08 Thread Jarno Rajahalme
Receiving change events before the 'new' event for the connection has been received can be confusing. Avoid triggering change events for setting conntrack mark or labels before the conntrack entry has been confirmed. Fixes: 182e3042e15d ("openvswitch: Allow matching on conntrack mark") Fixes: c2a

[PATCH v3 net-next 09/10] openvswitch: Add force commit.

2017-02-08 Thread Jarno Rajahalme
Stateful network admission policy may allow connections to one direction and reject connections initiated in the other direction. After policy change it is possible that for a new connection an overlapping conntrack entry already exists, where the original direction of the existing connection is op

[PATCH v3 net-next 02/10] openvswitch: Use inverted tuple in ovs_ct_find_existing() if NATted.

2017-02-08 Thread Jarno Rajahalme
The conntrack lookup for existing connections fails to invert the packet 5-tuple for NATted packets, and therefore fails to find the existing conntrack entry. Conntrack only stores 5-tuples for incoming packets, and there are various situations where a lookup on a packet that has already been tran

[PATCH v3 net-next 08/10] openvswitch: Add original direction conntrack tuple to sw_flow_key.

2017-02-08 Thread Jarno Rajahalme
Add the fields of the conntrack original direction 5-tuple to struct sw_flow_key. The new fields are initially marked as non-existent, and are populated whenever a conntrack action is executed and either finds or generates a conntrack entry. This means that these fields exist for all packets that

[PATCH 1/3 v2 net-next] enic: add devcmds for vxlan offload

2017-02-08 Thread Govindarajulu Varadarajan
This patch adds devcmds needed for vxlan offload. Implement 3 new devcmd overlay_offload_ctrl: enable/disable offload overlay_offload_cfg: update offload udp port number get_supported_feature_ver: get hw supported offload version. Each version has different bitmap for cs

[PATCH 2/3 v2 net-next] enic: add udp_tunnel ndo for vxlan offload

2017-02-08 Thread Govindarajulu Varadarajan
Defines enic_udp_tunnel_add/del for configuring vxlan tunnel offload. enic supports offload of only one ipv4/udp port. There are two modes that fw supports for vxlan offload. mode 0: fcoe bit is set for encapsulated packet. fcoe_fc_crc_ok is set if checksum of csum is ok. This bit is or of ip_csu

[PATCH 0/3 v2 net-next] enic: add vxlan offload support

2017-02-08 Thread Govindarajulu Varadarajan
This series adds vxlan offload support for enic driver. The first patch adds vxlan devcmd for configuring vxland offload parameters. Second patch adds ndo_udp_tunnel_add/del and offload on rx path. There are to modes in which fw supports vxlan offload. mode 0: fcoe bit is set for encapsulated pack

[PATCH 3/3 v2 net-next] enic: add vxlan offload on tx path

2017-02-08 Thread Govindarajulu Varadarajan
Define ndo_features_check. Hw supports offload only for ipv4 inner and ipv4 outer pkt. Code refactor for setting inner tcp pseudo csum. Signed-off-by: Govindarajulu Varadarajan --- drivers/net/ethernet/cisco/enic/enic_main.c | 126 +--- 1 file changed, 114 insertions(+),

[PATCH RFC v2 7/8] bnxt: Changes to use generic XDP infrastructure

2017-02-08 Thread Tom Herbert
Change XDP program management functional interface to correspond to new XDP API. Signed-off-by: Tom Herbert --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 14 drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 46 +++--

[PATCH RFC v2 2/8] mlx4: Changes to use generic XDP infrastructure

2017-02-08 Thread Tom Herbert
Change XDP program management functional interface to correspond to new XDP API. Signed-off-by: Tom Herbert --- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 92 +- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 27 drivers/net/ethernet/mellanox/mlx4/en_tx.c

RE: [net] net: phy: Fix lack of reference count on PHY driver

2017-02-08 Thread maowenan
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Thursday, February 09, 2017 12:24 AM > To: Robin Murphy > Cc: Florian Fainelli; netdev@vger.kernel.org; da...@davemloft.net; > rmk+ker...@armlinux.org.uk; maowenan; Catalin Marinas > Subject: Re: [net] net: phy: Fix l

[PATCH RFC v2 5/8] virt_net: Changes to use generic XDP infrastructure

2017-02-08 Thread Tom Herbert
Change XDP program management functional interface to correspond to new XDP API. Signed-off-by: Tom Herbert --- drivers/net/virtio_net.c | 98 +++- 1 file changed, 38 insertions(+), 60 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/v

Re: [PATCH net-next v2 3/3] net: ethernet: bgmac: driver power manangement

2017-02-08 Thread Florian Fainelli
On 02/08/2017 01:24 PM, Jon Mason wrote: > From: Joey Zhong > > Implement suspend/resume callbacks in the bgmac driver. This makes sure > that we de-initialize and re-initialize the hardware correctly before > entering suspend and when resuming. > > Signed-off-by: Joey Zhong > Signed-off-by: Jo

[PATCH net v3 0/3] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Florian Fainelli
Hi all, This patch series addresses the crash seen with the Generic PHY driver in phy_attach_direct() introduced in the latest pull to Linus. We also address how to properly bind and unbind to/from the PHY drivers which would previously be crashing in flames since we did not stop the state machin

[PATCH net v3 1/3] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Florian Fainelli
The Generic PHY drivers gets assigned after we checked that the current PHY driver is NULL, so we need to check a few things before we can safely dereference d->driver. This would be causing a NULL deference to occur when a system binds to the Generic PHY driver. Update phy_attach_direct() to do th

[PATCH net v3 2/3] net: phy: Check phydev->drv

2017-02-08 Thread Florian Fainelli
In preparation for supporting driver bind/unbind properly, sprinkle checks on phydev->drv where we may call into PHYLIB from user-space or other parts of the kernel. Suggested-by: Russell King Signed-off-by: Florian Fainelli --- drivers/net/phy/phy.c| 26 ++ driv

Re: [PATCH v2 net-next 5/9] openvswitch: Refactor labels initialization.

2017-02-08 Thread Joe Stringer
On 8 February 2017 at 11:32, Jarno Rajahalme wrote: > Refactoring conntrack labels initialization makes chenges in later *changes > patches easier to review. > > Signed-off-by: Jarno Rajahalme Minor other nit: > > cl = nf_ct_labels_find(ct); > if (!cl) { > nf_c

[PATCH RFC v2 8/8] xdp: Cleanup after API changes

2017-02-08 Thread Tom Herbert
This patch: - Change trace_xdp_hook_exception to trace_xdp_exception - Remove XDP_SETUP_PROG and XDP_QUERY_PROG constants - Remove bpf_warn_invalid_xdp_action Signed-off-by: Tom Herbert --- drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 4 +-- drivers/net/ethernet/mellanox/mlx4/en_r

Re: [PATCH v2 net-next 6/9] openvswitch: Inherit master's labels.

2017-02-08 Thread Joe Stringer
On 8 February 2017 at 11:32, Jarno Rajahalme wrote: > We avoid calling into nf_conntrack_in() for expected connections, as > that would remove the expectation that we want to stick around until > we are ready to commit the connection. Instead, we do a lookup in the > expectation table directly.

Re:[詢價]GFP-051U 詢價,交換式電源 48V 3.3A 電源

2017-02-08 Thread 吉密科技
採購你好, 收到你的來信了, 你正在尋找有關「電源製造」的可靠供應商嗎? 我們是台灣最專業的電源供應製造商,有自已的研發團隊與製造工廠, 我們有長期合作的客戶,如PHILIPS、HP、TOSHIBA、LITEON…等, 生產交換式電源供應器、USB充電器、POE供電的經驗非常豐富 歡迎與我們聯絡,期待你的回覆, 吉密科技 林榮宗 0422587996 gme.po...@msa.hinet.net 如寄錯請轉交,謝謝

[PATCH RFC v2 1/8] xdp: Infrastructure to generalize XDP

2017-02-08 Thread Tom Herbert
This patch creates an infrastructure for registering and running code at XDP hooks in drivers. This extends and generalizes the original XDP/BPF interface. Specifically, it defines a generic xdp_hook structure and a set of hooks that can be assigned to devices or napi instances. These hooks are al

[PATCH RFC v2 3/8] nfp: Changes to use generic XDP infrastructure

2017-02-08 Thread Tom Herbert
Change XDP program management functional interface to correspond to new XDP API. Signed-off-by: Tom Herbert --- drivers/net/ethernet/netronome/nfp/nfp_net.h | 5 +- .../net/ethernet/netronome/nfp/nfp_net_common.c| 172 ++--- .../net/ethernet/netronome/nfp/nfp_net_etht

Re: [PATCH net v3 1/3] net: phy: Fix PHY module checks and NULL deref in phy_attach_direct()

2017-02-08 Thread Florian Fainelli
On 02/08/2017 04:13 PM, Florian Fainelli wrote: > The Generic PHY drivers gets assigned after we checked that the current > PHY driver is NULL, so we need to check a few things before we can > safely dereference d->driver. This would be causing a NULL deference to > occur when a system binds to the

[PATCH net v3 3/3] net: phy: Fix PHY driver bind and unbind events

2017-02-08 Thread Florian Fainelli
The PHY library does not deal very well with bind and unbind events. The first thing we would see is that we were not properly canceling the PHY state machine workqueue, so we would be crashing while dereferencing phydev->drv since there is no driver attached anymore. Once we fix that, there are s

[PATCH RFC v2 6/8] mlx5: Changes to use generic XDP infrastructure

2017-02-08 Thread Tom Herbert
Change XDP program management functional interface to correspond to new XDP API. Signed-off-by: Tom Herbert --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 3 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 105 ++ drivers/net/ethernet/mellanox/mlx5/core/en_r

Re: Extending socket timestamping API for NTP

2017-02-08 Thread sdncurious
On Wed, Feb 8, 2017 at 2:26 AM, Miroslav Lichvar wrote: > On Tue, Feb 07, 2017 at 12:37:15PM -0800, sdncurious wrote: >> On Tue, Feb 7, 2017 at 6:01 AM, Miroslav Lichvar wrote: >> > 6) new SO_TIMESTAMPING option to get PHC index with HW timestamps >> > >> >With bridges, bonding and other thin

[PATCH 2/2] net: ethernet: ti: cpsw: fix resume because of usage count

2017-02-08 Thread Ivan Khoronzhuk
The usage count function is based on ndev_running flag that is updated before calling ndo_open/close, but if ndo is called in another place, in this case in suspend/resume, the counter is not changed, that breaks sus/resume. For common resource no difference which device is using it, does matter on

[PATCH 1/2] net: ethernet: ti: cpsw: fix cpsw assignment in resume

2017-02-08 Thread Ivan Khoronzhuk
There is a copy-paste error, which hides breaking of resume for CPSW driver: there was replaced netdev_priv() to ndev_to_cpsw(ndev) in suspend, but left it unchanged in resume. Fixes: 606f39939595a4d4540406bfc11f265b2036af6d (ti: cpsw: move platform data and slaves info to cpsw_common) Reported-b

[PATCH 0/2] net: ethernet: ti: cpsw: fix susp/resume

2017-02-08 Thread Ivan Khoronzhuk
These two patches fix suspend/resume chain. Ivan Khoronzhuk (2): net: ethernet: ti: cpsw: fix cpsw assignment in resume net: ethernet: ti: cpsw: fix resume because of usage count drivers/net/ethernet/ti/cpsw.c | 44 +- 1 file changed, 13 insertions(+),

[PATCH RFC v2 4/8] qede: Changes to use generic XDP infrastructure

2017-02-08 Thread Tom Herbert
Change XDP program management functional interface to correspond to new XDP API. Signed-off-by: Tom Herbert --- drivers/net/ethernet/qlogic/qede/qede.h | 3 +- drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 2 +- drivers/net/ethernet/qlogic/qede/qede_filter.c | 39 ++---

[PATCH RFC v2 0/8] xdp: Generalize XDP

2017-02-08 Thread Tom Herbert
This patch set generalizes XDP by making the hooks in drivers to be generic. This has a number of advantages: - Allows alternative users of the XDP hooks other than the original BPF - Allows a means to pipeline XDP programs together - Reduces the amount of code and complexity needed in d

Re: [PATCH v2 net-next 0/9] openvswitch: Conntrack integration improvements.

2017-02-08 Thread Joe Stringer
On 8 February 2017 at 11:32, Jarno Rajahalme wrote: > This series improves the conntrack integration code in the openvswitch > module by fixing bugs (patches 1, 4, and 6), clarifying code (patches > 2, 3, and 5), improving performance (patch 9), and adding new features > enabling better translatio

Re: [PATCH v2 net-next 8/9] openvswitch: Add force commit.

2017-02-08 Thread Joe Stringer
On 8 February 2017 at 11:32, Jarno Rajahalme wrote: > Stateful network admission policy may allow connections to one > direction and reject connections initiated in the other direction. > After policy change it is possible that for a new connection an > overlapping conntrack entry already exists,

Re: i40e: driver can't probe device (capabilities discovery error)

2017-02-08 Thread Guilherme G. Piccoli
I forgot to attach a perhaps important file, the output of lspci. Here it goes. Thanks, Guilherme 0002:01:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710/X557-AT 10GBASE-T [8086:1589] (rev 02) Subsystem: Super Micro Computer Inc Device [15d9:] Con

Re: [PATCH v2 net-next 7/9] openvswitch: Add original direction conntrack tuple to sw_flow_key.

2017-02-08 Thread Joe Stringer
On 8 February 2017 at 11:32, Jarno Rajahalme wrote: > Add the fields of the conntrack original direction 5-tuple to struct > sw_flow_key. The new fields are initially marked as non-existent, and > are populated whenever a conntrack action is executed and either finds > or generates a conntrack en

Re: [RFC 1/2] dt: emac: document device-tree based phy discovery and setup

2017-02-08 Thread Rob Herring
On Sun, Feb 05, 2017 at 11:25:05PM +0100, Christian Lamparter wrote: > This patch adds documentation for a new "phy-handler" property s/phy-handler/phy-handle/ > and "mdio" sub-node. These allows the enumeration of PHYs which > are supported by the phy library under drivers/net/phy. > > The EMAC

[patch net-next 14/15] mlxsw: spectrum_router: Don't reflect LINKDOWN nexthops

2017-02-08 Thread Jiri Pirko
From: Ido Schimmel The kernel resolves the nexthops for a given route using FIB_LOOKUP_IGNORE_LINKSTATE which means a notification can be sent for a route with one of its nexthops being LINKDOWN. In case IGNORE_ROUTES_WITH_LINKDOWN is set for the nexthop netdev, then we shouldn't reflect the nex

Re: Extending socket timestamping API for NTP

2017-02-08 Thread sdncurious
Dealing with individual interfaces does not make sense. This seems to be a case where Reciprocity property is violated and hence should be handled as such. This is different than when the two sides have single but different speed NIC's. In this case the NIC used and the speed can change with each p

[PATCH v3 net-next 2/2] net: dsa: mv88e6xxx: Add mv88e6390 watchdog interrupt support

2017-02-08 Thread Andrew Lunn
Implement the ops needed to support the watchdog for the MV88E6390 family. Signed-off-by: Andrew Lunn --- v2: All new v3: Remove g2_ prefix from ops. --- drivers/net/dsa/mv88e6xxx/chip.c | 9 +++ drivers/net/dsa/mv88e6xxx/global2.c | 48 +++ driv

[PATCH v3 net-next 1/2] net: dsa: mv88e6xxx: Add watchdog interrupt handler

2017-02-08 Thread Andrew Lunn
The switch contains a watchdog looking for issues with the internal gubbins of the switch. Hook the interrupt the watchdog triggers and log the value of the control register indicating why the watchdog fired. The watchdog can only be cleared with a switch reset, which will destroy the current confi

[PATCHv2 net-next] net: dsa: mv88e6xxx: Move forward declaration to where it is needed

2017-02-08 Thread Andrew Lunn
Move it out from the middle for the #defines to just before it is needed. Signed-off-by: Andrew Lunn Reviewed-by: Vivien Didelot --- v2: Rebased onto latest net-next. drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/m

[PATCH v3 net-next 0/2] mv88e6xxx Watchdog support

2017-02-08 Thread Andrew Lunn
The Marvell switches have an in built watchdog over some of the internal state machine. The watchdog can be configured to raise an interrupt on error. The problem the watchdog found is then logged to the kernel log. The older switches can automagically perform a software reset when the watchdog tr

[PATCH] net: micrel: ks8695net: use new api ethtool_{get|set}_link_ksettings

2017-02-08 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. As I don't have the hardware, I'd be very pleased if someone may test this patch. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/micrel/ks8695net.c | 91 +---

Re: [PATCH v2 net-next 3/9] openvswitch: Simplify labels length logic.

2017-02-08 Thread Joe Stringer
On 8 February 2017 at 11:32, Jarno Rajahalme wrote: > Since 23014011ba42 ("netfilter: conntrack: support a fixed size of 128 > distinct labels"), the size of conntrack labels extension has fixed to > 128 bits, so we do not need to check for labels sizes shorter than 128 > at run-time. This patch

Re: [PATCH net-next] net: dsa: Fix duplicate object rule

2017-02-08 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > While adding switch.o to the list of DSA object files, we essentially > duplicated the previous obj-y line and just added switch.o, remove the > duplicate. > > Fixes: f515f192ab4f ("net: dsa: add switch notifier") > Signed-off-by: Florian Fainelli Reviewe

[PATCH net-next] net: dsa: Fix duplicate object rule

2017-02-08 Thread Florian Fainelli
While adding switch.o to the list of DSA object files, we essentially duplicated the previous obj-y line and just added switch.o, remove the duplicate. Fixes: f515f192ab4f ("net: dsa: add switch notifier") Signed-off-by: Florian Fainelli --- net/dsa/Makefile | 1 - 1 file changed, 1 deletion(-)

[PATCH net] net: phy: Initialize mdio clock at probe function

2017-02-08 Thread Jon Mason
From: Yendapally Reddy Dhananjaya Reddy USB PHYs need the MDIO clock divisor enabled earlier to work. Initialize mdio clock divisor in probe function. The ext bus bit available in the same register will be used by mdio mux to enable external mdio. Signed-off-by: Yendapally Reddy Dhananjaya Reddy

Re: net/ipv4: warning in nf_nat_ipv4_fn

2017-02-08 Thread Florian Westphal
Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 926af6273fc683cd98cd0ce7bf0d04a02eed6742. > > A reproducer and .config are attached. > > WARNING: CPU: 2 PID: 26582 at > net/ipv4/netfilter/nf_nat_l3proto_ipv4.c:261 > n

Re: [PATCH] [net-next] ARM: orion: remove unused wnr854t_switch_plat_data

2017-02-08 Thread Florian Fainelli
On 02/08/2017 01:24 PM, Arnd Bergmann wrote: > The other instances of this structure got removed along with the MDIO > device change, but this one was left behind and needs to be removed > as well: > > arch/arm/mach-orion5x/wnr854t-setup.c:109:44: error: > 'wnr854t_switch_plat_data' defined but n

RE: [PATCH 1/1] hv_netvsc: fix a netvsc stats typo

2017-02-08 Thread Simon Xiao
Please ignore this patch. I will resubmit it to net-next. > -Original Message- > From: Simon Xiao [mailto:six...@microsoft.com] > Sent: Tuesday, February 7, 2017 10:03 AM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; de...@linuxdriverproject.org; > netdev@vger.kernel.org; l

Re: loopback device reference count leakage

2017-02-08 Thread Cong Wang
On Mon, Feb 6, 2017 at 6:32 PM, Kaiwen Xu wrote: > Hi Cong, > > I did some more testing, seems like your second assumption is correct. > There is indeed some things holding the references to a particular dst > which preventing it to be gc'ed. Excellent! > > I added logging to each dst_hold (or d

Re: [PATCHv6 net-next 3/6] sctp: add support for generating stream reconf ssn/tsn reset request chunk

2017-02-08 Thread Marcelo Ricardo Leitner
On Thu, Feb 09, 2017 at 01:18:17AM +0800, Xin Long wrote: > This patch is to define SSN/TSN Reset Request Parameter described > in rfc6525 section 4.3. > > It's also to drop some unnecessary __packed in include/linux/sctp.h. Oups, extra line in the changelog here. > > Signed-off-by: Xin Long >

[PATCH 1/2] net: qcom/emac: add ethtool support for reading hardware registers

2017-02-08 Thread Timur Tabi
Implement the get_regs_len and get_regs ethtool methods. The driver returns the values of selected hardware registers. The make the register offsets known to emac_ethtool, the the register offset macros are all combined into one header file. They were inexplicably and arbitrarily split between t

[PATCH 2/2] net: qcom/emac: add ethtool support for setting ring parameters

2017-02-08 Thread Timur Tabi
Implement the set_ringparam method, which allows the user to specify the size of the TX and RX descriptor rings. The values are constrained to the limits of the hardware. Since the driver does not use separate queues for mini or jumbo frames, attempts to set those values are rejected. If the int

Re: [PATCHv6 net-next 2/6] sctp: streams should be recovered when it fails to send request.

2017-02-08 Thread Marcelo Ricardo Leitner
On Thu, Feb 09, 2017 at 01:18:16AM +0800, Xin Long wrote: > Now when sending stream reset request, it closes the streams to > block further xmit of data until this request is completed, then > calls sctp_send_reconf to send the chunk. > > But if sctp_send_reconf returns err, and it doesn't recover

Re: [PATCHv6 net-next 1/6] sctp: drop unnecessary __packed from some stream reconf structures

2017-02-08 Thread Marcelo Ricardo Leitner
On Thu, Feb 09, 2017 at 01:18:15AM +0800, Xin Long wrote: > commit 85c727b59483 ("sctp: drop __packed from almost all SCTP structures") > has removed __packed from almost all SCTP structures. But there still are > three structures where it should be dropped. > > This patch is to remove it from som

Re: [PATCH v2 net-next 1/9] sunvnet: make sunvnet common code dynamically loadable

2017-02-08 Thread Shannon Nelson
On 2/8/2017 11:29 AM, David Miller wrote: From: Shannon Nelson Date: Tue, 7 Feb 2017 14:12:54 -0800 +static int __init sunvnet_common_init(void) +{ + pr_info("%s\n", version); + return 0; +} +module_init(sunvnet_common_init); + +static void __exit sunvnet_common_exit(void) +{ +

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

2017-02-08 Thread Marcelo Ricardo Leitner
On Wed, Feb 08, 2017 at 07:48:01PM -0200, Marcelo Ricardo Leitner wrote: > Hi Xin, > > On Thu, Feb 09, 2017 at 01:18:18AM +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

[PATCH 0/2] net: qcom/emac: add the last ethtool functions

2017-02-08 Thread Timur Tabi
These two patches implement the remaining two ethtool functions that are of interest to the Qualcomm EMAC driver. These are the last patches that will be submitted for the 4.11 merge window. Timur Tabi (2): net: qcom/emac: add ethtool support for reading hardware registers net: qcom/emac: ad

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

2017-02-08 Thread Marcelo Ricardo Leitner
Hi Xin, On Thu, Feb 09, 2017 at 01:18:18AM +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-b

RE: [PATCHv4 0/7] Refactor macvtap to re-use tap functionality by other virtual intefaces

2017-02-08 Thread Grandhi, Sainath
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, February 07, 2017 10:28 AM > To: Grandhi, Sainath > Cc: netdev@vger.kernel.org; mah...@bandewar.net; linux- > ker...@vger.kernel.org > Subject: Re: [PATCHv4 0/7] Refactor macvtap to re-use tap functio

[PATCHv5 0/7] Refactor macvtap to re-use tap functionality by other virtual intefaces

2017-02-08 Thread Sainath Grandhi
Tap character devices can be implemented on other virtual interfaces like ipvlan, similar to macvtap. Source code for tap functionality in macvtap can be re-used for this purpose. This patch series splits macvtap source into two modules, macvtap and tap. This patch series also includes a patch for

[PATCHv5 3/7] tap: Tap character device creation/destroy API

2017-02-08 Thread Sainath Grandhi
This patch provides tap device create/destroy APIs in tap.c. Signed-off-by: Sainath Grandhi --- drivers/net/macvtap_main.c | 30 +++--- drivers/net/tap.c | 62 ++ include/linux/if_tap.h | 3 +++ 3 files changed, 63 inserti

[PATCHv5 4/7] tap: Abstract type of virtual interface from tap implementation

2017-02-08 Thread Sainath Grandhi
macvlan object is re-structured to hold tap related elements in a separate entity, tap_dev. Upon NETDEV_REGISTER device_event, tap_dev is registered with idr and fetched again on tap_open. Few of the tap functions are modified to accepted tap_dev as argument. tap_dev object includes callbacks to be

[PATCHv5 2/7] tap: Renaming tap related APIs, data structures, macros

2017-02-08 Thread Sainath Grandhi
Renaming tap related APIs, data structures and macros in tap.c from macvtap_.* to tap_.* Signed-off-by: Sainath Grandhi --- drivers/net/macvtap_main.c | 18 +-- drivers/net/tap.c | 332 ++--- drivers/vhost/net.c| 3 +- include/linux/if

[PATCHv5 5/7] tap: Extending tap device create/destroy APIs

2017-02-08 Thread Sainath Grandhi
Extending tap APIs get/free_minor and create/destroy_cdev to handle more than one type of virtual interface. Signed-off-by: Sainath Grandhi --- drivers/net/macvtap_main.c | 6 +-- drivers/net/tap.c | 101 +++-- include/linux/if_tap.h | 4

[PATCHv5 1/7] tap: Refactoring macvtap.c

2017-02-08 Thread Sainath Grandhi
macvtap module has code for tap/queue management and link management. This patch splits the code into macvtap_main.c for link management and tap.c for tap/queue management. Functionality in tap.c can be re-used for implementing tap on other virtual interfaces. Signed-off-by: Sainath Grandhi --

[PATCHv5 7/7] ipvtap: IP-VLAN based tap driver

2017-02-08 Thread Sainath Grandhi
This patch adds a tap character device driver that is based on the IP-VLAN network interface, called ipvtap. An ipvtap device can be created in the same way as an ipvlan device, using 'type ipvtap', and then accessed using the tap user space interface. Signed-off-by: Sainath Grandhi --- drivers/

[PATCHv5 6/7] tap: tap as an independent module

2017-02-08 Thread Sainath Grandhi
This patch makes tap a separate module for other types of virtual interfaces, for example, ipvlan to use. Signed-off-by: Sainath Grandhi --- drivers/net/Kconfig | 7 +++ drivers/net/Makefile | 3 +-- drivers/net/{macvtap_main.c => macvtap.c} | 0

[PATCH net v3 0/2] net: ethernet: bgmac: bug fixes

2017-02-08 Thread Jon Mason
Changes in v3: * Reworked the init sequence patch to only remove the device reset if the device is actually in reset. Given that this code doesn't bear much resemblance to the original code, I'm changing the author of the patch. This was tested on NS2 SVK. Changes in v2: * Reworked the fir

[PATCH] netlink: move nla_put_{u8,u16,u32} out of line

2017-02-08 Thread Arnd Bergmann
When CONFIG_KASAN is enabled, the "--param asan-stack=1" causes rather large stack frames in some functions. This goes unnoticed normally because CONFIG_FRAME_WARN is disabled with CONFIG_KASAN by default as of commit 3f181b4d8652 ("lib/Kconfig.debug: disable -Wframe-larger-than warnings with KASAN

  1   2   3   4   >