Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Dec 04, 2020
    • Andrea Mayer's avatar
      vrf: add mac header for tunneled packets when sniffer is attached · 04893908
      Andrea Mayer authored
      
      Before this patch, a sniffer attached to a VRF used as the receiving
      interface of L3 tunneled packets detects them as malformed packets and
      it complains about that (i.e.: tcpdump shows bogus packets).
      
      The reason is that a tunneled L3 packet does not carry any L2
      information and when the VRF is set as the receiving interface of a
      decapsulated L3 packet, no mac header is currently set or valid.
      Therefore, the purpose of this patch consists of adding a MAC header to
      any packet which is directly received on the VRF interface ONLY IF:
      
       i) a sniffer is attached on the VRF and ii) the mac header is not set.
      
      In this case, the mac address of the VRF is copied in both the
      destination and the source address of the ethernet header. The protocol
      type is set either to IPv4 or IPv6, depending on which L3 packet is
      received.
      
      Signed-off-by: default avatarAndrea Mayer <andrea.mayer@uniroma2.it>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      04893908
    • Jakub Kicinski's avatar
      Merge tag 'wireless-drivers-next-2020-12-03' of... · 846c3c9c
      Jakub Kicinski authored
      Merge tag 'wireless-drivers-next-2020-12-03' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next
      
      Kalle Valo says:
      
      ====================
      wireless-drivers-next patches for v5.11
      
      First set of patches for v5.11. rtw88 getting improvements to work
      better with Bluetooth and other driver also getting some new features.
      mhi-ath11k-immutable branch was pulled from mhi tree to avoid
      conflicts with mhi tree.
      
      Major changes:
      
      rtw88
       * major bluetooth co-existance improvements
      wilc1000
       * Wi-Fi Multimedia (WMM) support
      ath11k
       * Fast Initial Link Setup (FILS) discovery and unsolicited broadcast
         probe response support
       * qcom,ath11k-calibration-variant Device Tree setting
       * cold boot calibration support
       * new DFS region: JP
      wnc36xx
       * enable connection monitoring and keepalive in firmware
      ath10k
       * firmware IRAM recovery feature
      mhi
       * merge mhi-ath11k-immutable branch to make MHI API change go smoothly
      
      * tag 'wireless-drivers-next-2020-12-03' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next: (180 commits)
        wl1251: remove trailing semicolon in macro definition
        airo: remove trailing semicolon in macro definition
        wilc1000: added queue support for WMM
        wilc1000: call complete() for failure in wilc_wlan_txq_add_cfg_pkt()
        wilc1000: free resource in wilc_wlan_txq_add_mgmt_pkt() for failure path
        wilc1000: free resource in wilc_wlan_txq_add_net_pkt() for failure path
        wilc1000: added 'ndo_set_mac_address' callback support
        brcmfmac: expose firmware config files through modinfo
        wlcore: Switch to using the new API kobj_to_dev()
        rtw88: coex: add feature to enhance HID coexistence performance
        rtw88: coex: upgrade coexistence A2DP mechanism
        rtw88: coex: add action for coexistence in hardware initial
        rtw88: coex: add function to avoid cck lock
        rtw88: coex: change the coexistence mechanism for WLAN connected
        rtw88: coex: change the coexistence mechanism for HID
        rtw88: coex: update AFH information while in free-run mode
        rtw88: coex: update the mechanism for A2DP + PAN
        rtw88: coex: add debug message
        rtw88: coex: run coexistence when WLAN entering/leaving LPS
        Revert "rtl8xxxu: Add Buffalo WI-U3-866D to list of supported devices"
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20201203185732.9CFA5C433ED@smtp.codeaurora.org
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      846c3c9c
    • Anders Roxell's avatar
      dpaa_eth: fix build errorr in dpaa_fq_init · fdd8b824
      Anders Roxell authored
      When building FSL_DPAA_ETH the following build error shows up:
      
      /tmp/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: In function ‘dpaa_fq_init’:
      /tmp/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:1135:9: error: too few arguments to function ‘xdp_rxq_info_reg’
       1135 |   err = xdp_rxq_info_reg(&dpaa_fq->xdp_rxq, dpaa_fq->net_dev,
            |         ^~~~~~~~~~~~~~~~
      
      Commit b02e5a0e ("xsk: Propagate napi_id to XDP socket Rx path")
      added an extra argument to function xdp_rxq_info_reg and commit
      d57e57d0
      
       ("dpaa_eth: add XDP_TX support") didn't know about that
      extra argument.
      
      Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
      Acked-by: default avatarBjörn Töpel <bjorn.topel@intel.com>
      Link: https://lore.kernel.org/r/20201203144343.790719-1-anders.roxell@linaro.org
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      fdd8b824
    • Jakub Kicinski's avatar
      Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · a1dd1d86
      Jakub Kicinski authored
      Alexei Starovoitov says:
      
      ====================
      pull-request: bpf-next 2020-12-03
      
      The main changes are:
      
      1) Support BTF in kernel modules, from Andrii.
      
      2) Introduce preferred busy-polling, from Björn.
      
      3) bpf_ima_inode_hash() and bpf_bprm_opts_set() helpers, from KP Singh.
      
      4) Memcg-based memory accounting for bpf objects, from Roman.
      
      5) Allow bpf_{s,g}etsockopt from cgroup bind{4,6} hooks, from Stanislav.
      
      * https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (118 commits)
        selftests/bpf: Fix invalid use of strncat in test_sockmap
        libbpf: Use memcpy instead of strncpy to please GCC
        selftests/bpf: Add fentry/fexit/fmod_ret selftest for kernel module
        selftests/bpf: Add tp_btf CO-RE reloc test for modules
        libbpf: Support attachment of BPF tracing programs to kernel modules
        libbpf: Factor out low-level BPF program loading helper
        bpf: Allow to specify kernel module BTFs when attaching BPF programs
        bpf: Remove hard-coded btf_vmlinux assumption from BPF verifier
        selftests/bpf: Add CO-RE relocs selftest relying on kernel module BTF
        selftests/bpf: Add support for marking sub-tests as skipped
        selftests/bpf: Add bpf_testmod kernel module for testing
        libbpf: Add kernel module BTF support for CO-RE relocations
        libbpf: Refactor CO-RE relocs to not assume a single BTF object
        libbpf: Add internal helper to load BTF data by FD
        bpf: Keep module's btf_data_size intact after load
        bpf: Fix bpf_put_raw_tracepoint()'s use of __module_address()
        selftests/bpf: Add Userspace tests for TCP_WINDOW_CLAMP
        bpf: Adds support for setting window clamp
        samples/bpf: Fix spelling mistake "recieving" -> "receiving"
        bpf: Fix cold build of test_progs-no_alu32
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20201204021936.85653-1-alexei.starovoitov@gmail.com
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      a1dd1d86
  2. Dec 03, 2020