netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* conntrack enhancement
@ 2018-01-16  2:26 Jack Ma
  2018-01-16 14:17 ` Florian Westphal
  0 siblings, 1 reply; 8+ messages in thread
From: Jack Ma @ 2018-01-16  2:26 UTC (permalink / raw)
  To: netfilter-devel@vger.kernel.org


Hi there,

I am planing to add new user option to allow connmark to be shifted to enable more advanced routing options.

Currently, it might be something like:

Conntrack parameters and options:
 
-sl, --shift-left bits                      shift mark by n bit to the left
-sr, --shift-right bits                    shift mark by n bit to the right.

We run out of nfmark (skb->mark) in our systems due to increasing number of routes we are supporting.

One common user-case:

Using connmark to direct traffic via ip rule onto different route tables.

But the the first packet of this flow needs to be per-inspected by the IP-tables first to be marked with an ID (Route number ID in our case.).

If we can have "SHIFT" operation working in conntrack, we would be able to support much more numbers of 'ID'.

I wounder if this "SHIFT" idea can be considered to be accepted by upstream ?

Thanks,
Jack 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-02-15  4:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16  2:26 conntrack enhancement Jack Ma
2018-01-16 14:17 ` Florian Westphal
2018-01-23  1:16   ` Jack Ma
2018-01-25  2:34   ` Jack Ma
     [not found]     ` <20180125062211.GE14192@breakpoint.cc>
2018-01-25 21:31       ` Jack Ma
2018-02-06 23:46       ` shift by n bits while performing '--restore-mark' Jack Ma
2018-02-06 23:53         ` Florian Westphal
2018-02-15  4:13           ` Jack Ma

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).