All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Zemek <konrad@zemek.io>
To: xdp-newbies@vger.kernel.org
Subject: RE: bpf_fib_lookup VLAN
Date: Fri, 16 Apr 2021 15:15:20 +0000	[thread overview]
Message-ID: <008601d732d3$4fc88ab0$ef59a010$@zemek.io> (raw)
In-Reply-To: <007301d732b8$8b0f5c90$a12e15b0$@zemek.io>

> Do you have any proposals for a workaround? Right now I'm thinking of creating a BPF map that would map ifindex->vlan, populated in the userspace
- but that assumes the output (struct bpf_fib_lookup*)->ifindex will be an index of the vlan device and not the physical device the vlan is attached on, which I'm not sure is the case yet.

I've confirmed that the ifindex returned is of the virtual/vlan device, so the userspace solution seems to be a good workaround for now.




  reply	other threads:[~2021-04-16 15:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-16 12:03 bpf_fib_lookup VLAN Konrad Zemek
2021-04-16 15:15 ` Konrad Zemek [this message]
2021-04-16 15:35 ` David Ahern
2021-04-16 16:12   ` Konrad Zemek
2021-04-18 17:11     ` David Ahern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='008601d732d3$4fc88ab0$ef59a010$@zemek.io' \
    --to=konrad@zemek.io \
    --cc=xdp-newbies@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.