Re: consistency for statistics with XDP mode

2018-11-26 Thread Toshiaki Makita
On 2018/11/26 10:37, Toshiaki Makita wrote: > On 2018/11/23 1:43, David Ahern wrote: >> On 11/21/18 5:53 PM, Toshiaki Makita wrote: We really need consistency in the counters and at a minimum, users should be able to track packet and byte counters for both Rx and Tx including XDP.

[PATCH net-next 2/2] bnx2x: Add storm FW version to ethtool driver query output.

2018-11-26 Thread Sudarsana Reddy Kalluru
The patch populates the Storm FW version in the ethtool driver query data. Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Ariel Elior --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH net-next 0/2] bnx2x: Popoulate firmware versions in driver info query.

2018-11-26 Thread Sudarsana Reddy Kalluru
From: Sudarsana Reddy Kalluru The patch series populates MBI and storm firware versions in the ethtool driver info query. Please consider applying it to 'net-next' tree. Sudarsana Reddy Kalluru (2): bnx2x: Add MBI version to ethtool driver query output. bnx2x: Add storm FW version to

[PATCH net-next 1/2] bnx2x: Add MBI version to ethtool driver query output.

2018-11-26 Thread Sudarsana Reddy Kalluru
The patch populates the MBI version in the ethtool driver query data. Adding 'extended_dev_info_shared_cfg' structure describing the nvram structure, this is required to access the mbi version string. Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Ariel Elior ---

[PATCH net-next] cxgb4: number of VFs supported is not always 16

2018-11-26 Thread Ganesh Goudar
Total number of VFs supported by PF is used determine the last byte of VF's mac address. Number of VFs supported is not always 16, use the variable nvfs to get the number of VFs supported rather than hard coding it to 16. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar ---

Re: [PATCH v5 5/6] vxlan: handle underlay VRF changes

2018-11-26 Thread Roopa Prabhu
On Mon, Nov 26, 2018 at 5:04 PM Alexis Bauvin wrote: > > When underlay VRF changes, either because the lower device itself changed, > or its VRF changed, this patch releases the current socket of the VXLAN > device and recreates another one in the right VRF. This allows for > on-the-fly change of

[PATCH bpf] sparc: Adjust bpf JIT prologue for PSEUDO calls.

2018-11-26 Thread David Miller
Move all arguments into output registers from input registers. This path is exercised by test_verifier.c's "calls: two calls with args" test. Adjust BPF_TAILCALL_PROLOGUE_SKIP as needed. Let's also make the prologue length a constant size regardless of the combination of ->saw_frame_pointer

[PATCH bpf-next 1/3] bpf: btf: check name validity for various types

2018-11-26 Thread Yonghong Song
Commit 2667a2626f4d ("bpf: btf: Add BTF_KIND_FUNC and BTF_KIND_FUNC_PROTO") checked the name validity for BTF_KIND_FUNC/BTF_KIND_FUNC_PROTO types such that: . BTF_KIND_FUNC must have a valid identifier name . BTF_KIND_PROTO must have a null name . The argument name of

[PATCH bpf-next 2/3] tools/bpf: fix two test_btf unit test cases

2018-11-26 Thread Yonghong Song
From: Martin KaFai Lau There are two unit test cases, which should encode TYPEDEF type, but instead encode PTR type. The error is flagged out after enforcing name checking in the previous patch. Fixes: c0fa1b6c3efc ("bpf: btf: Add BTF tests") Signed-off-by: Martin KaFai Lau Signed-off-by:

[PATCH bpf-next 3/3] tools/bpf: add addition type tests to test_btf

2018-11-26 Thread Yonghong Song
The following additional unit testcases are added to test_btf: BTF raw test[65] (typedef (invalid name, name_off = 0)): OK BTF raw test[66] (typedef (invalid name, invalid identifier)): OK BTF raw test[67] (ptr type (invalid name, name_off <> 0)): OK BTF raw test[68] (volatile type

[PATCH bpf-next 0/3] bpf: btf: check name validity for various types

2018-11-26 Thread Yonghong Song
Commit 2667a2626f4d ("bpf: btf: Add BTF_KIND_FUNC and BTF_KIND_FUNC_PROTO") checked the name validity for BTF_KIND_FUNC/FUNC_PROTO types. This patch added name checking for PTR, ARRAY, VOLATILE, TYPEDEF, CONST, RESTRICT, STRUCT, UNION, ENUM and FWD types. Such a strict name checking makes BTF

Re: [iproute2-next PATCH v4] tc: flower: Classify packets based port ranges

2018-11-26 Thread Stephen Hemminger
On Mon, 26 Nov 2018 17:56:10 -0800 "Nambiar, Amritha" wrote: > On 11/26/2018 4:43 PM, David Ahern wrote: > > On 11/26/18 5:23 PM, Nambiar, Amritha wrote: > >>> Can tc flower use something similar to ip ru with single port or port > >>> range handled like this? > >>> > >>> },{ > >>>

Re: [PATCH bpf-next v2 0/4] libbpf: ABI versioning and documentation

2018-11-26 Thread Alexei Starovoitov
On Fri, Nov 23, 2018 at 04:44:31PM -0800, Andrey Ignatov wrote: > This patch set adds ABI versioning and documentation to libbpf. > > Patch 1 renames btf_get_from_id to btf__get_from_id to follow naming > convention. > Patch 2 adds version script and has more details on ABI versioning. > Patch 3

Re: [PATCH bpf] bpf, doc: add entries of who looks over which jits

2018-11-26 Thread Alexei Starovoitov
On Tue, Nov 27, 2018 at 01:21:00AM +0100, Daniel Borkmann wrote: > Make the high-level BPF JIT entry a general 'catch-all' and add > architecture specific entries to make it more clear who actively > maintains which BPF JIT compiler. The list (L) address implies > that this eventually lands in the

Re: [PATCH bpf-next 0/2] bpf: support proper non-jit func info

2018-11-26 Thread Alexei Starovoitov
On Sat, Nov 24, 2018 at 11:20:43PM -0800, Yonghong Song wrote: > Commit 838e96904ff3 ("bpf: Introduce bpf_func_info") > added bpf func info support. The userspace is able > to get better ksym's for bpf programs with jit, and > is able to print out func prototypes. > > For a program containing

Re: [iproute2-next PATCH v4] tc: flower: Classify packets based port ranges

2018-11-26 Thread Nambiar, Amritha
On 11/26/2018 4:43 PM, David Ahern wrote: > On 11/26/18 5:23 PM, Nambiar, Amritha wrote: >>> Can tc flower use something similar to ip ru with single port or port >>> range handled like this? >>> >>> },{ >>> "priority": 32764, >>> "src": "172.16.1.0", >>> "srclen": 24,

Re: [PATCH bpf] sparc: Correct ctx->saw_frame_pointer logic.

2018-11-26 Thread Alexei Starovoitov
On Mon, Nov 26, 2018 at 02:52:18PM -0800, David Miller wrote: > > We need to initialize the frame pointer register not just if it is > seen as a source operand, but also if it is seen as the destination > operand of a store or an atomic instruction (which effectively is a > source operand). > >

Re: [PATCH bpf] sparc: Fix JIT fused branch convergance.

2018-11-26 Thread Alexei Starovoitov
On Mon, Nov 26, 2018 at 01:03:46PM -0800, David Miller wrote: > > On T4 and later sparc64 cpus we can use the fused compare and branch > instruction. > > However, it can only be used if the branch destination is in the range > of a signed 10-bit immediate offset. This amounts to 1024 >

Re: [PATCH bpf 0/2] Fix for arm64 jit

2018-11-26 Thread Alexei Starovoitov
On Mon, Nov 26, 2018 at 02:05:37PM +0100, Daniel Borkmann wrote: > This set contains a fix for arm64 BPF JIT. First patch generalizes > ppc64 way of retrieving subprog into bpf_jit_get_func_addr() as core > code and uses the same on arm64 in second patch. Tested on both arm64 > and ppc64. > >

[PATCH v5 3/6] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread Alexis Bauvin
Creating a VXLAN device with is underlay in the non-default VRF makes egress route lookup fail or incorrect since it will resolve in the default VRF, and ingress fail because the socket listens in the default VRF. This patch binds the underlying UDP tunnel socket to the l3mdev of the lower device

[PATCH v5 2/6] l3mdev: add function to retreive upper master

2018-11-26 Thread Alexis Bauvin
Existing functions to retreive the l3mdev of a device did not walk the master chain to find the upper master. This patch adds a function to find the l3mdev, even indirect through e.g. a bridge: +--+ | | | vrf-blue | | | ++-+ | | ++-+ |

[PATCH v5 0/6] Add VRF support for VXLAN underlay

2018-11-26 Thread Alexis Bauvin
v4 -> v5: - move test script to its own patch (6/6) - add schematic for test script - apply David Ahern comments to the test script v3 -> v4: - rename vxlan_is_in_l3mdev_chain to netdev_is_upper master - move it to net/core/dev.c - make it return bool instead of int - check if remote_ifindex is

[PATCH v5 6/6] test/net: Add script for VXLAN underlay in a VRF

2018-11-26 Thread Alexis Bauvin
This script tests the support of a VXLAN underlay in a non-default VRF. It does so by simulating two hypervisors and two VMs, an extended L2 between the VMs with the hypervisors as VTEPs with the underlay in a VRF, and finally by pinging the two VMs. It also tests that moving the underlay from a

[PATCH v5 5/6] vxlan: handle underlay VRF changes

2018-11-26 Thread Alexis Bauvin
When underlay VRF changes, either because the lower device itself changed, or its VRF changed, this patch releases the current socket of the VXLAN device and recreates another one in the right VRF. This allows for on-the-fly change of the underlay VRF of a VXLAN device. Signed-off-by: Alexis

[PATCH v5 4/6] netdev: add netdev_is_upper_master

2018-11-26 Thread Alexis Bauvin
In preparation of next patch, this function allows to check if a device is a master, be it direct or indirect, of another one. It walks up the master chain until it finds the device, or there is no more master. This allows to check e.g. if br-blue is a master of eth0: +--+ |

[PATCH v5 1/6] udp_tunnel: add config option to bind to a device

2018-11-26 Thread Alexis Bauvin
UDP tunnel sockets are always opened unbound to a specific device. This patch allow the socket to be bound on a custom device, which incidentally makes UDP tunnels VRF-aware if binding to an l3mdev. Signed-off-by: Alexis Bauvin Reviewed-by: Amine Kherbouche Reviewed-by: David Ahern Tested-by:

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread Alexis Bauvin
Le 27 nov. 2018 à 01:46, David Ahern a écrit : > On 11/26/18 5:41 PM, Alexis Bauvin wrote: >> Le 26 nov. 2018 à 18:54, David Ahern a écrit : >>> On 11/26/18 9:32 AM, Alexis Bauvin wrote: Thanks for the review. I’ll send a v5 if you have no other comment on this version! >>> >>> A few

[iproute2-next PATCH v5] tc: flower: Classify packets based port ranges

2018-11-26 Thread Amritha Nambiar
Added support for filtering based on port ranges. UAPI changes have been accepted into net-next. Example: 1. Match on a port range: - $ tc filter add dev enp4s0 protocol ip parent :\ prio 1 flower ip_proto tcp dst_port 20-30 skip_hw\ action drop $ tc -s filter

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread David Ahern
On 11/26/18 5:41 PM, Alexis Bauvin wrote: > Le 26 nov. 2018 à 18:54, David Ahern a écrit : >> On 11/26/18 9:32 AM, Alexis Bauvin wrote: >>> Thanks for the review. I’ll send a v5 if you have no other comment on >>> this version! >> >> A few comments on the test script; see attached which has the

Re: [iproute2-next PATCH v4] tc: flower: Classify packets based port ranges

2018-11-26 Thread David Ahern
On 11/26/18 5:23 PM, Nambiar, Amritha wrote: >> Can tc flower use something similar to ip ru with single port or port >> range handled like this? >> >> },{ >> "priority": 32764, >> "src": "172.16.1.0", >> "srclen": 24, >> "ipproto": "tcp", >> "sport":

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread Alexis Bauvin
Le 26 nov. 2018 à 18:54, David Ahern a écrit : > On 11/26/18 9:32 AM, Alexis Bauvin wrote: >> Thanks for the review. I’ll send a v5 if you have no other comment on >> this version! > > A few comments on the test script; see attached which has the changes. > > Mainly the cleanup does not need to

Re: Can decnet be deprecated?

2018-11-26 Thread Stephen Hemminger
On Sat, 24 Nov 2018 17:12:48 -0700 David Ahern wrote: > IPX was moved to staging at the end of last year. Can decnet follow > suit? git log seems to indicate no active development in a very long time. > > David I have no problem with dropping decnet support from iproute first. Presumably

Re: [PATCH net] bonding: fix 802.3ad state sent to partner when unbinding slave

2018-11-26 Thread Jay Vosburgh
Toni Peltonen wrote: >Previously when unbinding a slave the 802.3ad implementation only told >partner that the port is not suitable for aggregation by setting the port >aggregation state from aggregatable to individual. This is not enough. If the >physical layer still stays up and we only

Re: [iproute2-next PATCH v4] tc: flower: Classify packets based port ranges

2018-11-26 Thread Nambiar, Amritha
On 11/21/2018 1:42 PM, David Ahern wrote: > On 11/20/18 11:17 PM, Amritha Nambiar wrote: >> diff --git a/tc/f_flower.c b/tc/f_flower.c >> index 65fca04..722647d 100644 >> --- a/tc/f_flower.c >> +++ b/tc/f_flower.c >> @@ -494,6 +494,68 @@ static int flower_parse_port(char *str, __u8 ip_proto, >>

[PATCH bpf] bpf, doc: add entries of who looks over which jits

2018-11-26 Thread Daniel Borkmann
Make the high-level BPF JIT entry a general 'catch-all' and add architecture specific entries to make it more clear who actively maintains which BPF JIT compiler. The list (L) address implies that this eventually lands in the bpf patchwork bucket. Goal is that this set of responsible developers

[no subject]

2018-11-26 Thread Offer
-- -- Guten Tag, Wir sind eine registrierte private Geldverleiher. Wir geben Kredite an Firmen, Einzelpersonen, die ihre finanzielle Status auf der ganzen Welt aktualisieren müssen, mit minimalen jährlichen Zinsen von 2% .reply, wenn nötig. Good Day, We are a registered private money lender. We

Re: iproute2 compile and linking errors on Fedora 19

2018-11-26 Thread Stephen Hemminger
On Tue, 31 Oct 2017 16:28:20 -0700 Cong Wang wrote: > On Tue, Oct 31, 2017 at 2:10 PM, Stephen Hemminger > wrote: > > > > IPPROTO_MH comes from include/uapi/linux/in6.h > > Maybe it is trying to use old kernel headers from libc. > > So newer iproute2 is not supposed to work with older >

[PATCH net] bonding: fix 802.3ad state sent to partner when unbinding slave

2018-11-26 Thread Toni Peltonen
Previously when unbinding a slave the 802.3ad implementation only told partner that the port is not suitable for aggregation by setting the port aggregation state from aggregatable to individual. This is not enough. If the physical layer still stays up and we only unbinded this port from the bond

Re: [RFC PATCH 0/3] sk_buff: add skb extension infrastructure

2018-11-26 Thread Eric Dumazet
On 11/26/2018 03:38 AM, Florian Westphal wrote: > The (out-of-tree) Multipath-TCP implementation needs a significant amount > of extra space in the skb control buffer. > > Increasing skb->cb[] size in mainline is a non-starter for memory and > and performance reasons (f.e. increase in cb size

[PATCH bpf] sparc: Correct ctx->saw_frame_pointer logic.

2018-11-26 Thread David Miller
We need to initialize the frame pointer register not just if it is seen as a source operand, but also if it is seen as the destination operand of a store or an atomic instruction (which effectively is a source operand). This is exercised by test_verifier's "non-invalid fp arithmetic"

[PATCH v2 net-next] tcp: remove hdrlen argument from tcp_queue_rcv()

2018-11-26 Thread Eric Dumazet
Only one caller needs to pull TCP headers, so lets move __skb_pull() to the caller side. Signed-off-by: Eric Dumazet Acked-by: Yuchung Cheng --- v2: sent as a standalone patch. net/ipv4/tcp_input.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

[PATCH mlx5-next 06/13] net/mlx5: Remove unused events callback and logic

2018-11-26 Thread Saeed Mahameed
The mlx5_interface->event callback is not used by mlx5e/mlx5_ib anymore. We totally remove the delayed events logic work around, since with the dynamic notifier registration API it is not needed anymore, mlx5_ib can register its notifier and start receiving events exactly at the moment it is

[PATCH mlx5-next 13/13] net/mlx5: Debug print for forwarded async events

2018-11-26 Thread Saeed Mahameed
Print a debug message for every async FW event forwarded to mlx5 interfaces (mlx5e netdev and mlx5_ib rdma module). Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/events.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH mlx5-next 09/13] IB/mlx5: Handle raw delay drop general event

2018-11-26 Thread Saeed Mahameed
Handle FW general event rq delay drop as it was received from FW via mlx5 notifiers API, instead of handling the processed software version of that event. After this patch we can safely remove all software processed FW events types and definitions. Signed-off-by: Saeed Mahameed ---

[PATCH mlx5-next 08/13] net/mlx5: Allow forwarding event type general event as is

2018-11-26 Thread Saeed Mahameed
FW general event is used by mlx5_ib for RQ delay drop timeout event handling, in this patch we allow to forward FW general event type to mlx5 notifiers chain so mlx5_ib can handle it and to deprecate the software version of it. Signed-off-by: Saeed Mahameed ---

[PATCH mlx5-next 04/13] net/mlx5: Forward all mlx5 events to mlx5 notifiers chain

2018-11-26 Thread Saeed Mahameed
This to allow seamless migration to the new notifier chain API, and to eventually deprecate interfaces dev->event callback. Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/dev.c | 3 +++ include/linux/mlx5/driver.h | 2 +- 2 files changed, 4

[PATCH mlx5-next 12/13] net/mlx5: Forward SRQ resource events

2018-11-26 Thread Saeed Mahameed
Allow forwarding of SRQ events to mlx5_core interfaces, e.g. mlx5_ib. Use mlx5_notifier_register/unregister in srq.c in order to allow seamless transition of srq.c to infiniband subsystem. Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/events.c | 3 ++

[PATCH mlx5-next 05/13] IB/mlx5: Use the new mlx5 core notifier API

2018-11-26 Thread Saeed Mahameed
Remove the deprecated mlx5_interface->event mlx5_ib callback and use new mlx5 notifier API to subscribe for mlx5 events. For native mlx5_ib devices profiles pf_profile/nic_rep_profile register the notifier callback mlx5_ib_handle_event which treats the notifier context as mlx5_ib_dev. For vport

[PATCH mlx5-next 11/13] net/mlx5: Forward QP/WorkQueues resource events

2018-11-26 Thread Saeed Mahameed
Allow forwarding QP and WQ events to mlx5_core interfaces, e.g. mlx5_ib Use mlx5_notifier_register/unregister in qp.c in order to allow seamless transition of qp.c to infiniband subsystem. Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/events.c | 10 ++

[PATCH mlx5-next 10/13] net/mlx5: Remove all deprecated software versions of FW events

2018-11-26 Thread Saeed Mahameed
Before the new mlx5 event notification infrastructure and API, mlx5_core used to process all events before forwarding them to mlx5 interfaces (mlx5e/mlx5_ib) and used to translate the event type enum to a software defined enum, this is not needed anymore since it is ok for mlx5e and mlx5_ib to

[PATCH mlx5-next 07/13] IB/mlx5: Handle raw port change event rather than the software version

2018-11-26 Thread Saeed Mahameed
Use the FW version of the port change event as forwarded via new mlx5 notifiers API. After this patch, processed software version of the port change event will become deprecated and will be totally removed in downstream patches. Signed-off-by: Saeed Mahameed ---

[PATCH mlx5-next 02/13] net/mlx5: Allow port change event to be forwarded to driver notifiers chain

2018-11-26 Thread Saeed Mahameed
The idea is to allow mlx5 core interfaces (mlx5e/mlx5_ib) to be able to receive some allowed FW events as is via the new notifier API. In this patch we allow forwarding port change event to mlx5 core interfaces (mlx5e/mlx5_ib) as it was received from FW. Once mlx5e and mlx5_ib start using this

[PATCH mlx5-next 03/13] net/mlx5e: Use the new mlx5 core notifier API

2018-11-26 Thread Saeed Mahameed
Remove the deprecated mlx5_interface->event mlx5e callback and use new mlx5 notifier API to subscribe for mlx5 events, handle port change event as received from FW rather than handling the mlx5 core processed port change software version event. Signed-off-by: Saeed Mahameed ---

[PATCH mlx5-next 00/13] Mellanox, mlx5 core driver events API

2018-11-26 Thread Saeed Mahameed
Hi, This patchset is for mlx5-next shared branch, and will be applied there once the review is done. The main idea of this change is to define a flexible scalable and simpler high level mlx5 core APIs to forward device and driver events to upper level interface drivers e.g mlx5_ib and mlx5e

[PATCH mlx5-next 01/13] net/mlx5: Driver events notifier API

2018-11-26 Thread Saeed Mahameed
Use atomic notifier chain to fire events to mlx5 core driver consumers (mlx5e/mlx5_ib) and provide mlx5 register/unregister notifier API. This API will replace the current mlx5_interface->event callback and all the logic around it, especially the delayed events logic introduced by commit

Re: [PATCH iproute2] ss: add support for delivered and delivered_ce fields

2018-11-26 Thread Yuchung Cheng
On Mon, Nov 26, 2018 at 2:29 PM, Eric Dumazet wrote: > Kernel support was added in linux-4.18 in commit feb5f2ec6464 > ("tcp: export packets delivery info") > > Tested: > > ss -ti > ... > ESTAB 0 2270520 [2607:f8b0:8099:e16::]:47646 > [2607:f8b0:8099:e18::]:38953 > ts sack

[PATCH iproute2] ss: add support for delivered and delivered_ce fields

2018-11-26 Thread Eric Dumazet
Kernel support was added in linux-4.18 in commit feb5f2ec6464 ("tcp: export packets delivery info") Tested: ss -ti ... ESTAB 0 2270520 [2607:f8b0:8099:e16::]:47646 [2607:f8b0:8099:e18::]:38953 ts sack cubic wscale:8,8 rto:7 rtt:2.824/0.278 mss:1428 pmtu:1500 rcvmss:536

[PATCH bpf-next v2 2/3] bpf: add msg_pop_data helper to tools

2018-11-26 Thread John Fastabend
Add the necessary header definitions to tools for new msg_pop_data_helper. Signed-off-by: John Fastabend --- tools/include/uapi/linux/bpf.h| 16 +++- tools/testing/selftests/bpf/bpf_helpers.h | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git

[PATCH bpf-next v2 3/3] bpf: test_sockmap, add options for msg_pop_data() helper

2018-11-26 Thread John Fastabend
Similar to msg_pull_data and msg_push_data add a set of options to have msg_pop_data() exercised. Signed-off-by: John Fastabend --- tools/testing/selftests/bpf/test_sockmap.c | 127 +++- tools/testing/selftests/bpf/test_sockmap_kern.h | 70 ++--- 2 files

Re: [PATCH mlx5-next 00/11] mlx5 core internal firmware events handling improvements

2018-11-26 Thread Saeed Mahameed
On Tue, 2018-11-20 at 14:12 -0800, Saeed Mahameed wrote: > Hi > > This patchset is for mlx5-next shared branch, and will be applied > there > once the review is done. > > The main idea of this change is to define a flexible scalable and > simpler low level mlx5 core APIs to upper level

[PATCH bpf-next v2 1/3] bpf: helper to pop data from messages

2018-11-26 Thread John Fastabend
This adds a BPF SK_MSG program helper so that we can pop data from a msg. We use this to pop metadata from a previous push data call. Signed-off-by: John Fastabend --- include/uapi/linux/bpf.h | 16 - net/core/filter.c| 171 +++

[PATCH bpf-next v2 0/3] bpf: add sk_msg helper sk_msg_pop_data

2018-11-26 Thread John Fastabend
After being able to add metadata to messages with sk_msg_push_data we have also found it useful to be able to "pop" this metadata off before sending it to applications in some cases. This series adds a new helper sk_msg_pop_data() and the associated patches to add tests and tools/lib support.

Re: consistency for statistics with XDP mode

2018-11-26 Thread Jakub Kicinski
On Wed, 21 Nov 2018 14:06:49 -0700, David Ahern wrote: > Keeping the basic xdp packets in the standard counters allows Paweł, for > example, to continue to monitor /proc/net/dev. > > Can we get agreement on this? And from there, get updates to the mlx5 > and virtio drivers? I have a long

Re: [PATCH bpf] bpf: Support sk lookup in netns with id 0

2018-11-26 Thread David Ahern
On 11/26/18 2:27 PM, Joe Stringer wrote: > @@ -2405,6 +2407,9 @@ enum bpf_func_id { > /* BPF_FUNC_perf_event_output for sk_buff input context. */ > #define BPF_F_CTXLEN_MASK(0xfULL << 32) > > +/* BPF_FUNC_sk_lookup_tcp and BPF_FUNC_sk_lookup_udp flags. */ > +#define

Re: [PATCH bpf-next] bpf: Avoid unnecessary instruction in conver_bpf_ld_abs()

2018-11-26 Thread Daniel Borkmann
On 11/26/2018 10:42 PM, David Miller wrote: > > 'offset' is constant and if it is zero, no need to subtract it > from BPF_REG_TMP. > > Signed-off-by: David S. Miller Applied to bpf-next, thanks!

[PATCH bpf] bpf: Support sk lookup in netns with id 0

2018-11-26 Thread Joe Stringer
David Ahern and Nicolas Dichtel report that the handling of the netns id 0 is incorrect for the BPF socket lookup helpers: rather than finding the netns with id 0, it is resolving to the current netns. This renders the netns_id 0 inaccessible. To fix this, adjust the API for the netns to treat

[PATCH bpf-next] bpf: Avoid unnecessary instruction in conver_bpf_ld_abs()

2018-11-26 Thread David Miller
'offset' is constant and if it is zero, no need to subtract it from BPF_REG_TMP. Signed-off-by: David S. Miller diff --git a/net/core/filter.c b/net/core/filter.c index aa274679965d..f50ea971f7a9 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -463,7 +463,8 @@ static bool

Re: [RFC PATCH 0/3] sk_buff: add skb extension infrastructure

2018-11-26 Thread Florian Westphal
David Miller wrote: > From: Florian Westphal > Date: Mon, 26 Nov 2018 22:19:33 +0100 > > >> In the future please document what is so enormous and absolutely > >> required that they must put it all into the SKB control block. > > > > Ok, will do. > > Why don't we establish the details about

Re: [RFC PATCH 0/3] sk_buff: add skb extension infrastructure

2018-11-26 Thread David Miller
From: Florian Westphal Date: Mon, 26 Nov 2018 22:19:33 +0100 >> In the future please document what is so enormous and absolutely >> required that they must put it all into the SKB control block. > > Ok, will do. Why don't we establish the details about what MP-TCP needs in the CB before we

Re: [RFC PATCH 0/3] sk_buff: add skb extension infrastructure

2018-11-26 Thread Florian Westphal
David Miller wrote: > > This adds an extension infrastructure for sk_buff instead: > > 1. extension memory is released when the sk_buff is free'd. > > 2. data is shared after cloning an skb. > > 3. adding extension to an skb will COW the extension > >buffer if needed. > > So MP-TCP, when

Re: pull-request: bpf-next 2018-11-26

2018-11-26 Thread David Miller
From: Daniel Borkmann Date: Mon, 26 Nov 2018 14:25:28 +0100 > The following pull-request contains BPF updates for your *net-next* tree. ... > Please consider pulling these changes from: > > git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git > > Note, there is a tiny merge

[PATCH bpf] sparc: Fix JIT fused branch convergance.

2018-11-26 Thread David Miller
On T4 and later sparc64 cpus we can use the fused compare and branch instruction. However, it can only be used if the branch destination is in the range of a signed 10-bit immediate offset. This amounts to 1024 instructions forwards or backwards. After the commit referenced in the Fixes: tag,

Re: [RFC PATCH 0/3] sk_buff: add skb extension infrastructure

2018-11-26 Thread David Miller
From: Florian Westphal Date: Mon, 26 Nov 2018 12:38:54 +0100 > This adds an extension infrastructure for sk_buff instead: > 1. extension memory is released when the sk_buff is free'd. > 2. data is shared after cloning an skb. > 3. adding extension to an skb will COW the extension >buffer if

Re: [PATCH net-next,v3 00/12] add flow_rule infrastructure

2018-11-26 Thread Marcelo Ricardo Leitner
On Mon, Nov 26, 2018 at 08:33:36PM +0100, Pablo Neira Ayuso wrote: > Hi Marcelo, Hello! > > On Thu, Nov 22, 2018 at 07:08:32PM -0200, Marcelo Ricardo Leitner wrote: > > On Thu, Nov 22, 2018 at 02:22:20PM -0200, Marcelo Ricardo Leitner wrote: > > > On Wed, Nov 21, 2018 at 03:51:20AM +0100, Pablo

Re: [PATCH net-next v2 1/2] udp: msg_zerocopy

2018-11-26 Thread Willem de Bruijn
On Mon, Nov 26, 2018 at 1:19 PM Willem de Bruijn wrote: > > On Mon, Nov 26, 2018 at 1:04 PM Paolo Abeni wrote: > > > > On Mon, 2018-11-26 at 12:59 -0500, Willem de Bruijn wrote: > > > The callers of this function do flush the queue of the other skbs on > > > error, but only after the call to

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-26 Thread Quentin Monnet
2018-11-26 11:08 UTC-0800 ~ Vlad Dumitrescu > On Fri, Nov 23, 2018 at 2:51 AM Quentin Monnet > wrote: >> >> 2018-11-21 09:28 UTC-0800 ~ Stanislav Fomichev >>> On 11/21, Quentin Monnet wrote: 2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev > On 11/20, Alexei Starovoitov wrote: >> On

Re: [PATCH net-next,v3 00/12] add flow_rule infrastructure

2018-11-26 Thread Pablo Neira Ayuso
Hi Marcelo, On Thu, Nov 22, 2018 at 07:08:32PM -0200, Marcelo Ricardo Leitner wrote: > On Thu, Nov 22, 2018 at 02:22:20PM -0200, Marcelo Ricardo Leitner wrote: > > On Wed, Nov 21, 2018 at 03:51:20AM +0100, Pablo Neira Ayuso wrote: > > > Hi, > > > > > > This patchset is the third iteration [1]

[PATCH net-next] r8169: remove unneeded mmiowb barriers

2018-11-26 Thread Heiner Kallweit
writex() has implicit barriers, that's what makes it different from writex_relaxed(). Therefore these calls to mmiowb() can be removed. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread David Ahern
On 11/26/18 12:06 PM, Alexis Bauvin wrote: > Moreover, the issue of mixing default and non-default vrf needs to be > addressed. For now it is stale, as I don’t see any solution (except for > rewriting the whole thing as you suggested before) to address the > "Address already in use" made by a

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-26 Thread Vlad Dumitrescu
On Fri, Nov 23, 2018 at 2:51 AM Quentin Monnet wrote: > > 2018-11-21 09:28 UTC-0800 ~ Stanislav Fomichev > > On 11/21, Quentin Monnet wrote: > >> 2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev > >>> On 11/20, Alexei Starovoitov wrote: > On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread Alexis Bauvin
Le 26 nov. 2018 à 19:26, Roopa Prabhu a écrit : > > On Mon, Nov 26, 2018 at 9:54 AM David Ahern wrote: >> >> On 11/26/18 9:32 AM, Alexis Bauvin wrote: >>> Thanks for the review. I’ll send a v5 if you have no other comment on >>> this version! >> >> A few comments on the test script; see

Re: Did You Receive My Last Mail?

2018-11-26 Thread Reem Al-Hashimi
Hello, My name is ms. Reem Al-Hashimi. The UAE minister of state for international cooparation. I got your contact from an email database from your country. I have a financial transaction i would like to discuss with you. Please reply to reem2...@daum.net, for more details if you are

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread Roopa Prabhu
On Mon, Nov 26, 2018 at 9:54 AM David Ahern wrote: > > On 11/26/18 9:32 AM, Alexis Bauvin wrote: > > Thanks for the review. I’ll send a v5 if you have no other comment on > > this version! > > A few comments on the test script; see attached which has the changes. > > Mainly the cleanup does not

[iproute PATCH] man: rdma: Add reference to rdma-resource.8

2018-11-26 Thread Phil Sutter
All rdma-related man pages list each other in SEE ALSO section, only rdma-resource.8 is missing. Add it for the sake of consistency. Signed-off-by: Phil Sutter --- man/man8/rdma-dev.8 | 1 + man/man8/rdma-link.8 | 1 + man/man8/rdma.8 | 1 + 3 files changed, 3 insertions(+) diff --git

Re: [PATCH net-next v2 1/2] udp: msg_zerocopy

2018-11-26 Thread Willem de Bruijn
On Mon, Nov 26, 2018 at 1:04 PM Paolo Abeni wrote: > > On Mon, 2018-11-26 at 12:59 -0500, Willem de Bruijn wrote: > > The callers of this function do flush the queue of the other skbs on > > error, but only after the call to sock_zerocopy_put_abort. > > > > sock_zerocopy_put_abort depends on

Re: [PATCH net-next v2 1/2] udp: msg_zerocopy

2018-11-26 Thread Willem de Bruijn
On Mon, Nov 26, 2018 at 11:32 AM Paolo Abeni wrote: > > Hi, > > Sorry for the long delay... > > On Mon, 2018-11-26 at 10:29 -0500, Willem de Bruijn wrote: > > @@ -1109,6 +1128,7 @@ static int __ip_append_data(struct sock *sk, > > error_efault: > > err = -EFAULT; > > error: > > +

Re: [PATCH net-next v2 1/2] udp: msg_zerocopy

2018-11-26 Thread Paolo Abeni
On Mon, 2018-11-26 at 12:59 -0500, Willem de Bruijn wrote: > The callers of this function do flush the queue of the other skbs on > error, but only after the call to sock_zerocopy_put_abort. > > sock_zerocopy_put_abort depends on total rollback to revert the > sk_zckey increment and suppress the

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread David Ahern
On 11/26/18 9:32 AM, Alexis Bauvin wrote: > Thanks for the review. I’ll send a v5 if you have no other comment on > this version! A few comments on the test script; see attached which has the changes. Mainly the cleanup does not need to be called at the end since you setup the exit trap. The

Re: [PATCH net] ixgbe: recognize 1000BaseLX SFP modules as 1Gbps

2018-11-26 Thread Josh Elsasser
Bjørn Mork wrote: > Not that it matters much I guess, but I think LX SFPs were unsupported > at that time. The LX support appears to have been added under the radar > while refactoring ixgbe_setup_sfp_modules_X550em in commit e23f33367882 > ("ixgbe: Fix 1G and 10G link stability for X550EM_x

[PATCH v2 net] lan743x: Enable driver to work with LAN7431

2018-11-26 Thread Bryan Whitehead
This driver was designed to work with both LAN7430 and LAN7431. The only difference between the two is the LAN7431 has support for external phy. This change adds LAN7431 to the list of recognized devices supported by this driver. Updates for v2: changed 'fixes' tag to match defined format

[Patch net-next] net: explain __skb_checksum_complete() with comments

2018-11-26 Thread Cong Wang
Cc: Herbert Xu Signed-off-by: Cong Wang --- net/core/dev.c| 1 + net/core/skbuff.c | 18 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 368dc3b49dc0..ee0a4ac0bbb6 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@

Re: [PATCH bpf-next 2/2] tools/bpf: change selftest test_btf for both jit and non-jit

2018-11-26 Thread Martin Lau
On Sat, Nov 24, 2018 at 11:20:45PM -0800, Yonghong Song wrote: > The selftest test_btf is changed to test both jit and non-jit. > The test result should be the same regardless of whether jit > is enabled or not. Acked-by: Martin KaFai Lau

Re: [PATCH bpf-next 1/2] bpf: btf: support proper non-jit func info

2018-11-26 Thread Martin Lau
On Sat, Nov 24, 2018 at 11:20:44PM -0800, Yonghong Song wrote: > Commit 838e96904ff3 ("bpf: Introduce bpf_func_info") > added bpf func info support. The userspace is able > to get better ksym's for bpf programs with jit, and > is able to print out func prototypes. > > For a program containing

[PATCH v3 net] lan743x: fix return value for lan743x_tx_napi_poll

2018-11-26 Thread Bryan Whitehead
The lan743x driver, when under heavy traffic load, has been noticed to sometimes hang, or cause a kernel panic. Debugging reveals that the TX napi poll routine was returning the wrong value, 'weight'. Most other drivers return 0. And call napi_complete, instead of napi_complete_done.

Compliment of the day,

2018-11-26 Thread Mr.Philippines
Compliment of the day, I am Mr.Philippine.Kabore I Have a Business Proposal of $5.3 million For You. I am aware of the unsafe nature of the internet, and was compelled to use this medium due to the nature of this project. I have access to very vital information that can be used to transfer this

Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF

2018-11-26 Thread Alexis Bauvin
Le 22 nov. 2018 à 18:19, David Ahern a écrit : > On 11/21/18 6:07 PM, Alexis Bauvin wrote: >> Creating a VXLAN device with is underlay in the non-default VRF makes >> egress route lookup fail or incorrect since it will resolve in the >> default VRF, and ingress fail because the socket listens in

Re: [PATCH net-next v2 1/2] udp: msg_zerocopy

2018-11-26 Thread Paolo Abeni
Hi, Sorry for the long delay... On Mon, 2018-11-26 at 10:29 -0500, Willem de Bruijn wrote: > @@ -1109,6 +1128,7 @@ static int __ip_append_data(struct sock *sk, > error_efault: > err = -EFAULT; > error: > + sock_zerocopy_put_abort(uarg); > cork->length -= length; >

[PATCH v2 net-next 6/8] dpaa2-eth: Add support for XDP_TX

2018-11-26 Thread Ioana Ciocoi Radulescu
Send frames back on the same port for XDP_TX action. Since the frame buffers have been allocated by us, we can recycle them directly into the Rx buffer pool instead of requesting a confirmation frame upon transmission complete. Signed-off-by: Ioana Radulescu --- v2: XDP_TX packets count towards

[PATCH v2 net-next 2/8] dpaa2-eth: Allow XDP header adjustments

2018-11-26 Thread Ioana Ciocoi Radulescu
Reserve XDP_PACKET_HEADROOM bytes in Rx buffers to allow XDP programs to increase frame header size. Signed-off-by: Ioana Radulescu --- v2: no changes drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 43 ++-- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git

[PATCH v2 net-next 7/8] dpaa2-eth: Cleanup channel stats

2018-11-26 Thread Ioana Ciocoi Radulescu
Remove unused counter. Reorder fields in channel stats structure to match the ethtool strings order and make it easier to print them with ethtool -S. Signed-off-by: Ioana Radulescu --- v2: no changes drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 1 -

  1   2   >