Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
authorDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2019 02:48:13 +0000 (19:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2019 03:20:36 +0000 (20:20 -0700)
Honestly all the conflicts were simple overlapping changes,
nothing really interesting to report.

Signed-off-by: David S. Miller <davem@davemloft.net>
117 files changed:
1  2 
Documentation/networking/ip-sysctl.txt
MAINTAINERS
arch/arm/net/bpf_jit_32.c
arch/powerpc/net/bpf_jit_comp64.c
arch/riscv/net/bpf_jit_comp.c
drivers/net/dsa/microchip/ksz_common.c
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h
drivers/net/ethernet/huawei/hinic/hinic_hw_io.c
drivers/net/ethernet/huawei/hinic/hinic_hw_qp_ctxt.h
drivers/net/ethernet/huawei/hinic/hinic_hw_wqe.h
drivers/net/ethernet/huawei/hinic/hinic_main.c
drivers/net/ethernet/huawei/hinic/hinic_port.c
drivers/net/ethernet/huawei/hinic/hinic_port.h
drivers/net/ethernet/huawei/hinic/hinic_rx.c
drivers/net/ethernet/huawei/hinic/hinic_rx.h
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/qlogic/qed/qed_debug.c
drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
drivers/net/ethernet/stmicro/stmmac/mmc.h
drivers/net/ethernet/stmicro/stmmac/mmc_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
drivers/net/phy/Kconfig
drivers/net/phy/Makefile
drivers/net/vxlan.c
drivers/net/wireless/intel/iwlegacy/3945-rs.c
drivers/net/wireless/intel/iwlegacy/4965-rs.c
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
drivers/net/wireless/mac80211_hwsim.c
drivers/scsi/qedf/qedf_main.c
drivers/scsi/qedi/qedi_main.c
include/linux/bpf-cgroup.h
include/linux/bpf.h
include/linux/cgroup.h
include/linux/phylink.h
include/linux/stmmac.h
include/linux/tcp.h
include/net/cfg80211.h
include/net/flow_dissector.h
include/net/netns/ipv4.h
include/net/tcp.h
include/uapi/linux/bpf.h
include/uapi/linux/snmp.h
kernel/bpf/arraymap.c
kernel/bpf/core.c
kernel/bpf/cpumap.c
kernel/bpf/devmap.c
kernel/bpf/hashtab.c
kernel/bpf/lpm_trie.c
kernel/bpf/syscall.c
kernel/bpf/verifier.c
kernel/cgroup/cgroup.c
kernel/trace/bpf_trace.c
net/core/bpf_sk_storage.c
net/core/filter.c
net/core/neighbour.c
net/core/skbuff.c
net/ipv4/fib_semantics.c
net/ipv4/ip_output.c
net/ipv4/proc.c
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/udp.c
net/ipv6/icmp.c
net/ipv6/ip6_output.c
net/ipv6/reassembly.c
net/ipv6/udp.c
net/lapb/lapb_iface.c
net/mac80211/cfg.c
net/mac80211/key.c
net/mac80211/mlme.c
net/openvswitch/datapath.c
net/openvswitch/vport.c
net/sched/cls_flower.c
net/tls/tls_sw.c
net/vmw_vsock/af_vsock.c
net/vmw_vsock/hyperv_transport.c
net/wireless/core.c
net/wireless/nl80211.c
net/wireless/scan.c
samples/bpf/bpf_load.c
tools/bpf/bpftool/Documentation/bpftool-cgroup.rst
tools/bpf/bpftool/Documentation/bpftool-prog.rst
tools/bpf/bpftool/bash-completion/bpftool
tools/bpf/bpftool/prog.c
tools/include/uapi/linux/bpf.h
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_sock_addr.c

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
index 30f7dffb5b1b805cae792900bd7a3c75bb9a05ab,e94686c420004c2bd44417fd21b2f8d67a5e69b5..8cdd7e66f8df5b69d75fe18cb5aafb8a0b1dc436
@@@ -628,7 -632,11 +632,11 @@@ const char *mlx5_command_str(int comman
        MLX5_COMMAND_STR_CASE(QUERY_MODIFY_HEADER_CONTEXT);
        MLX5_COMMAND_STR_CASE(ALLOC_MEMIC);
        MLX5_COMMAND_STR_CASE(DEALLOC_MEMIC);
 -      MLX5_COMMAND_STR_CASE(QUERY_HOST_PARAMS);
 +      MLX5_COMMAND_STR_CASE(QUERY_ESW_FUNCTIONS);
+       MLX5_COMMAND_STR_CASE(CREATE_UCTX);
+       MLX5_COMMAND_STR_CASE(DESTROY_UCTX);
+       MLX5_COMMAND_STR_CASE(CREATE_UMEM);
+       MLX5_COMMAND_STR_CASE(DESTROY_UMEM);
        default: return "unknown command opcode";
        }
  }
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 74904e9d1b726f5089bdfb2f6d1280fa991a27a7,fd42c1316d3d112ecd8a00d2b499d6f6901c5e81..549a31c29f7d4ebbc3a861244e9757c3ebbc2d0d
@@@ -283,7 -283,7 +283,8 @@@ enu
        LINUX_MIB_TCPACKCOMPRESSED,             /* TCPAckCompressed */
        LINUX_MIB_TCPZEROWINDOWDROP,            /* TCPZeroWindowDrop */
        LINUX_MIB_TCPRCVQDROP,                  /* TCPRcvQDrop */
+       LINUX_MIB_TCPWQUEUETOOBIG,              /* TCPWqueueTooBig */
 +      LINUX_MIB_TCPFASTOPENPASSIVEALTKEY,     /* TCPFastOpenPassiveAltKey */
        __LINUX_MIB_MAX
  };
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 5c2cb5bd84ce551bae49e57fd111ecc102f79024,a5c369e60343d4239285078410cb6d5b470ff48c..1e9d10b32984139ee906163248f0b86024501e02
@@@ -5513,13 -5353,12 +5505,16 @@@ static int check_return_code(struct bpf
        struct tnum range = tnum_range(0, 1);
  
        switch (env->prog->type) {
+       case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
+               if (env->prog->expected_attach_type == BPF_CGROUP_UDP4_RECVMSG ||
+                   env->prog->expected_attach_type == BPF_CGROUP_UDP6_RECVMSG)
+                       range = tnum_range(1, 1);
        case BPF_PROG_TYPE_CGROUP_SKB:
 +              if (env->prog->expected_attach_type == BPF_CGROUP_INET_EGRESS) {
 +                      range = tnum_range(0, 3);
 +                      enforce_attach_type_range = tnum_range(2, 3);
 +              }
        case BPF_PROG_TYPE_CGROUP_SOCK:
-       case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
        case BPF_PROG_TYPE_SOCK_OPS:
        case BPF_PROG_TYPE_CGROUP_DEVICE:
        case BPF_PROG_TYPE_CGROUP_SYSCTL:
                        verbose(env, "has unknown scalar value");
                }
                tnum_strn(tn_buf, sizeof(tn_buf), range);
-               verbose(env, " should have been %s\n", tn_buf);
+               verbose(env, " should have been in %s\n", tn_buf);
                return -EINVAL;
        }
 +
 +      if (!tnum_is_unknown(enforce_attach_type_range) &&
 +          tnum_in(enforce_attach_type_range, reg->var_off))
 +              env->prog->enforce_expected_attach_type = 1;
        return 0;
  }
  
Simple merge
Simple merge
index f40e3d35fd9c2f88e6ced6bc0992c276f177d29c,d1c4e1f3be2c71385e5c4414b8c831e4b2e4a91d..94c7f77ecb6b66b388dcc23c151d487e614196d1
@@@ -634,16 -633,9 +634,17 @@@ static struct bpf_map *bpf_sk_storage_m
                return ERR_PTR(-ENOMEM);
        bpf_map_init_from_attr(&smap->map, attr);
  
-       smap->bucket_log = ilog2(roundup_pow_of_two(num_possible_cpus()));
+       /* Use at least 2 buckets, select_bucket() is undefined behavior with 1 bucket */
+       smap->bucket_log = max_t(u32, 1, ilog2(roundup_pow_of_two(num_possible_cpus())));
        nbuckets = 1U << smap->bucket_log;
 +      cost = sizeof(*smap->buckets) * nbuckets + sizeof(*smap);
 +
 +      ret = bpf_map_charge_init(&smap->map.memory, cost);
 +      if (ret < 0) {
 +              kfree(smap);
 +              return ERR_PTR(ret);
 +      }
 +
        smap->buckets = kvcalloc(sizeof(*smap->buckets), nbuckets,
                                 GFP_USER | __GFP_NOWARN);
        if (!smap->buckets) {
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc net/ipv4/proc.c
index 80d2ba1b6299ac095f9fffb020bf8103e3bb10ee,073273b751f8fcda1c9c79cd1ab566f2939b2517..cc90243ccf767807cad7fa47ba808df75554fd5e
@@@ -287,7 -287,7 +287,8 @@@ static const struct snmp_mib snmp4_net_
        SNMP_MIB_ITEM("TCPAckCompressed", LINUX_MIB_TCPACKCOMPRESSED),
        SNMP_MIB_ITEM("TCPZeroWindowDrop", LINUX_MIB_TCPZEROWINDOWDROP),
        SNMP_MIB_ITEM("TCPRcvQDrop", LINUX_MIB_TCPRCVQDROP),
+       SNMP_MIB_ITEM("TCPWqueueTooBig", LINUX_MIB_TCPWQUEUETOOBIG),
 +      SNMP_MIB_ITEM("TCPFastOpenPassiveAltKey", LINUX_MIB_TCPFASTOPENPASSIVEALTKEY),
        SNMP_MIB_SENTINEL
  };
  
Simple merge
diff --cc net/ipv4/tcp.c
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc net/ipv4/udp.c
Simple merge
diff --cc net/ipv6/icmp.c
Simple merge
Simple merge
Simple merge
diff --cc net/ipv6/udp.c
Simple merge
Simple merge
index fcf1dfc3a1cc6e4344aa96d494cac5a515ceba6d,a1973a26c7fc458f74946b48e75385dffcba4be4..4f12d042c89c54b56862318cd4ba01ebd48cef4b
@@@ -4,9 -5,7 +5,8 @@@
   * Copyright 2006-2010        Johannes Berg <johannes@sipsolutions.net>
   * Copyright 2013-2015  Intel Mobile Communications GmbH
   * Copyright (C) 2015-2017 Intel Deutschland GmbH
-  *
-  * This file is GPLv2 as found in COPYING.
 + * Copyright (C) 2018-2019 Intel Corporation
+  * Copyright (C) 2018 Intel Corporation
   */
  
  #include <linux/ieee80211.h>
index faadfeea7127dcaac956584f331c04f242b2e6d4,89f09a09efdb7c6a3bd13bf91f1e82c9186e766e..49f86f412564757afe36c998a07f741f889ac942
@@@ -271,12 -271,7 +271,10 @@@ int ieee80211_set_tx_key(struct ieee802
  
        assert_key_lock(local);
  
-       old = key_mtx_dereference(local, sta->ptk[sta->ptk_idx]);
        sta->ptk_idx = key->conf.keyidx;
 +
 +      if (ieee80211_hw_check(&local->hw, NO_AMPDU_KEYBORDER_SUPPORT))
 +              clear_sta_flag(sta, WLAN_STA_BLOCK_BA);
        ieee80211_check_fast_xmit(sta);
  
        return 0;
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 2b426ae1cdc9e9ade4b7274d24e80a839afc3f93,e36356e2377e9624b23002a8ab6e9786b2a7c518..d8df5c9b5b2fff6b42c317c2347e11c670e0653e
@@@ -23,10 -21,9 +23,10 @@@ LDLIBS += -lcap -lelf -lrt -lpthrea
  # Order correspond to 'make run_tests' order
  TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \
        test_align test_verifier_log test_dev_cgroup test_tcpbpf_user \
-       test_sock test_btf test_sockmap test_lirc_mode2_user get_cgroup_id_user \
-       test_socket_cookie test_cgroup_storage test_select_reuseport test_section_names \
+       test_sock test_btf test_sockmap get_cgroup_id_user test_socket_cookie \
+       test_cgroup_storage test_select_reuseport test_section_names \
 -      test_netcnt test_tcpnotify_user test_sock_fields test_sysctl
 +      test_netcnt test_tcpnotify_user test_sock_fields test_sysctl test_hashmap \
 +      test_btf_dump test_cgroup_attach xdping
  
  BPF_OBJ_FILES = $(patsubst %.c,%.o, $(notdir $(wildcard progs/*.c)))
  TEST_GEN_FILES = $(BPF_OBJ_FILES)