Re: XDP_REDIRECT not working in XDP_DRV_MODE with Intel xgbe driver

Sophia Yoo <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CANLN0e5_HtYC1XQ=Z=JRLe-+3bTqoEWdbHJEGhbF7ZT=gz=ynQ@mail.gmail.com>
On Tue, Feb 15, 2022 at 5:04 AM Jesper Dangaard Brouer
<[email protected]> wrote:

> On 14/02/2022 19.10, Sophia Yoo wrote:

> > I am relatively new to BPF/XDP [...]

> I see you come for academia, so I will recommend reading our XDP paper
> as a start:
>   https://github.com/xdp-project/xdp-paper

> Title: “The eXpress Data Path: Fast Programmable Packet Processing in
> the Operating System Kernel” which was presented at ACM CoNEXT 2018 on
> December 5th, 2018.

Cool! I had briefly read this paper before but didn't realize you and
Toke were authors of this work. Great to chat with you. I'll also take
a closer look at this paper again, it looks like a great resource.

> [...]
> > My NIC driver is Intel xgbe. I am using bcc to attach and load my xdp
> > and tc programs.

> This "xgbe" driver doesn't exist in the kernel tree under Intel.
> Are you sure this is the correct driver?

Whoops, I misspelled the driver name, the driver is actually "ixgbe"
(confirmed with the output of "lspci -v").

03:00.0 Ethernet controller: Intel Corporation Ethernet Connection
X552 10 GbE SFP+
Subsystem: Intel Corporation Ethernet Connection X552 10 GbE SFP+
Physical Slot: 0-2
Flags: bus master, fast devsel, latency 0, IRQ 35, NUMA node 0
Memory at 383fffc00000 (64-bit, prefetchable) [size=2M]
Memory at 383fffe04000 (64-bit, prefetchable) [size=16K]
Expansion ROM at fb980000 [disabled] [size=512K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
Capabilities: [70] MSI-X: Enable+ Count=64 Masked-
Capabilities: [a0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-00-c9-ff-ff-00-00-00
Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
Capabilities: [1b0] Access Control Services
Capabilities: [1c0] Latency Tolerance Reporting
Kernel driver in use: ixgbe
Kernel modules: ixgbe


--Sophia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.