From: jay patel <jaypatel150@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: netfilter bridging and enqueue_to_backlog
Date: Wed, 30 May 2012 08:46:29 -0600 [thread overview]
Message-ID: <CAADX0Ry5tg54324VM_eDXRHxSOxrwoVA0_N+YZbuJ3c3PTN25Q@mail.gmail.com> (raw)
In-Reply-To: <CAADX0RzKAijpiU7_MpUfziyhzD+CTb6oxgXeqb==XoNSVMKk7Q@mail.gmail.com>
Hi all,
We are trying to move an skb from cpu 0 to cpu1 using enqueue to backlog. We
have gotten this to work when bridging is turned off. However, with bridging
turned on it is proving to be a little more difficult.
After bridging is turned on, we try to do an enqueue_to_backlog in the
netfilter/core.c/nf_iterate function. We do this after pre routing is
completed for NF_BR_PRE_ROUTING and NF_INET_PRE_ROUTING hooks.
However, it seems after the enqueue_to_backlog happens, the packet is
dropped at some point (it seems the packet is processed as a local in packet
after it moves to cpu 1, and thus is dropped by the kernel). We see that in
__netif_receive_skb, that the skb->dev,skb->protocol (along with some other
fields in the skb are changed) when the skb is processed on cpu1. We can see
that in br_nf_pre_routing function call there are some modifications to some
of the same fields mentioned.
So our question is what needs to happen to the skb in order for the skb to
process as normal when it is put on cpu1? Is this possible with bridging
turned on?
Thanks,
~Jay
parent reply other threads:[~2012-05-30 14:46 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAADX0RzKAijpiU7_MpUfziyhzD+CTb6oxgXeqb==XoNSVMKk7Q@mail.gmail.com>]
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=CAADX0Ry5tg54324VM_eDXRHxSOxrwoVA0_N+YZbuJ3c3PTN25Q@mail.gmail.com \
--to=jaypatel150@gmail.com \
--cc=netfilter-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).