Failed to call bpf_l3_csum_replace() twice for IPIP tunnel

2018-08-22 Thread IMBRIUS AGER
hello, I am trying to modify the src addr (both inner and outer) of IPIP tunnel. this is the testing code: === void *data = (void *)(long)skb->data; void *data_end = (void *)(long)skb->data_end; struct ethhdr *eth = data; struct iphdr *ip_outer = (void *)(eth

Re: pull request: bluetooth 2018-08-23

2018-08-22 Thread David Miller
From: Johan Hedberg Date: Thu, 23 Aug 2018 08:34:40 +0300 > Here are two important Bluetooth fixes for the MediaTek and RealTek HCI > drivers. > > Please let me know if there are any issues pulling, thanks. Pulled, thank you.

pull request: bluetooth 2018-08-23

2018-08-22 Thread Johan Hedberg
Hi Dave, Here are two important Bluetooth fixes for the MediaTek and RealTek HCI drivers. Please let me know if there are any issues pulling, thanks. Johan --- The following changes since commit ab08dcd724543896303eae7de6288242bbaff458: rhashtable: remove duplicated include from rhashtable.c

Re: [PATCH 1/2] net: netsec: enable tx-irq during open callback

2018-08-22 Thread Jassi Brar
Hi Dave, This patch (1/2) seems to have fallen through the cracks. The other one (2/2), you already picked. Thanks On Mon, Apr 16, 2018 at 1:08 PM wrote: > > From: Jassi Brar > > Enable TX-irq as well during ndo_open() as we can not count upon > RX to arrive early enough to trigger the napi.

Re: [Patch net 0/2] net: hns3: bug fix & optimization for HNS3 driver

2018-08-22 Thread David Miller
From: Huazhong Tan Date: Thu, 23 Aug 2018 11:37:14 +0800 > This patchset presents a bug fix found out when CONFIG_ARM64_64K_PAGES > enable and an optimization for HNS3 driver. Series applied, thank you.

Re: [PATCH bpf] bpf: use per htab salt for bucket hash

2018-08-22 Thread Song Liu
On Wed, Aug 22, 2018 at 2:49 PM, Daniel Borkmann wrote: > All BPF hash and LRU maps currently have a known and global seed > we feed into jhash() which is 0. This is suboptimal, thus fix it > by generating a random seed upon hashtab setup time which we can > later on feed into jhash() on lookup, u

Re: [PATCH] net/ipv6: init ip6 anycast rt->dst.input as ip6_input

2018-08-22 Thread David Miller
From: Hangbin Liu Date: Thu, 23 Aug 2018 11:31:37 +0800 > Commit 6edb3c96a5f02 ("net/ipv6: Defer initialization of dst to data path") > forgot to handle anycast route and init anycast rt->dst.input to ip6_forward. > Fix it by setting anycast rt->dst.input back to ip6_input. > > Fixes: 6edb3c96a5

Re: [Patch net 0/4] net: hns: bug fixes & optimization for HNS driver

2018-08-22 Thread David Miller
From: Huazhong Tan Date: Thu, 23 Aug 2018 11:10:09 +0800 > This patchset presents some bug fixes found out when > CONFIG_ARM64_64K_PAGES enable and an optimization for HNS driver. Series applied, thank you.

Re: [PATCH net 0/3] tcp_bbr: PROBE_RTT minor bug fixes

2018-08-22 Thread David Miller
From: Kevin Yang Date: Wed, 22 Aug 2018 17:43:13 -0400 > From: "Kevin(Yudong) Yang" > > This series includes two minor bug fixes for the TCP BBR PROBE_RTT > mechanism, and one preparatory patch: > > (1) A preparatory patch to reorganize the PROBE_RTT logic by refactoring > (into its own fu

Re: [PATCH net] ipv4: tcp: send zero IPID for RST and ACK sent in SYN-RECV and TIME-WAIT state

2018-08-22 Thread David Miller
From: Eric Dumazet Date: Wed, 22 Aug 2018 13:30:45 -0700 > tcp uses per-cpu (and per namespace) sockets (net->ipv4.tcp_sk) internally > to send some control packets. > > 1) RST packets, through tcp_v4_send_reset() > 2) ACK packets in SYN-RECV and TIME-WAIT state, through tcp_v4_send_ack() > > T

Re: [Patch net] addrconf: reduce unnecessary atomic allocations

2018-08-22 Thread David Miller
From: Cong Wang Date: Wed, 22 Aug 2018 12:58:34 -0700 > All the 3 callers of addrconf_add_mroute() assert RTNL > lock, they don't take any additional lock either, so > it is safe to convert it to GFP_KERNEL. > > Same for sit_add_v4_addrs(). > > Cc: David Ahern > Signed-off-by: Cong Wang Appl

Re: [PATCH] net/ipv6: init ip6 anycast rt->dst.input as ip6_input

2018-08-22 Thread David Ahern
On 8/22/18 9:31 PM, Hangbin Liu wrote: > Commit 6edb3c96a5f02 ("net/ipv6: Defer initialization of dst to data path") > forgot to handle anycast route and init anycast rt->dst.input to ip6_forward. > Fix it by setting anycast rt->dst.input back to ip6_input. > > Fixes: 6edb3c96a5f02 ("net/ipv6: Def

[Patch net 2/2] net: hns3: modify variable type in hns3_nic_reuse_page

2018-08-22 Thread Huazhong Tan
'truesize' is supposed to be u32, not int, so fix it. Signed-off-by: Huazhong tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/e

[Patch net 0/2] net: hns3: bug fix & optimization for HNS3 driver

2018-08-22 Thread Huazhong Tan
This patchset presents a bug fix found out when CONFIG_ARM64_64K_PAGES enable and an optimization for HNS3 driver. Huazhong Tan (2): net: hns3: fix page_offset overflow when CONFIG_ARM64_64K_PAGES net: hns3: modify variable type in hns3_nic_reuse_page drivers/net/ethernet/hisilicon/hns3/hns3

[Patch net 1/2] net: hns3: fix page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-08-22 Thread Huazhong Tan
When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of page_offset is u16, it will overflow. So change it to u32, when "CONFIG_ARM64_64K_PAGES" enabled. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-

[PATCH] net/ipv6: init ip6 anycast rt->dst.input as ip6_input

2018-08-22 Thread Hangbin Liu
Commit 6edb3c96a5f02 ("net/ipv6: Defer initialization of dst to data path") forgot to handle anycast route and init anycast rt->dst.input to ip6_forward. Fix it by setting anycast rt->dst.input back to ip6_input. Fixes: 6edb3c96a5f02 ("net/ipv6: Defer initialization of dst to data path") Signed-of

[Patch net 0/4] net: hns: bug fixes & optimization for HNS driver

2018-08-22 Thread Huazhong Tan
This patchset presents some bug fixes found out when CONFIG_ARM64_64K_PAGES enable and an optimization for HNS driver. Huazhong Tan (4): net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES net: hns: modify variable type in hns_nic_reuse_page net: hns: fix skb->trues

[Patch net 4/4] net: hns: use eth_get_headlen interface instead of hns_nic_get_headlen

2018-08-22 Thread Huazhong Tan
Update hns to drop the hns_nic_get_headlen function in favour of eth_get_headlen, and hence also removes now redundant hns_nic_get_headlen. Signed-off-by: Huazhong Tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 103 +- 1 file changed,

[Patch net 3/4] net: hns: fix skb->truesize underestimation

2018-08-22 Thread Huazhong Tan
skb->truesize is not meant to be tracking amount of used bytes in a skb, but amount of reserved/consumed bytes in memory. For instance, if we use a single byte in last page fragment, we have to account the full size of the fragment. So skb_add_rx_frag needs to calculate the length of the entire b

[Patch net 2/4] net: hns: modify variable type in hns_nic_reuse_page

2018-08-22 Thread Huazhong Tan
'truesize' is supposed to be u32, not int, so fix it. Signed-off-by: Huazhong tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ether

[Patch net 1/4] net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-08-22 Thread Huazhong Tan
When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of length and page_offset are u16, they will overflow. So change them to u32. Fixes: 6fe6611ff275 ("net: add Hisilicon Network Subsystem hnae framework support") Signed-off-by: Huazhong Tan S

[PATCHv3 iproute2 0/2] clang + misc changes

2018-08-22 Thread Mahesh Bandewar
From: Mahesh Bandewar The primary theme is to make clang compile the iproute2 package without warnings. Along with this there are two other misc patches in the series. First patch uses the preferred_family when operating with maddr feature. Prior to this patch, it would always open an AF_INET so

[PATCHv3 iproute2 1/2] ipmaddr: use preferred_family when given

2018-08-22 Thread Mahesh Bandewar
From: Mahesh Bandewar When creating socket() AF_INET is used irrespective of the family that is given at the command-line (with -4, -6, or -0). This change will open the socket with the preferred family. Signed-off-by: Mahesh Bandewar --- ip/ipmaddr.c | 13 - 1 file changed, 12 ins

[PATCHv3 iproute2 2/2] iproute: make clang happy

2018-08-22 Thread Mahesh Bandewar
From: Mahesh Bandewar These are primarily fixes for "string is not string literal" warnings / errors (with -Werror -Wformat-nonliteral). This should be a no-op change. I had to replace couple of print helper functions with the code they call as it was becoming harder to eliminate these warnings,

Re: [bpf-next RFC 0/3] Introduce eBPF flow dissector

2018-08-22 Thread Petar Penkov
On Wed, Aug 22, 2018 at 12:28 AM, Daniel Borkmann wrote: > "On 08/22/2018 09:22 AM, Daniel Borkmann wrote: >> On 08/22/2018 02:19 AM, Petar Penkov wrote: >>> On Mon, Aug 20, 2018 at 1:52 PM, Alexei Starovoitov >>> wrote: On Thu, Aug 16, 2018 at 09:44:20AM -0700, Petar Penkov wrote: > Fro

[PATCH next-queue 1/2] ixgbe: disallow ipsec tx offload when in sr-iov mode

2018-08-22 Thread Shannon Nelson
There seems to be a problem in the x540's internal switch wherein if SR/IOV mode is enabled and an offloaded IPsec packet is sent to a local VF, the packet is silently dropped. This might never be a problem as it is somewhat a corner case, but if someone happens to be using IPsec offload from the

[PATCH next-queue 2/2] ixgbe: fix the return value for unsupported VF offload

2018-08-22 Thread Shannon Nelson
When failing the request because we can't support that offload, reporting EOPNOTSUPP makes much more sense than ENXIO. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i

Re: is "volatile" the cause of ifconfig flags not matching sysfs flags?

2018-08-22 Thread Stephen Hemminger
On Wed, 22 Aug 2018 18:32:36 -0400 (EDT) "Robert P. J. Day" wrote: > almost certainly another dumb question, but i was poking around the > sysfs, particularly /sys/class/net//*, to familiarize myself > with what i can glean (or set) re interfaces under /sys, and i noticed > "flags", but what i

is "volatile" the cause of ifconfig flags not matching sysfs flags?

2018-08-22 Thread Robert P. J. Day
almost certainly another dumb question, but i was poking around the sysfs, particularly /sys/class/net//*, to familiarize myself with what i can glean (or set) re interfaces under /sys, and i noticed "flags", but what i get there doesn't match what i get by running ifconfig. specifically, if

Re: [bpf PATCH 0/2] tls, sockmap, fixes for sk_wait_event

2018-08-22 Thread Daniel Borkmann
On 08/22/2018 05:37 PM, John Fastabend wrote: > I have been testing ktls and sockmap lately and noticed that neither > was handling sk_write_space events correctly. We need to ensure > these events are pushed down to the lower layer in all cases to > handle the case where the lower layer sendpage c

[PATCH bpf] bpf: use per htab salt for bucket hash

2018-08-22 Thread Daniel Borkmann
All BPF hash and LRU maps currently have a known and global seed we feed into jhash() which is 0. This is suboptimal, thus fix it by generating a random seed upon hashtab setup time which we can later on feed into jhash() on lookup, update and deletions. Fixes: 0f8e4bd8a1fc8 ("bpf: add hashtable t

[PATCH net 1/3] tcp_bbr: add bbr_check_probe_rtt_done() helper

2018-08-22 Thread Kevin Yang
This patch add a helper function bbr_check_probe_rtt_done() to 1. check the condition to see if bbr should exit probe_rtt mode; 2. process the logic of exiting probe_rtt mode. Fixes: 0f8782ea1497 ("tcp_bbr: add BBR congestion control") Signed-off-by: Kevin Yang Signed-off-by: Neal Cardwell S

[PATCH net 0/3] tcp_bbr: PROBE_RTT minor bug fixes

2018-08-22 Thread Kevin Yang
From: "Kevin(Yudong) Yang" This series includes two minor bug fixes for the TCP BBR PROBE_RTT mechanism, and one preparatory patch: (1) A preparatory patch to reorganize the PROBE_RTT logic by refactoring (into its own function) the code to exit PROBE_RTT, since the next patch will be us

[PATCH net 2/3] tcp_bbr: in restart from idle, see if we should exit PROBE_RTT

2018-08-22 Thread Kevin Yang
This patch fix the case where BBR does not exit PROBE_RTT mode when it restarts from idle. When BBR restarts from idle and if BBR is in PROBE_RTT mode, BBR should check if it's time to exit PROBE_RTT. If yes, then BBR should exit PROBE_RTT mode and restore the cwnd to its full value. Fixes: 0f8782

[PATCH net 3/3] tcp_bbr: apply PROBE_RTT cwnd cap even if acked==0

2018-08-22 Thread Kevin Yang
This commit fixes a corner case where TCP BBR would enter PROBE_RTT mode but not reduce its cwnd. If a TCP receiver ACKed less than one full segment, the number of delivered/acked packets was 0, so that bbr_set_cwnd() would short-circuit and exit early, without cutting cwnd to the value we want for

[PATCH ipsec-next] xfrm: allow driver to quietly refuse offload

2018-08-22 Thread Shannon Nelson
If the "offload" attribute is used to create an IPsec SA and the .xdo_dev_state_add() fails, the SA creation fails. However, if the "offload" attribute is used on a device that doesn't offer it, the attribute is quietly ignored and the SA is created without an offload. Along the same line of that

[PATCH net] ipv4: tcp: send zero IPID for RST and ACK sent in SYN-RECV and TIME-WAIT state

2018-08-22 Thread Eric Dumazet
tcp uses per-cpu (and per namespace) sockets (net->ipv4.tcp_sk) internally to send some control packets. 1) RST packets, through tcp_v4_send_reset() 2) ACK packets in SYN-RECV and TIME-WAIT state, through tcp_v4_send_ack() These packets assert IP_DF, and also use the hashed IP ident generator to

Re: [Patch net] addrconf: reduce unnecessary atomic allocations

2018-08-22 Thread David Ahern
On 8/22/18 1:58 PM, Cong Wang wrote: > All the 3 callers of addrconf_add_mroute() assert RTNL > lock, they don't take any additional lock either, so > it is safe to convert it to GFP_KERNEL. > > Same for sit_add_v4_addrs(). > > Cc: David Ahern > Signed-off-by: Cong Wang > --- > net/ipv6/addrco

[Patch net] addrconf: reduce unnecessary atomic allocations

2018-08-22 Thread Cong Wang
All the 3 callers of addrconf_add_mroute() assert RTNL lock, they don't take any additional lock either, so it is safe to convert it to GFP_KERNEL. Same for sit_add_v4_addrs(). Cc: David Ahern Signed-off-by: Cong Wang --- net/ipv6/addrconf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 delet

[Patch net] net_sched: fix a compiler warning for tcf_exts_for_each_action()

2018-08-22 Thread Cong Wang
When CONFIG_NET_CLS_ACT=n, tcf_exts_for_each_action() is a nop, which leaves its parameters unused. Shut up the compiler warning by casting them to void. Fixes: 244cd96adb5f ("net_sched: remove list_head from tc_action") Reported-by: Stephen Rothwell Signed-off-by: Cong Wang --- include/net/pkt

[RFC PATCH v2 bpf-next 2/2] bpf/verifier: display non-spill stack slot types in print_verifier_state

2018-08-22 Thread Edward Cree
If a stack slot does not hold a spilled register (STACK_SPILL), then each of its eight bytes could potentially have a different slot_type. This information can be important for debugging, and previously we either did not print anything for the stack slot, or just printed fp-X=0 in the case whe

[RFC PATCH v2 bpf-next 1/2] bpf/verifier: per-register parent pointers

2018-08-22 Thread Edward Cree
By giving each register its own liveness chain, we elide the skip_callee() logic. Instead, each register's parent is the state it inherits from; both check_func_call() and prepare_func_exit() automatically connect reg states to the correct chain since when they copy the reg state across (r1-r5

[RFC PATCH v2 bpf-next 0/2] verifier liveness simplification

2018-08-22 Thread Edward Cree
The first patch is a simplification of register liveness tracking by using a separate parentage chain for each register and stack slot, thus avoiding the need for logic to handle callee-saved registers when applying read marks. In the future this idea may be extended to form use-def chains. The

Re: [bpf PATCH 0/2] tls, sockmap, fixes for sk_wait_event

2018-08-22 Thread Alexei Starovoitov
On Wed, Aug 22, 2018 at 08:37:27AM -0700, John Fastabend wrote: > I have been testing ktls and sockmap lately and noticed that neither > was handling sk_write_space events correctly. We need to ensure > these events are pushed down to the lower layer in all cases to > handle the case where the lowe

Re: [bpf PATCH 1/2] tls: possible hang when do_tcp_sendpages hits sndbuf is full case

2018-08-22 Thread Dave Watson
On 08/22/18 08:37 AM, John Fastabend wrote: > Currently, the lower protocols sk_write_space handler is not called if > TLS is sending a scatterlist via tls_push_sg. However, normally > tls_push_sg calls do_tcp_sendpage, which may be under memory pressure, > that in turn may trigger a wait via sk_w

[PATCH iproute2 3/3] testsuite: run dmesg with sudo

2018-08-22 Thread Luca Boccassi
Some distributions like Debian nowadays restrict the dmesg command to root-only. Run it with sudo in the testsuite. Signed-off-by: Luca Boccassi --- testsuite/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/Makefile b/testsuite/Makefile index 5e269877..ef45

[PATCH iproute2 2/3] testsuite: let make compile build the netlink helper

2018-08-22 Thread Luca Boccassi
The generate_nlmsg binary is required but make -C testsuite compile does not build it. Add the necessary includes and C*FLAGS to the tools Makefile and have the compile target build it. Signed-off-by: Luca Boccassi --- testsuite/Makefile | 1 + testsuite/tools/Makefile | 4 +++- 2 files ch

[PATCH iproute2 1/3] testsuite: remove all temp files and implement make clean

2018-08-22 Thread Luca Boccassi
Some generated test files were not removed, including one executable in the testsuite/tools directory. Ensure make clean from the top level directory works for the testsuite subdirs too, and that all the files are removed. Signed-off-by: Luca Boccassi --- Makefile | 2 +- testsui

[PATCH bpf] bpf, sockmap: fix sock hash count in alloc_sock_hash_elem

2018-08-22 Thread Daniel Borkmann
When we try to allocate a new sock hash entry and the allocation fails, then sock hash map fails to reduce the map element counter, meaning we keep accounting this element although it was never used. Fix it by dropping the element counter on error. Fixes: 81110384441a ("bpf: sockmap, add hash map

Re: ixgbe hangs when XDP_TX is enabled

2018-08-22 Thread Jeff Kirsher
On Tue, 2018-08-21 at 11:13 -0700, Alexander Duyck wrote: > On Tue, Aug 21, 2018 at 9:59 AM Nikita V. Shirokov < > tehn...@tehnerd.com> wrote: > > > > On Tue, Aug 21, 2018 at 08:58:15AM -0700, Alexander Duyck wrote: > > > On Mon, Aug 20, 2018 at 12:32 PM Nikita V. Shirokov < > > > tehn...@tehnerd.

[bpf PATCH 2/2] bpf: sockmap: write_space events need to be passed to TCP handler

2018-08-22 Thread John Fastabend
When sockmap code is using the stream parser it also handles the write space events in order to handle the case where (a) verdict redirects skb to another socket and (b) the sockmap then sends the skb but due to memory constraints (or other EAGAIN errors) needs to do a retry. But the initial code

[bpf PATCH 0/2] tls, sockmap, fixes for sk_wait_event

2018-08-22 Thread John Fastabend
I have been testing ktls and sockmap lately and noticed that neither was handling sk_write_space events correctly. We need to ensure these events are pushed down to the lower layer in all cases to handle the case where the lower layer sendpage call has called sk_wait_event and needs to be woken up.

[bpf PATCH 1/2] tls: possible hang when do_tcp_sendpages hits sndbuf is full case

2018-08-22 Thread John Fastabend
Currently, the lower protocols sk_write_space handler is not called if TLS is sending a scatterlist via tls_push_sg. However, normally tls_push_sg calls do_tcp_sendpage, which may be under memory pressure, that in turn may trigger a wait via sk_wait_event. Typically, this happens when the in-fligh

Re: [PATCH] net: macb: do not disable MDIO bus at open/close time

2018-08-22 Thread Claudiu Beznea
On 20.08.2018 17:55, Anssi Hannula wrote: > macb_reset_hw() is called from macb_close() and indirectly from > macb_open(). macb_reset_hw() zeroes the NCR register, including the MPE > (Management Port Enable) bit. > > This will prevent accessing any other PHYs for other Ethernet MACs on > the M

[PATCH lora-next 3/3] net: lora: sx125x sx1301: allow radio to register as a clk provider

2018-08-22 Thread Ben Whitten
From: Ben Whitten The 32M is run from the radio, before we just enabled it based on the radio number but now we can use the clk framework to request the clk is started when we need it. The 32M clock produced from the radio is really a gated version of tcxo which is a fixed clock provided by hard

[PATCH lora-next 1/3] net: lora: sx1301: convert to using regmap fields for bit ops

2018-08-22 Thread Ben Whitten
From: Ben Whitten We convert to using regmap fields to allow bit access to the registers where regmap handles the read update write. Signed-off-by: Ben Whitten --- drivers/net/lora/sx1301.c | 240 +- drivers/net/lora/sx1301.h | 46 + 2 files

[PATCH lora-next 2/3] net: lora: sx125x: convert to regmap fields

2018-08-22 Thread Ben Whitten
From: Ben Whitten We convert to using regmap fields to allow regmap to take care of read modify writes and bit shifting for ofset fields. Signed-off-by: Ben Whitten --- drivers/net/lora/sx125x.c | 59 --- 1 file changed, 51 insertions(+), 8 deletions

Re: [PATCH] testsuite: Handle large number of kernel options

2018-08-22 Thread Luca Boccassi
On Wed, 2018-08-22 at 10:31 +0200, Stefan Bader wrote: > Once there are more than a certain number of kernel config options > set (this happened for us with kernel 4.17), the method of passing > those as command line arguments exceeds the maximum number of > arguments the shell supports. This cause

Re: [endianness bug] cxgb4: mk_act_open_req() buggers ->{local,peer}_ip on big-endian hosts

2018-08-22 Thread Ganesh Goudar
Hi Al, All the issues you have mentioned make sense to me, I will fix them and try to have them tested on big endian machine. I got all the patches from net-endian.chelsio they all look good, But I am yet to go through (struct cxgb4_next_header .match_val/.match_mask/mask should be net-endian). r

[PATCH] testsuite: Handle large number of kernel options

2018-08-22 Thread Stefan Bader
Once there are more than a certain number of kernel config options set (this happened for us with kernel 4.17), the method of passing those as command line arguments exceeds the maximum number of arguments the shell supports. This causes the whole testsuite to fail. Instead, create a temporary file

Re: [bpf-next RFC 0/3] Introduce eBPF flow dissector

2018-08-22 Thread Daniel Borkmann
"On 08/22/2018 09:22 AM, Daniel Borkmann wrote: > On 08/22/2018 02:19 AM, Petar Penkov wrote: >> On Mon, Aug 20, 2018 at 1:52 PM, Alexei Starovoitov >> wrote: >>> On Thu, Aug 16, 2018 at 09:44:20AM -0700, Petar Penkov wrote: From: Petar Penkov > [...] 3/ The BPF program cannot use direc

Re: virtio_net failover and initramfs

2018-08-22 Thread Siwei Liu
On Wed, Aug 22, 2018 at 12:23 AM, Harald Hoyer wrote: > On 22.08.2018 09:17, Siwei Liu wrote: >> On Tue, Aug 21, 2018 at 6:44 AM, Harald Hoyer wrote: >>> On 17.08.2018 21:09, Samudrala, Sridhar wrote: On 8/17/2018 2:56 AM, Harald Hoyer wrote: > On 17.08.2018 11:51, Harald Hoyer wrote: >>

Re: virtio_net failover and initramfs

2018-08-22 Thread Harald Hoyer
On 22.08.2018 09:17, Siwei Liu wrote: > On Tue, Aug 21, 2018 at 6:44 AM, Harald Hoyer wrote: >> On 17.08.2018 21:09, Samudrala, Sridhar wrote: >>> On 8/17/2018 2:56 AM, Harald Hoyer wrote: On 17.08.2018 11:51, Harald Hoyer wrote: > On 16.08.2018 00:17, Siwei Liu wrote: >> On Wed, Aug

Re: [bpf-next RFC 0/3] Introduce eBPF flow dissector

2018-08-22 Thread Daniel Borkmann
On 08/22/2018 02:19 AM, Petar Penkov wrote: > On Mon, Aug 20, 2018 at 1:52 PM, Alexei Starovoitov > wrote: >> On Thu, Aug 16, 2018 at 09:44:20AM -0700, Petar Penkov wrote: >>> From: Petar Penkov [...] >>> 3/ The BPF program cannot use direct packet access everywhere because it >>> uses an offset,

Re: virtio_net failover and initramfs

2018-08-22 Thread Siwei Liu
On Tue, Aug 21, 2018 at 6:44 AM, Harald Hoyer wrote: > On 17.08.2018 21:09, Samudrala, Sridhar wrote: >> On 8/17/2018 2:56 AM, Harald Hoyer wrote: >>> On 17.08.2018 11:51, Harald Hoyer wrote: On 16.08.2018 00:17, Siwei Liu wrote: > On Wed, Aug 15, 2018 at 12:05 PM, Samudrala, Sridhar