displayed name changed in ip link show for bridge- and other interfaces

2015-06-14 Thread Ulrich Gemkow
Hello, between Linux 4.0.5 and 4.1-rc7 the name as shown by ip link show of bridge interfaces (and at least the dummy interface) changed from (i.e.) br1 to br1@NONE. This breaks (at least for me :-) userspace (ip link show parsing scripts). It is easy to solve, so not a big problem. I am using

[PATCH v4] NET: Add ezchip ethernet driver

2015-06-14 Thread Noam Camus
From: Noam Camus no...@ezchip.com Simple LAN device for debug or management purposes. Device supports interrupts for RX and TX(completion). Device does not have DMA ability. Signed-off-by: Noam Camus no...@ezchip.com Signed-off-by: Tal Zilcer t...@ezchip.com Acked-by: Alexey Brodkin

[PATCH net] net/mlx4_core: Disable Granular QoS per VF under IB/Eth VPI configuration

2015-06-14 Thread Or Gerlitz
Due to firmware bug, under VPI configuration when port1 = IB and port2 = Eth, Granular QoS per VF isn't working properly. More over, the whole QP0/QP1 Para-Virtualization in the mlx4 IB driver is broken on that config. Hence, we must disable Granular QoS per VF under that configuration till a fix

[PATCH net-next 1/2] bonding: export slave's actor_oper_port_state via sysfs and netlink

2015-06-14 Thread Nikolay Aleksandrov
Export the actor_oper_port_state of each port via sysfs and netlink. In 802.3ad mode it is valuable for the user to be able to check the actor_oper state, it is already exported via bond's proc entry. Signed-off-by: Nikolay Aleksandrov ra...@blackwall.org --- drivers/net/bonding/bond_netlink.c

[PATCH net-next 0/2] bonding: extend the 3ad exported attributes

2015-06-14 Thread Nikolay Aleksandrov
Hi, These are two small patches that export actor_oper_port_state and partner_oper_port_state via netlink and sysfs, until now they were only exported via bond's proc entry. If this set gets accepted I have an iproute2 patch prepared that will export them with which I tested these changes. Best

[PATCH net-next 2/2] bonding: export slave's partner_oper_port_state via sysfs and netlink

2015-06-14 Thread Nikolay Aleksandrov
Export the partner_oper_port_state of each port via sysfs and netlink. In 802.3ad mode it is valuable for the user to be able to check the partner_oper state, it is already exported via bond's proc entry. Signed-off-by: Nikolay Aleksandrov ra...@blackwall.org --- Note: There's one line that's 80

Re: [RFC PATCH net-next 1/4] net: don't reforward packets already forwarded by offload device

2015-06-14 Thread Jiri Pirko
Sat, Jun 13, 2015 at 08:04:27PM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Just before queuing skb for xmit on port, check if skb has been marked by switchdev port driver as already fordwarded by device. If so, drop skb. A non-zero skb-fwd_mark field is set by the

Re: [PATCH net-next] Increase limit of macvtap queues

2015-06-14 Thread Michael S. Tsirkin
On Fri, Jun 12, 2015 at 07:00:28PM +0530, Pankaj Gupta wrote: Macvtap should be compatible with tuntap for maximum number of queues. '1059590254fa9dce9cafc4f07d1103dbec415e76' removes the limitation and increases number of queues in tuntap. Now, Its safe to increase number of queues in Macvtap

Re: [RFC PATCH net-next 3/4] rocker: add fwd_mark support

2015-06-14 Thread Jiri Pirko
Sat, Jun 13, 2015 at 08:04:29PM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the skb-fwd_mark using the ingress port's dev-fwd_mark. This will be the hint to the kernel that this packet has already been forwarded by

Re: [RFC PATCH net-next 2/4] switchdev: add fwd_mark generator helper

2015-06-14 Thread Jiri Pirko
Sat, Jun 13, 2015 at 08:04:28PM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com skb-fwd_mark and dev-fwd_mark are 32-bit and should be unique for device and maybe even unique for a sub-set of ports within device, so add switchdev helper function to generate unique marks based

RE: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus

2015-06-14 Thread Duan Andy
From: Andrew Lunn and...@lunn.ch Sent: Friday, June 12, 2015 11:39 PM To: David Miller Cc: Duan Fugang-B38611; Cory Tusar; netdev; Andrew Lunn Subject: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus When a switch is attached to the mdio bus, the mdio bus can be used while

Re: [BUG ?] rtlwifi: rtl8723be: condition with no effect

2015-06-14 Thread Larry Finger
On 06/13/2015 05:43 AM, Nicholas Mc Guire wrote: From: Nicholas Mc Guire hof...@osadl.org scanning for trivial bug-patters with coccinelle spatches returned: ./drivers/net/wireless/rtlwifi/rtl8723be/dm.c:886 WARNING: condition with no effect (if branch == else) Added in 'commit

Re: [BUG ?] rtlwifi: rtl8723be: condition with no effect

2015-06-14 Thread Nicholas Mc Guire
On Sun, 14 Jun 2015, Larry Finger wrote: On 06/13/2015 05:43 AM, Nicholas Mc Guire wrote: From: Nicholas Mc Guire hof...@osadl.org scanning for trivial bug-patters with coccinelle spatches returned: ./drivers/net/wireless/rtlwifi/rtl8723be/dm.c:886 WARNING: condition with no effect (if

Re: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus

2015-06-14 Thread Andrew Lunn
On Sun, Jun 14, 2015 at 08:07:12AM +, Duan Andy wrote: From: Andrew Lunn and...@lunn.ch Sent: Friday, June 12, 2015 11:39 PM To: David Miller Cc: Duan Fugang-B38611; Cory Tusar; netdev; Andrew Lunn Subject: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus When a

Re: displayed name changed in ip link show for bridge- and other interfaces

2015-06-14 Thread Oliver Hartkopp
On 14.06.2015 12:00, Ulrich Gemkow wrote: between Linux 4.0.5 and 4.1-rc7 the name as shown by ip link show of bridge interfaces (and at least the dummy interface) changed from (i.e.) br1 to br1@NONE. This breaks (at least for me :-) userspace (ip link show parsing scripts). It is easy to

Re: [RFC PATCH net-next 2/4] switchdev: add fwd_mark generator helper

2015-06-14 Thread Scott Feldman
On Sat, Jun 13, 2015 at 11:56 PM, Jiri Pirko j...@resnulli.us wrote: Sat, Jun 13, 2015 at 08:04:28PM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com skb-fwd_mark and dev-fwd_mark are 32-bit and should be unique for device and maybe even unique for a sub-set of ports within

[PATCH net-next] bridge: del external_learned fdbs from device on flush or ageout

2015-06-14 Thread sfeldma
From: Scott Feldman sfel...@gmail.com We need to delete from offload the device externally learnded fdbs when any one of these events happen: 1) Bridge ages out fdb. (When bridge is doing ageing vs. device doing ageing. If device is doing ageing, it would send SWITCHDEV_FDB_DEL directly). 2)

Re: [PATCH net-next] tcp: cdg: use div_u64()

2015-06-14 Thread David Miller
From: Kenneth Klette Jonassen kenne...@ifi.uio.no Date: Fri, 12 Jun 2015 17:24:03 +0200 Fixes cross-compile to mips. Signed-off-by: Kenneth Klette Jonassen kenne...@ifi.uio.no Applied, thanks. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH net-next] bridge: del external_learned fdbs from device on flush or ageout

2015-06-14 Thread Rami Rosen
Hi, You mention bridge doing ageing vs. device doing ageing. AFAIK, there is no way to prevent a bridge from doing aging by a sysfs entry. Do you think that preventing bridge aging via sysfs is needed? Regards, Rami Rosen -- To unsubscribe from this list: send the line unsubscribe netdev in the

Re: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus

2015-06-14 Thread Florian Fainelli
Le 06/14/15 07:41, Andrew Lunn a écrit : On Sun, Jun 14, 2015 at 08:07:12AM +, Duan Andy wrote: From: Andrew Lunn and...@lunn.ch Sent: Friday, June 12, 2015 11:39 PM To: David Miller Cc: Duan Fugang-B38611; Cory Tusar; netdev; Andrew Lunn Subject: [PATCH] net: fec: Ensure clocks are

[GIT] [4.2] NFC update

2015-06-14 Thread Samuel Ortiz
Hi David, This is the NFC pull request for 4.2: - NCI drivers can now define their own handlers for processing proprietary NCI responses and notifications. - NFC vendors can use a dedicated netlink API to send their own proprietary commands, like e.g. all commands needed to implement

Re: [RFC PATCH net-next 3/4] rocker: add fwd_mark support

2015-06-14 Thread Scott Feldman
On Sun, Jun 14, 2015 at 12:02 AM, Jiri Pirko j...@resnulli.us wrote: Sat, Jun 13, 2015 at 08:04:29PM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the skb-fwd_mark using the ingress port's dev-fwd_mark. This will be the

Re: displayed name changed in ip link show for bridge- and other interfaces

2015-06-14 Thread Oliver Hartkopp
@Nicolas: Just saw that you were not responsible for the @NONE m) Sorry. Btw. do you know why this @NONE stuff just emerged in 4.1-rc ? Regards, Oliver On 14.06.2015 20:50, Oliver Hartkopp wrote: On 14.06.2015 12:00, Ulrich Gemkow wrote: between Linux 4.0.5 and 4.1-rc7 the name as shown by

Fwd: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-14 Thread Linus Torvalds
Hmm. Oliver is marked as the maintainer of the USB CDC code, but others have touched it more recently. So I'm just wildly adding people to the cc to comment on this patch and maybe apply it. Oliver/David/Ben/Bjørn? Linus -- Forwarded message -- From: xiaomao

RE: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus

2015-06-14 Thread Duan Andy
From: Florian Fainelli f.faine...@gmail.com Sent: Monday, June 15, 2015 3:32 AM To: Andrew Lunn; Duan Fugang-B38611 Cc: David Miller; Cory Tusar; netdev Subject: Re: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus Le 06/14/15 07:41, Andrew Lunn a écrit : On Sun, Jun 14,

Re: [PATCH net-next] bridge: del external_learned fdbs from device on flush or ageout

2015-06-14 Thread Scott Feldman
On Sun, Jun 14, 2015 at 3:14 PM, Rami Rosen roszenr...@gmail.com wrote: Hi, You mention bridge doing ageing vs. device doing ageing. AFAIK, there is no way to prevent a bridge from doing aging by a sysfs entry. Do you think that preventing bridge aging via sysfs is needed? The topic has

Re: [PATCH net-next] rocker: fix neigh tbl index increment race

2015-06-14 Thread Simon Horman
On Fri, Jun 12, 2015 at 09:24:40PM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com rocker-neigh_tbl_next_index is used to generate unique indices for neigh entries programmed into the device. The way new indices were generated was racy with the new prepare-commit

[PATCH 1/1] net: replace if()/BUG with BUG_ON()

2015-06-14 Thread Maninder Singh
Use BUG_ON(condition) instead of if(condition)/BUG() Signed-off-by: Maninder Singh maninder...@samsung.com Reviewed-by: Akhilesh Kumar akhiles...@samsung.com --- net/packet/af_packet.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/net/packet/af_packet.c

RENDSZERGAZDA

2015-06-14 Thread br1788
Ez az üzenet a rendszergazda üzenetközpont valamennyi tulajdonosa webmail számlák. Jelenleg korszer#369;sítése a adatbázis-központ és figyelembe email. Töröljük email segítségével webes e-mail fiókot, hogy nagyobb teret az új számlákat. Ha még nem frissítette el#337;tt ez az utolsó alkalom, hogy

Re: [RFC PATCH net-next 2/4] switchdev: add fwd_mark generator helper

2015-06-14 Thread Jiri Pirko
Sun, Jun 14, 2015 at 07:50:13PM CEST, sfel...@gmail.com wrote: On Sat, Jun 13, 2015 at 11:56 PM, Jiri Pirko j...@resnulli.us wrote: Sat, Jun 13, 2015 at 08:04:28PM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com skb-fwd_mark and dev-fwd_mark are 32-bit and should be unique

Re: [RFC PATCH net-next 3/4] rocker: add fwd_mark support

2015-06-14 Thread Jiri Pirko
Sun, Jun 14, 2015 at 08:00:11PM CEST, sfel...@gmail.com wrote: On Sun, Jun 14, 2015 at 12:02 AM, Jiri Pirko j...@resnulli.us wrote: Sat, Jun 13, 2015 at 08:04:29PM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the

[PATCH net-next 00/15] Simplify netfilter and network namespaces

2015-06-14 Thread Eric W. Biederman
While looking into what it would take to route packets out to network devices in other network namespaces I started looking at the netfilter hooks, and there is a lot of nasty code to figure out which network namespace to filter the packets in. Just passing the network namespace into the

[PATCH net-next 07/15] nftables: kill nft_pktinfo.ops

2015-06-14 Thread Eric W. Biederman
- Add nft_pktinfo.pf to replace ops-pf - Add nft_pktinfo.hook to replace ops-hooknum This simplifies the code, makes it more readable, and likely reduces cache line misses. Maintainability is enhanced as the details of nft_hook_ops are of no concern to the recpients of nft_pktinfo.

[PATCH net-next 06/15] inet netfilter: Prefer state-hook to ops-hooknum

2015-06-14 Thread Eric W. Biederman
The values of nf_hook_state.hook and nf_hook_ops.hooknum must be the same by definition. We are more likely to access the fields in nf_hook_state over the fields in nf_hook_ops so with a little luck this results in fewer cache line misses, and slightly more consistent code. Signed-off-by: Eric

[PATCH net-next 02/15] netfilter: Pass struct net into the netfilter hooks

2015-06-14 Thread Eric W. Biederman
Pass a network namespace parameter into the netfilter hooks. At the call site of the netfilter hooks the path a packet is taking through the network stack is well known which allows the network namespace to be easily and reliabily. This allows the replacement of magic code like

[PATCH net-next 03/15] netfilter: Use nf_hook_state.net

2015-06-14 Thread Eric W. Biederman
Instead of saying net = dev_net(state-in?state-in:state-out) just say state-net. As that information is now availabe, much less confusing and much less error prone. Signed-off-by: Eric W. Biederman ebied...@xmission.com --- net/bridge/netfilter/ebtable_filter.c | 4 ++--

[PATCH net-next 09/15] x_tables: Pass struct net in xt_action_param

2015-06-14 Thread Eric W. Biederman
As xt_action_param lives on the stack this does not bloat any persistent data structures. This is a first step in making netfilter code that needs to know which network namespace it is executing in simpler. Signed-off-by: Eric W. Biederman ebied...@xmission.com ---

[PATCH net-next 08/15] tc: Simplify em_ipset_match

2015-06-14 Thread Eric W. Biederman
em-net is always set and always available, use it in preference to dev_net(skb-dev). Signed-off-by: Eric W. Biederman ebied...@xmission.com --- net/sched/em_ipset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sched/em_ipset.c b/net/sched/em_ipset.c index

[PATCH net-next 01/15] netfilter: Kill unused copies of RCV_SKB_FAIL

2015-06-14 Thread Eric W. Biederman
This appears to have been a dead macro in both nfnetlink_log.c and nfnetlink_queue_core.c since these pieces of code were added in 2005. Signed-off-by: Eric W. Biederman ebied...@xmission.com --- net/netfilter/nfnetlink_log.c| 2 -- net/netfilter/nfnetlink_queue_core.c | 2 -- 2 files

Re: [stable] net: make skb_gso_segment error handling more robust

2015-06-14 Thread Zefan Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2015/5/5 6:38, Ben Hutchings wrote: Brad Spengler pointed out this commit as a candidate for stable: commit 330966e501ffe282d7184fde4518d5e0c24bc7f8 Author: Florian Westphal f...@strlen.de Date: Mon Oct 20 13:49:17 2014 +0200 net:

Re: [PATCH 1/1] net: fs_enet: Disable NETIF_F_SG feature for Freescale MPC5121

2015-06-14 Thread Alexander Popov
10.06.2015 03:14, David Miller пишет: From: Alexander Popov alex.po...@linux.com Date: Wed, 10 Jun 2015 02:57:42 +0300 skb_copy_from_linear_data() which doesn't work well for non-linear sk_buff: The correct fix is to use an SKB copy routine which can handle non-linear data. Thanks, David.

Re: [PATCH v5 00/24] Convert the posix_clock_operations and k_clock structure to ready for 2038

2015-06-14 Thread Baolin Wang
On 12 June 2015 at 21:16, Thomas Gleixner t...@linutronix.de wrote: On Fri, 12 Jun 2015, Baolin Wang wrote: Sigh. Again threading of the series failed. Some patches are, the whole series is not. Can you please get your tools straight? You neither managed to cc me on the security patch. -

[PATCH net-next 10/15] x_tables: Use par-net instead of computing from the passed net devices

2015-06-14 Thread Eric W. Biederman
Signed-off-by: Eric W. Biederman ebied...@xmission.com --- net/bridge/netfilter/ebt_log.c | 2 +- net/bridge/netfilter/ebt_nflog.c | 2 +- net/ipv4/netfilter/ipt_SYNPROXY.c | 2 +- net/ipv4/netfilter/ipt_rpfilter.c | 5 ++--- net/ipv6/netfilter/ip6t_REJECT.c | 2 +-

[PATCH net-next 05/15] inet netfilter: Remove hook from ip6t_do_table, arp_do_table, ipt_do_table

2015-06-14 Thread Eric W. Biederman
The values of ops-hooknum and state-hook are guaraneted to be equal making the hook argument to ip6t_do_table, arp_do_table, and ipt_do_table is unnecessary. Remove the unnecessary hook argument. In the callers use state-hook instead of ops-hooknum for clarity and to reduce the number of

[PATCH net-next 04/15] ebtables: Simplify the arguments to ebt_do_table

2015-06-14 Thread Eric W. Biederman
Nearly everything thing of interest to ebt_do_table is already present in nf_hook_state. Simplify ebt_do_table by just passing in the skb, nf_hook_state, and the table. This make the code easier to read and maintenance easier. To support this create an nf_hook_state on the stack in ebt_broute

Re: [PATCH] net: fec: Ensure clocks are enabled while using mdio bus

2015-06-14 Thread Andrew Lunn
Hi Andy If so, it just need to enable ENET ipg clock for your cases, not all enet clocks. Ipg clock is for MDIO bus read/write, for ENET registers accessing. (fep-clk_ipg) O.K, thanks. I will respin the patch with just the ipg clock. Which switch phy do you use ? I tried BCM54220 switch

[PATCH net-next 12/15] nf_tables: Use pkt-net instead of computing net from the passed net_devices

2015-06-14 Thread Eric W. Biederman
Signed-off-by: Eric W. Biederman ebied...@xmission.com --- net/bridge/netfilter/nft_reject_bridge.c | 13 ++--- net/ipv6/netfilter/nft_reject_ipv6.c | 6 +++--- net/netfilter/nf_tables_core.c | 4 +--- net/netfilter/nft_log.c | 3 +--

[PATCH net-next 14/15] ipv4: Pass struct net into ip_defrag and ip_check_defrag

2015-06-14 Thread Eric W. Biederman
Don't make ip_defrag guess which network namespace it needs to defragment packets in. Signed-off-by: Eric W. Biederman ebied...@xmission.com --- drivers/net/macvlan.c | 2 +- include/net/ip.h| 6 +++--- net/ipv4/ip_fragment.c | 8 +++-

[PATCH net-next 11/15] nftables: Pass struct net in nft_pktinfo

2015-06-14 Thread Eric W. Biederman
nft_pktinfo is passed on the stack so this does not bloat any in core data structures. By centrally computing this information this makes maintence of the code simpler, and understading of the code easier. Signed-off-by: Eric W. Biederman ebied...@xmission.com ---

[PATCH net-next 13/15] nf_conntrack: Add a struct net parameter to l4_pkt_to_tuple

2015-06-14 Thread Eric W. Biederman
As gre does not have the srckey in the packet gre_pkt_to_tuple needs to perform a lookup in it's per network namespace tables. Pass in the proper network namespace to all pkt_to_tuple implementations to ensure gre (and any similar protocols) can get this right. Signed-off-by: Eric W. Biederman

[PATCH net-next 15/15] ipv6: Pass struct net into nf_ct_frag6_gather

2015-06-14 Thread Eric W. Biederman
Make it explicit which network namespace the packets are being reassembled in, don't make nf_cf_frag6_gather guess. Signed-off-by: Eric W. Biederman ebied...@xmission.com --- include/net/netfilter/ipv6/nf_defrag_ipv6.h | 2 +- net/ipv6/netfilter/nf_conntrack_reasm.c | 4 +---

Re: [PATCH v5] sctp: fix ASCONF list handling

2015-06-14 Thread David Miller
From: marcelo.leit...@gmail.com Date: Fri, 12 Jun 2015 10:16:41 -0300 From: Marcelo Ricardo Leitner marcelo.leit...@gmail.com -auto_asconf_splist is per namespace and mangled by functions like sctp_setsockopt_auto_asconf() which doesn't guarantee any serialization. Also, the call to

Re: [PATCH v4] NET: Add ezchip ethernet driver

2015-06-14 Thread Florian Fainelli
Le 06/13/15 23:26, Noam Camus a écrit : From: Noam Camus no...@ezchip.com Simple LAN device for debug or management purposes. Device supports interrupts for RX and TX(completion). Device does not have DMA ability. Signed-off-by: Noam Camus no...@ezchip.com Signed-off-by: Tal Zilcer