1. 15 12月, 2018 13 次提交
  2. 14 12月, 2018 2 次提交
  3. 13 12月, 2018 13 次提交
  4. 12 12月, 2018 2 次提交
  5. 11 12月, 2018 10 次提交
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · addb0679
      David S. Miller 提交于
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2018-12-11
      
      The following pull-request contains BPF updates for your *net-next* tree.
      
      It has three minor merge conflicts, resolutions:
      
      1) tools/testing/selftests/bpf/test_verifier.c
      
       Take first chunk with alignment_prevented_execution.
      
      2) net/core/filter.c
      
        [...]
        case bpf_ctx_range_ptr(struct __sk_buff, flow_keys):
        case bpf_ctx_range(struct __sk_buff, wire_len):
              return false;
        [...]
      
      3) include/uapi/linux/bpf.h
      
        Take the second chunk for the two cases each.
      
      The main changes are:
      
      1) Add support for BPF line info via BTF and extend libbpf as well
         as bpftool's program dump to annotate output with BPF C code to
         facilitate debugging and introspection, from Martin.
      
      2) Add support for BPF_ALU | BPF_ARSH | BPF_{K,X} in interpreter
         and all JIT backends, from Jiong.
      
      3) Improve BPF test coverage on archs with no efficient unaligned
         access by adding an "any alignment" flag to the BPF program load
         to forcefully disable verifier alignment checks, from David.
      
      4) Add a new bpf_prog_test_run_xattr() API to libbpf which allows for
         proper use of BPF_PROG_TEST_RUN with data_out, from Lorenz.
      
      5) Extend tc BPF programs to use a new __sk_buff field called wire_len
         for more accurate accounting of packets going to wire, from Petar.
      
      6) Improve bpftool to allow dumping the trace pipe from it and add
         several improvements in bash completion and map/prog dump,
         from Quentin.
      
      7) Optimize arm64 BPF JIT to always emit movn/movk/movk sequence for
         kernel addresses and add a dedicated BPF JIT backend allocator,
         from Ard.
      
      8) Add a BPF helper function for IR remotes to report mouse movements,
         from Sean.
      
      9) Various cleanups in BPF prog dump e.g. to make UAPI bpf_prog_info
         member naming consistent with existing conventions, from Yonghong
         and Song.
      
      10) Misc cleanups and improvements in allowing to pass interface name
          via cmdline for xdp1 BPF example, from Matteo.
      
      11) Fix a potential segfault in BPF sample loader's kprobes handling,
          from Daniel T.
      
      12) Fix SPDX license in libbpf's README.rst, from Andrey.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      addb0679
    • D
      neighbor: gc_list changes should be protected by table lock · 8cc196d6
      David Ahern 提交于
      Adding and removing neighbor entries to / from the gc_list need to be
      done while holding the table lock; a couple of places were missed in the
      original patch.
      
      Move the list_add_tail in neigh_alloc to ___neigh_create where the lock
      is already obtained. Since neighbor entries should rarely be moved
      to/from PERMANENT state, add lock/unlock around the gc_list changes in
      neigh_change_state rather than extending the lock hold around all
      neighbor updates.
      
      Fixes: 58956317 ("neighbor: Improve garbage collection")
      Reported-by: NAndrei Vagin <avagin@gmail.com>
      Reported-by: syzbot+6cc2fd1d3bdd2e007363@syzkaller.appspotmail.com
      Reported-by: syzbot+35e87b87c00f386b041f@syzkaller.appspotmail.com
      Reported-by: syzbot+b354d1fb59091ea73c37@syzkaller.appspotmail.com
      Reported-by: syzbot+3ddead5619658537909b@syzkaller.appspotmail.com
      Reported-by: syzbot+424d47d5c456ce8b2bbe@syzkaller.appspotmail.com
      Reported-by: syzbot+e4d42eb35f6a27b0a628@syzkaller.appspotmail.com
      Signed-off-by: NDavid Ahern <dsahern@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8cc196d6
    • D
      Merge tag 'mlx5e-updates-2018-12-10' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 93698321
      David S. Miller 提交于
      Saeed Mahameed:
      
      ====================
      mlx5e-updates-2018-12-10 (gre)
      
      This patch set adds GRE offloading support to Mellanox ethernet driver.
      
      Patches 1-5 replace the existing egdev mechanism with the new TC indirect
      block binds mechanism that was introduced by Netronome:
      7f76fa36 ("net: sched: register callbacks for indirect tc block binds")
      
      Patches 6-9 add GRE offloading support along with some required
      refactoring work.
      
      Patch 10, Add netif_is_gretap()/netif_is_ip6gretap()
       - Changed the is_gretap_dev and is_ip6gretap_dev logic from structure
         comparison to string comparison of the rtnl_link_ops kind field.
      
      Patch 11, add GRE offloading support to mlx5.
      
      Patch 12 removes the egdev mechanism from TC as it is no longer used by
      any of the drivers.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      93698321
    • O
      net/sched: Remove egdev mechanism · 69bd4840
      Oz Shlomo 提交于
      The egdev mechanism was replaced by the TC indirect block notifications
      platform.
      Signed-off-by: NOz Shlomo <ozsh@mellanox.com>
      Reviewed-by: NEli Britstein <elibr@mellanox.com>
      Reviewed-by: NJiri Pirko <jiri@mellanox.com>
      Cc: John Hurley <john.hurley@netronome.com>
      Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      69bd4840
    • O
      net/mlx5e: Add GRE protocol offloading · df2ef3bf
      Oz Shlomo 提交于
      Add HW offloading support for TC flower filters configured on
      gretap/ip6gretap net devices.
      Signed-off-by: NOz Shlomo <ozsh@mellanox.com>
      Reviewed-by: NEli Britstein <elibr@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      df2ef3bf
    • O
      net: Add netif_is_gretap()/netif_is_ip6gretap() · 0621e6fc
      Oz Shlomo 提交于
      Changed the is_gretap_dev and is_ip6gretap_dev logic from structure
      comparison to string comparison of the rtnl_link_ops kind field.
      
      This approach aligns with the current identification methods and function
      names of vxlan and geneve network devices.
      
      Convert mlxsw to use these helpers and use them in downstream mlx5 patch.
      Signed-off-by: NOz Shlomo <ozsh@mellanox.com>
      Reviewed-by: NEli Britstein <elibr@mellanox.com>
      Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      0621e6fc
    • O
      net/mlx5e: Move TC tunnel offloading code to separate source file · 101f4de9
      Oz Shlomo 提交于
      Move tunnel offloading related code to a separate source file for better
      code maintainability.
      
      Code refactoring with no functional change.
      Signed-off-by: NOz Shlomo <ozsh@mellanox.com>
      Reviewed-by: NEli Britstein <elibr@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      101f4de9
    • O
      net/mlx5e: Branch according to classified tunnel type · 54c177ca
      Oz Shlomo 提交于
      Currently the tunnel offloading encap/decap methods assumes that VXLAN
      is the sole tunneling protocol. Lay the infrastructure for supporting
      multiple tunneling protocols by branching according to the tunnel
      net device kind.
      
      Encap filters tunnel type is determined according to the egress/mirred
      net device. Decap filters classify the tunnel type according to the
      filter's ingress net device kind.
      
      Distinguish between the tunnel type as defined by the SW model and
      the FW reformat type that specifies the HW operation being made.
      Signed-off-by: NOz Shlomo <ozsh@mellanox.com>
      Reviewed-by: NEli Britstein <elibr@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      54c177ca
    • O
      net/mlx5e: Refactor VXLAN tunnel decap offloading code · 4d70564d
      Oz Shlomo 提交于
      Separates the vxlan header match handling from the matching on the
      general fields of ipv4/6 tunnels, thus allowing the common IP tunnel
      match code to branch in down stream patch, to multiple IP tunnels.
      
      This patch doesn't add any functionality.
      Signed-off-by: NOz Shlomo <ozsh@mellanox.com>
      Reviewed-by: NEli Britstein <elibr@mellanox.com>
      Reviewed-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      4d70564d
    • O
      net/mlx5e: Refactor VXLAN tunnel encap offloading code · ea7162ac
      Oz Shlomo 提交于
      Separates the vxlan header encap logic from the general ipv4/6
      encapsulation methods, thus allowing the common IP encap/decap code to
      branch in downstream patch to multiple IP tunnels.
      
      Code refactoring with no functional change.
      Signed-off-by: NOz Shlomo <ozsh@mellanox.com>
      Reviewed-by: NEli Britstein <elibr@mellanox.com>
      Reviewed-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      ea7162ac