Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
authorDavid S. Miller <davem@davemloft.net>
Sat, 12 May 2018 00:53:22 +0000 (20:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 May 2018 00:53:22 +0000 (20:53 -0400)
The bpf syscall and selftests conflicts were trivial
overlapping changes.

The r8169 change involved moving the added mdelay from 'net' into a
different function.

A TLS close bug fix overlapped with the splitting of the TLS state
into separate TX and RX parts.  I just expanded the tests in the bug
fix from "ctx->conf == X" into "ctx->tx_conf == X && ctx->rx_conf
== X".

Signed-off-by: David S. Miller <davem@davemloft.net>
28 files changed:
1  2 
MAINTAINERS
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/global2.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/realtek/r8169.c
drivers/net/hyperv/rndis_filter.c
drivers/net/phy/sfp-bus.c
include/net/flow_dissector.h
kernel/bpf/syscall.c
net/ipv4/udp.c
net/ipv6/ip6_vti.c
net/ipv6/udp.c
net/sctp/associola.c
net/sctp/sm_make_chunk.c
net/tipc/node.c
net/tipc/socket.c
net/tls/tls_main.c
net/xfrm/xfrm_state.c
tools/testing/selftests/net/Makefile

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 6d99b141a7aa3a4665fcde29325afac57b0c99c5,c7aac1fc99e8c1a7fdd89cd777b262ae88e22afa..2c2f0c5b3f9476f1a544dfc2577d8a67342711e1
@@@ -4662,6 -4855,6 +4662,9 @@@ static void r8168_phy_power_up(struct r
                break;
        }
        rtl_writephy(tp, MII_BMCR, BMCR_ANENABLE);
++
++      /* give MAC/PHY some time to resume */
++      msleep(20);
  }
  
  static void r8168_phy_power_down(struct rtl8169_private *tp)
Simple merge
Simple merge
Simple merge
index 9b87198deea26cbdcddb71f79677f3e3d021483e,016ef90258274425f5af2a5f62c7d426760423c4..c286e75ec0875dc3c5208ad1337c5a6245d81a89
@@@ -27,7 -26,7 +27,8 @@@
  #include <linux/cred.h>
  #include <linux/timekeeping.h>
  #include <linux/ctype.h>
 +#include <linux/btf.h>
+ #include <linux/nospec.h>
  
  #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY || \
                           (map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \
diff --cc net/ipv4/udp.c
Simple merge
Simple merge
diff --cc net/ipv6/udp.c
Simple merge
Simple merge
Simple merge
diff --cc net/tipc/node.c
Simple merge
Simple merge
index 4b57ddd72f34edbc6e3e393f5119aaf02231cb03,20cd93be6236e03e2fbdbfc9e44cbb12d3261c84..301f224304698950544088c16518ea2e14ff41a6
@@@ -252,12 -254,8 +254,9 @@@ static void tls_sk_proto_close(struct s
        lock_sock(sk);
        sk_proto_close = ctx->sk_proto_close;
  
-       if (ctx->tx_conf == TLS_HW_RECORD && ctx->rx_conf == TLS_HW_RECORD)
-               goto skip_tx_cleanup;
-       if (ctx->tx_conf == TLS_BASE && ctx->rx_conf == TLS_BASE) {
-               kfree(ctx);
-               ctx = NULL;
 -      if (ctx->conf == TLS_BASE || ctx->conf == TLS_HW_RECORD) {
++      if ((ctx->tx_conf == TLS_HW_RECORD && ctx->rx_conf == TLS_HW_RECORD) ||
++          (ctx->tx_conf == TLS_BASE && ctx->rx_conf == TLS_BASE)) {
+               free_ctx = true;
                goto skip_tx_cleanup;
        }
  
Simple merge
index 73af45773938ce415bd00dff9debcbec1a8513a3,3ff81a478dbed059f3d0b92c9291c96efdbc7284..e60dddbf963c76056deb7aeb4517c0079b1b305b
@@@ -5,13 -5,10 +5,13 @@@ CFLAGS =  -Wall -Wl,--no-as-needed -O2 
  CFLAGS += -I../../../../usr/include/
  
  TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh rtnetlink.sh
- TEST_PROGS += fib_tests.sh fib-onlink-tests.sh in_netns.sh pmtu.sh udpgso.sh
 -TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh
++TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh
 +TEST_PROGS += udpgso_bench.sh
- TEST_GEN_PROGS_EXTENDED := in_netns.sh
+ TEST_PROGS_EXTENDED := in_netns.sh
  TEST_GEN_FILES =  socket
  TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy
 +TEST_GEN_FILES += tcp_mmap tcp_inq
 +TEST_GEN_FILES += udpgso udpgso_bench_tx udpgso_bench_rx
  TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
  TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict