I have an urgent project for you

2018-07-14 Thread dry...@belozersky.msu.ru

Re: pull-request: bpf-next 2018-07-15

2018-07-14 Thread David Miller
From: Daniel Borkmann Date: Sun, 15 Jul 2018 01:19:49 +0200 > The following pull-request contains BPF updates for your *net-next* tree. > > The main changes are: ... > Please consider pulling these changes from: > > git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git Pulled, thank

Re: [PATCH v2 iproute2-next 2/5] bridge: colorize output and use JSON print library

2018-07-14 Thread Roopa Prabhu
On Tue, Feb 20, 2018 at 11:24 AM, Stephen Hemminger wrote: > From: Stephen Hemminger > > Use new functions from json_print to simplify code. > Provide standard flag for colorizing output. > > The shortened -c flag is ambiguous it could mean color or > compressvlan; it is now changed to mean color

16-byte extra data, and 16-byte alignment, in the memory-mapped receive code for AF_PACKET sockets

2018-07-14 Thread Guy Harris
tpacket_rcv() does if (sk->sk_type == SOCK_DGRAM) { macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + po->tp_reserve; } else { unsigned int maclen = skb_network_offset(skb); netoff = TPACKET_ALIGN

I have an urgent project for you

2018-07-14 Thread dry...@belozersky.msu.ru

pull-request: bpf-next 2018-07-15

2018-07-14 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net-next* tree. The main changes are: 1) Various different arm32 JIT improvements in order to optimize code emission and make the JIT code itself more robust, from Russell. 2) Support simultaneous driver and offloaded XDP in

Re: [PATCH bpf-next 0/6] TCP-BPF callback for listening sockets

2018-07-14 Thread Daniel Borkmann
On 07/12/2018 02:33 AM, Andrey Ignatov wrote: > This patchset adds TCP-BPF callback for listening sockets. > > Patch 0001 provides more details and is the main patch in the set. > > Patch 0006 adds selftest for the new callback. > > Other patches are bug fixes and improvements in TCP-BPF selftes

[PATCH iproute2] ipaddress: Fix and make consistent label match handling

2018-07-14 Thread Serhey Popovych
Since commit 9516823051ce ("ipaddress: Improve print_linkinfo()") we return -1 instead of 0 when ip-address(8) label does not match network device name as we did before change. This causes regression when trying to output ip address matching label: # ip addr add 192.168.192.1/24 dev lo label

Re: [RFC iproute2-next v1 5/5] tc: Add support for configuring the taprio scheduler

2018-07-14 Thread Stephen Hemminger
On Fri, 13 Jul 2018 17:06:11 -0700 Vinicius Costa Gomes wrote: > + while (fscanf(f, "%ms %x %" PRIu32 "\n", &cmd_str, &gatemask, > &interval) != EOF) { > + struct rtattr *entry; > + > + err = str_to_entry_cmd(cmd_str); > + free(cmd_str); > + > +

Re: [PATCH iproute2-next] ipaddress: fix label matching

2018-07-14 Thread Vincent Bernat
❦ 14 juillet 2018 21:54 +0300, Serhey Popovych  : > We should leave only filter.label check and return 0: > > if (filter.label) > return 0; > > This will ensure we exit from print_linkinfo() earlier, skip > print_link_stats() and push final filtering by label to > print_selected_a

Re: [PATCH iproute2-next] ipaddress: fix label matching

2018-07-14 Thread Serhey Popovych
Serhey Popovych wrote: > Vincent Bernat wrote: >> ❦ 11 juillet 2018 21:01 -0400, David Ahern  : >> +++ b/ip/ipaddress.c @@ -837,11 +837,6 @@ int print_linkinfo(const struct sockaddr_nl *who, if (!name) return -1; - if (filter.label && - (!fi

Re: [PATCH net-next 0/4] mlxsw: Add VRRP support

2018-07-14 Thread David Miller
From: Ido Schimmel Date: Sat, 14 Jul 2018 11:39:50 +0300 > When a router that is acting as the default gateway of a host stops > functioning, the host will encounter packet loss until the router starts > functioning again. > > To increase the reliability of the default gateway without performing

[PATCHv2 wpan] net: 6lowpan: fix reserved space for single frames

2018-07-14 Thread Alexander Aring
This patch fixes patch add handling to take care tail and headroom for single 6lowpan frames. We need to be sure we have a skb with the right head and tailroom for single frames. This patch do it by using skb_copy_expand() if head and tailroom is not enough allocated by upper layer. Bugzilla: http

Re: [PATCH net-next] net: sched: refactor flower walk to iterate over idr

2018-07-14 Thread Or Gerlitz
On Tue, Jul 10, 2018 at 8:02 PM, Vlad Buslov wrote: > > On Tue 10 Jul 2018 at 13:55, Simon Horman wrote: >> On Mon, Jul 09, 2018 at 01:29:11PM +0300, Vlad Buslov wrote: >>> Extend struct tcf_walker with additional 'cookie' field. It is intended to >>> be used by classifier walk implementations to

Re: [BUG] bonded interfaces drop bpdu (stp) frames

2018-07-14 Thread Michal Soltys
On 07/13/2018 02:15 AM, Mahesh Bandewar (महेश बंडेवार) wrote: On Thu, Jul 12, 2018 at 4:14 PM, Michal Soltys wrote: On 2018-07-13 00:03, Jay Vosburgh wrote: Mahesh Bandewar (महेश बंडेवार) wrote: On Thu, Jul 12, 2018 at 11:03 AM, Jay Vosburgh wrote: Michal Soltys wrote: On 07/12/2018 04:

[PATCH net-next 2/4] mlxsw: spectrum_router: Direct macvlans' MACs to router

2018-07-14 Thread Ido Schimmel
An IP packet received on a netdev with a macvlan upper whose MAC matches the packet's destination MAC will be re-injected to the Rx path as if it was received by the macvlan, and perform an L3 lookup. Reflect this functionality to the ASIC by programming FDB entries that will direct MACs of macvla

[PATCH net-next 1/4] mlxsw: spectrum: Enable macvlan upper devices

2018-07-14 Thread Ido Schimmel
In order to allow more unicast MAC addresses (e.g., VRRP virtual MAC) to be directed to the router we need to enable macvlan uppers on top of mlxsw netdevs. Allow macvlan upper devices on top of mlxsw netdevs and sanitize configurations that can't work. For example, a macvlan can't be enslaved to

[PATCH net-next 3/4] mlxsw: spectrum: Add VRRP traps

2018-07-14 Thread Ido Schimmel
Virtual Router Redundancy Protocol packets are used to communicate the state of the Master router associated with the virtual router ID (VRID). These are link-local multicast packets sent with IP protocol 112 that are trapped in the router block in the ASIC. Add a trap for these packets and mark

[PATCH net-next 4/4] mlxsw: spectrum_router: Optimize processing of VRRP MACs

2018-07-14 Thread Ido Schimmel
Hosts using a VRRP router send their packets with a destination MAC of the VRRP router which is of the following form [1]: IPv4 - 00-00-5E-00-01-{VRID} IPv6 - 00-00-5E-00-02-{VRID} Where VRID is the ID of the virtual router. Such packets are directed to the router block in the ASIC by an FDB entr

[PATCH net-next 0/4] mlxsw: Add VRRP support

2018-07-14 Thread Ido Schimmel
When a router that is acting as the default gateway of a host stops functioning, the host will encounter packet loss until the router starts functioning again. To increase the reliability of the default gateway without performing reconfiguration on the host, a host can use a Virtual Router Redunda

Re: [PATCH bpf-next] tools: include reallocarray feature test in FEATURE_TESTS_BASIC

2018-07-14 Thread Daniel Borkmann
On 07/14/2018 04:26 AM, Guenter Roeck wrote: > On 07/13/2018 07:08 PM, Jakub Kicinski wrote: >> perf propagates its feature check results to libbpf.  This means >> features for which perf probes must be a superset of libbpf's >> required features.  perf depends on FEATURE_TESTS_BASIC for its list >

Re: [PATCH iproute2-next v2] iplink: add support for reporting multiple XDP programs

2018-07-14 Thread Daniel Borkmann
On 07/14/2018 12:54 AM, Jakub Kicinski wrote: > Kernel now supports attaching XDP programs in the driver > and hardware at the same time. Print that information > correctly. > > In case there are multiple programs attached kernel will > not provide IFLA_XDP_PROG_ID, so don't expect it to be > the

Re: [PATCH iproute2-next] ipaddress: fix label matching

2018-07-14 Thread Serhey Popovych
Vincent Bernat wrote: > ❦ 11 juillet 2018 21:01 -0400, David Ahern  : > >>> +++ b/ip/ipaddress.c >>> @@ -837,11 +837,6 @@ int print_linkinfo(const struct sockaddr_nl *who, >>> if (!name) >>> return -1; >>> >>> - if (filter.label && >>> - (!filter.family || filter.family

[PATCH iproute2-next v3] net:sched: add action inheritdsfield to skbedit

2018-07-14 Thread Qiaobin Fu
The new action inheritdsfield copies the field DS of IPv4 and IPv6 packets into skb->priority. This enables later classification of packets based on the DS field. v3: * Make flag represented in JSON output as a null value v2: * Align the output syntax with the input syntax * Fix the style issues