Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-62339

[bonding]can't fall back to generic XDP when setting xdpdrv on mode 5,6 bonding

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • kernel-5.14.0-529.el9
    • No
    • Moderate
    • Hide
      22ccb684c1ca ("bonding: return detailed error when loading native XDP fails")
      9f59eccd9dd5 ("Documentation: bonding: add XDP support explanation")
      Show
      22ccb684c1ca ("bonding: return detailed error when loading native XDP fails") 9f59eccd9dd5 ("Documentation: bonding: add XDP support explanation")
    • rhel-net-core
    • ssg_networking
    • 12
    • 15
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      seems mode 5,6 doesn't support native XDP, but does support generic XDP.

      When a command like ip link set dev em1 xdp obj [...] is used, then the kernel will attempt to load the program first as native XDP, and in case the driver does not support native XDP, it will automatically fall back to generic XDP.

      But now, it can't automatically fall back to generic XDP, following command always fail:

      ip link set bond0 xdp obj source/basic_xdp.o section xdp_drop
      RTNETLINK answers: Operation not supported
      

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      5.14.0-518.el9.x86_64

      How reproducible is this bug?:

      always

      Steps to reproduce

      ip link add name bond0 type bond mode 6 miimo 100
      ip link set bond0 up
      ip link set enp177s0np0 master bond0
      ip link set bond0 xdp obj source/basic_xdp.o section xdp_drop

      Expected results

      automatically fall back to generic XDP.

      Actual results

              haliu@redhat.com Hangbin Liu
              rhn-support-liali Liang Li
              Hangbin Liu Hangbin Liu
              Liang Li Liang Li
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: