1. 19 May, 2023 29 commits
  2. 18 May, 2023 11 commits
    • Jakub Kicinski's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 90223c11
      Jakub Kicinski authored
      Conflicts:
      
      drivers/net/ethernet/freescale/fec_main.c
        6ead9c98 ("net: fec: remove the xdp_return_frame when lack of tx BDs")
        144470c8 ("net: fec: using the standard return codes when xdp xmit errors")
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      90223c11
    • Jakub Kicinski's avatar
      Merge tag 'nf-next-2023-05-18' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next · 1ecaf17d
      Jakub Kicinski authored
      Florian Westphal says:
      
      ====================
      Netfilter updates for net-next
      
      nftables updates:
      
      1. Allow key existence checks with maps.
         At the moment the kernel requires userspace to pass a destination
         register for the associated value, make this optional so userspace
         can query if the key exists, just like with normal sets.
      
      2. nftables maintains a counter per set that holds the number of
         elements.  This counter gets decremented on element removal,
         but its only incremented if the set has a upper maximum value.
         Increment unconditionally, this will allow us to update the
         maximum value later on.
      
      3. At DCCP option maching, from Jeremy Sowden.
      
      4. use struct_size macro, from Christophe JAILLET.
      
      Conntrack:
      
      5. Squash holes in struct nf_conntrack_expect, also Christophe JAILLET.
      
      6. Allow clash resolution for GRE Protocol to avoid a packet drop,
         from Faicker Mo.
      
      Flowtable:
      
      Simplify route logic and split large functions into smaller
      chunks, from Pablo Neira Ayuso.
      
      * tag 'nf-next-2023-05-18' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next:
        netfilter: flowtable: split IPv6 datapath in helper functions
        netfilter: flowtable: split IPv4 datapath in helper functions
        netfilter: flowtable: simplify route logic
        netfilter: conntrack: allow insertion clash of gre protocol
        netfilter: nft_set_pipapo: Use struct_size()
        netfilter: Reorder fields in 'struct nf_conntrack_expect'
        netfilter: nft_exthdr: add boolean DCCP option matching
        netfilter: nf_tables: always increment set element count
        netfilter: nf_tables: relax set/map validation checks
      ====================
      
      Link: https://lore.kernel.org/r/20230518100759.84858-1-fw@strlen.deSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      1ecaf17d
    • Linus Torvalds's avatar
      Merge tag 'net-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 1f594fe7
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from can, xfrm, bluetooth and netfilter.
      
        Current release - regressions:
      
         - ipv6: fix RCU splat in ipv6_route_seq_show()
      
         - wifi: iwlwifi: disable RFI feature
      
        Previous releases - regressions:
      
         - tcp: fix possible sk_priority leak in tcp_v4_send_reset()
      
         - tipc: do not update mtu if msg_max is too small in mtu negotiation
      
         - netfilter: fix null deref on element insertion
      
         - devlink: change per-devlink netdev notifier to static one
      
         - phylink: fix ksettings_set() ethtool call
      
         - wifi: mac80211: fortify the spinlock against deadlock by interrupt
      
         - wifi: brcmfmac: check for probe() id argument being NULL
      
         - eth: ice:
            - fix undersized tx_flags variable
            - fix ice VF reset during iavf initialization
      
         - eth: hns3: fix sending pfc frames after reset issue
      
        Previous releases - always broken:
      
         - xfrm: release all offloaded policy memory
      
         - nsh: use correct mac_offset to unwind gso skb in nsh_gso_segment()
      
         - vsock: avoid to close connected socket after the timeout
      
         - dsa: rzn1-a5psw: enable management frames for CPU port
      
         - eth: virtio_net: fix error unwinding of XDP initialization
      
         - eth: tun: fix memory leak for detached NAPI queue.
      
        Misc:
      
         - MAINTAINERS: sctp: move Neil to CREDITS"
      
      * tag 'net-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (107 commits)
        MAINTAINERS: skip CCing netdev for Bluetooth patches
        mdio_bus: unhide mdio_bus_init prototype
        bridge: always declare tunnel functions
        atm: hide unused procfs functions
        net: isa: include net/Space.h
        Revert "ARM: dts: stm32: add CAN support on stm32f746"
        netfilter: nft_set_rbtree: fix null deref on element insertion
        netfilter: nf_tables: fix nft_trans type confusion
        netfilter: conntrack: define variables exp_nat_nla_policy and any_addr with CONFIG_NF_NAT
        net: wwan: t7xx: Ensure init is completed before system sleep
        net: selftests: Fix optstring
        net: pcs: xpcs: fix C73 AN not getting enabled
        net: wwan: iosm: fix NULL pointer dereference when removing device
        vlan: fix a potential uninit-value in vlan_dev_hard_start_xmit()
        mailmap: add entries for Nikolay Aleksandrov
        igb: fix bit_shift to be in [1..8] range
        net: dsa: mv88e6xxx: Fix mv88e6393x EPC write command offset
        cassini: Fix a memory leak in the error handling path of cas_init_one()
        tun: Fix memory leak for detached NAPI queue.
        can: kvaser_pciefd: Disable interrupts in probe error path
        ...
      1f594fe7
    • Linus Torvalds's avatar
      Merge tag 'media/v6.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · b802651b
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
       "Several fixes for the dvb core and drivers:
      
         - fix UAF and null pointer de-reference in DVB core
      
         - fix kernel runtime warning for blocking operation in wait_event*()
           in dvb core
      
         - fix write size bug in DVB conditional access core
      
         - fix dvb demux continuity counter debug check logic
      
         - randconfig build fixes in pvrusb2 and mn88443x
      
         - fix memory leak in ttusb-dec
      
         - fix netup_unidvb probe-time error check logic
      
         - improve error handling in dw2102 if it can't retrieve DVB MAC
           address"
      
      * tag 'media/v6.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        media: dvb-core: Fix use-after-free due to race condition at dvb_ca_en50221
        media: dvb-core: Fix kernel WARNING for blocking operation in wait_event*()
        media: dvb-core: Fix use-after-free due to race at dvb_register_device()
        media: dvb-core: Fix use-after-free due on race condition at dvb_net
        media: dvb-core: Fix use-after-free on race condition at dvb_frontend
        media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table
        media: ttusb-dec: fix memory leak in ttusb_dec_exit_dvb()
        media: dvb_ca_en50221: fix a size write bug
        media: netup_unidvb: fix irq init by register it at the end of probe
        media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address
        media: dvb-usb: digitv: fix null-ptr-deref in digitv_i2c_xfer()
        media: dvb-usb-v2: rtl28xxu: fix null-ptr-deref in rtl28xxu_i2c_xfer
        media: dvb-usb-v2: ce6230: fix null-ptr-deref in ce6230_i2c_master_xfer()
        media: dvb-usb-v2: ec168: fix null-ptr-deref in ec168_i2c_xfer()
        media: dvb-usb: az6027: fix three null-ptr-deref in az6027_i2c_xfer()
        media: netup_unidvb: fix use-after-free at del_timer()
        media: dvb_demux: fix a bug for the continuity counter
        media: pvrusb2: fix DVB_CORE dependency
      b802651b
    • Paolo Abeni's avatar
      Merge branch 'net-lan966x-add-support-for-pcp-dei-dscp' · 02f8fc1a
      Paolo Abeni authored
      Horatiu Vultur says:
      
      ====================
      net: lan966x: Add support for PCP, DEI, DSCP
      
      This patch series extends lan966x to offload to the hardware the
      following features:
      - PCP: this configuration is per port both at ingress and egress.
      - App trust: which allows to specify a trust order of app selectors.
        This can be PCP or DSCP or DSCP/PCP.
      - default priority
      - DSCP: this configuration is shared between the ports both at ingress
        and egress.
      ====================
      
      Link: https://lore.kernel.org/r/20230516201408.3172428-1-horatiu.vultur@microchip.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      02f8fc1a
    • Horatiu Vultur's avatar
      net: lan966x: Add support for DSCP rewrite · d38ddd56
      Horatiu Vultur authored
      Add support for DSCP rewrite in lan966x driver. On egress DSCP is
      rewritten from either classified DSCP, or frame DSCP. Classified DSCP is
      determined by the Analyzer Classifier on ingress, and is mapped from
      classified QoS class and DP level. Classification of DSCP is by default
      enabled for all ports.
      
      It is required that DSCP is trusted for the egress port *and* rewrite
      table is not empty, in order to rewrite DSCP based on classified DSCP,
      otherwise DSCP is always rewritten from frame DSCP.
      Reviewed-by: default avatarDaniel Machon <daniel.machon@microchip.com>
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      d38ddd56
    • Horatiu Vultur's avatar
      net: lan966x: Add support for PCP rewrite · 363f98b9
      Horatiu Vultur authored
      Add support for rewrite of PCP and DEI value, based on QoS and DP level.
      
      The DCB rewrite table is queried for mappings between priority and
      PCP/DEI. The classified DP level is then encoded in the DEI bit, if a
      mapping for DEI exists.
      Reviewed-by: default avatarDaniel Machon <daniel.machon@microchip.com>
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      363f98b9
    • Horatiu Vultur's avatar
      net: lan966x: Add support for offloading default prio · f8ba50ea
      Horatiu Vultur authored
      Add support for offloading default prio.
      Reviewed-by: default avatarDaniel Machon <daniel.machon@microchip.com>
      Reviewed-by: default avatarPiotr Raczynski <piotr.raczynski@intel.com>
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      f8ba50ea
    • Horatiu Vultur's avatar
      net: lan966x: Add support for offloading dscp table · 0c88d981
      Horatiu Vultur authored
      Add support for offloading dscp app entries. The dscp values are global
      for all lan966x ports.
      Reviewed-by: default avatarDaniel Machon <daniel.machon@microchip.com>
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      0c88d981
    • Horatiu Vultur's avatar
      net: lan966x: Add support for apptrust · 10c71a97
      Horatiu Vultur authored
      Make use of set/getapptrust() to implement per-selector trust
      and trust order.
      Reviewed-by: default avatarDaniel Machon <daniel.machon@microchip.com>
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      10c71a97
    • Horatiu Vultur's avatar
      net: lan966x: Add support for offloading pcp table · a83e4630
      Horatiu Vultur authored
      Add support for offloading pcp app entries. Lan966x has 8 priority
      queues per port and for each priority it also has a drop precedence.
      Reviewed-by: default avatarDaniel Machon <daniel.machon@microchip.com>
      Reviewed-by: default avatarPiotr Raczynski <piotr.raczynski@intel.com>
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      a83e4630