From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: question on fwmark speed boost
Date: Wed, 03 Jul 2013 22:29:04 +0000 [thread overview]
Message-ID: <51D4A5B0.102@gmail.com> (raw)
In-Reply-To: <51D41B65.8020006@wogri.com>
Wolfgang Hennerbichler wrote:
> Follow-Up: This is the only pice of information I have found on my problem:
>
> http://marc.info/?l=lartc&m\x105421129231583&w=2
>
> => You can reduce the number of fw filters rules if you use the mark as
> hash key.
> So if you add
> tc filter add dev eth0 parent 1:0 protocol ip handle 1 fw
> and you have a packet with mark 39, it will placed in class 1:39.
I've never tried that, if it does work maybe you need to use 0x39 for
the mark as classes are in hex.
iptables can do this
-j CLASSIFY --set-class 1:39
If you have a lot of marks and a complicated set up you could consider
the u32 mark match which will let you use masks and I guess explicitly
set up hashing - again be sure to work in hex.
next prev parent reply other threads:[~2013-07-03 22:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 12:39 question on fwmark speed boost Wolfgang Hennerbichler
2013-07-03 12:46 ` Wolfgang Hennerbichler
2013-07-03 22:29 ` Andy Furniss [this message]
2013-07-04 5:40 ` Wolfgang Hennerbichler
2013-07-10 10:00 ` Andy Furniss
2013-07-10 10:20 ` Wolfgang Hennerbichler
2013-07-11 19:52 ` Wolfgang Hennerbichler
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=51D4A5B0.102@gmail.com \
--to=adf.lists@gmail.com \
--cc=lartc@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.