openwrt/target/linux/generic/hack-4.19
Kevin Darbyshire-Bryant dba5a01358 kernel: netfilter add connmark savedscp support
savedscp is a method of storing the DSCP of an ip packet into conntrack
mark.  In combination with a suitable tc filter action (conndscp but may
end up being integrated into connmark) DSCP values are able to be stored
on egress and restored on ingress across links that otherwise alter or
bleach DSCP.

This is useful for qdiscs such as CAKE which are able to shape according
to policies based on DSCP.

Ingress classification is traditionally a challenging task since
iptables rules haven't yet run and tc filter/eBPF programs are pre-NAT
lookups, hence are unable to see internal IPv4 addresses as used on the
typical home masquerading gateway.

The ingress problem is solved by the tc filter, but the tc people didn't
like the idea of tc setting conntrack mark values, though they are ok
with reading conntrack values and hence restoring DSCP from conntrack
marks.

x_tables CONNMARK with the new savedscp action solves the problem of
storing the DSCP to the conntrack mark.

It accepts 2 parameters.  The mark is a 32bit value with usually one 1
bit set.  This bit is set when savedscp saves the DSCP to the mark.
This is useful to implement a 'one shot'
iptables based classification where the 'complicated' iptables rules are
only run once to classify the connection on initial (egress) packet and
subsequent packets are all marked/restored with the same DSCP.  A mark
of zero disables the setting of a status bit/s.

The mask is a 32bit value of at least 6 contiguous bits and represents
the area where the DSCP will be stored.

e.g.

iptables -A QOS_MARK_eth0 -t mangle -j CONNMARK --savedscp-mark 0xfc000000/0x01000000

Would store the DSCP in the top 6 bits of the 32bit mark field, and use
the LSB of the top byte as the 'DSCP has been stored' marker.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2019-07-25 10:20:59 +01:00
..
204-module_strip.patch kernel: bump 4.19 to 4.19.48 2019-06-05 12:12:59 +02:00
207-disable-modorder.patch kernel: bump 4.19 to 4.19.48 2019-06-05 12:12:59 +02:00
210-darwin_scripts_include.patch
212-byteshift_portability.patch
214-spidev_h_portability.patch
220-gc_sections.patch kernel: bump 4.19 to 4.19.48 2019-06-05 12:12:59 +02:00
221-module_exports.patch
230-openwrt_lzma_options.patch
250-netfilter_depends.patch kernel: bump 4.19 to 4.19.42 2019-05-13 19:17:41 +02:00
251-sound_kconfig.patch
259-regmap_dynamic.patch kernel: Build: Split kmod-regmap 2019-01-27 00:16:13 +01:00
260-crypto_test_dependencies.patch
280-rfkill-stubs.patch
290-nvmem-make-CONFIG_NVMEM-tristate-again.patch kernel: Make CONFIG_NVMEM tristate 2018-12-15 14:28:50 +01:00
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch kernel: bump 4.19 to 4.19.16 2019-01-17 03:04:13 +02:00
301-mips_image_cmdline_hack.patch kernel: bump 4.19 to 4.19.18 2019-01-28 18:17:32 +01:00
321-powerpc_crtsavres_prereq.patch
531-debloat_lzma.patch
550-loop-better-discard-for-block-devices.patch kernel: add promising "fix loop discard errors" hack 2019-06-22 13:17:48 +02:00
640-bridge-only-accept-EAP-locally.patch
645-netfilter-connmark-introduce-savedscp.patch kernel: netfilter add connmark savedscp support 2019-07-25 10:20:59 +01:00
647-netfilter-flow-acct.patch kernel: bump 4.19 to 4.19.51 2019-06-18 11:38:58 +02:00
650-netfilter-add-xt_OFFLOAD-target.patch netfilter: fix crash in flow offload by adding netns support 2019-06-24 18:34:04 +02:00
651-wireless_mesh_header.patch
660-fq_codel_defaults.patch
661-use_fq_codel_by_default.patch kernel: bump 4.19 to 4.19.34 2019-04-08 14:53:39 +02:00
662-remove_pfifo_fast.patch kernel: bump 4.19 to 4.19.34 2019-04-08 14:53:39 +02:00
700-swconfig_switch_drivers.patch
702-phy_add_aneg_done_function.patch kernel: bump 4.19 to 4.19.34 2019-04-08 14:53:39 +02:00
721-phy_packets.patch kernel: bump 4.19 to 4.19.46 2019-06-03 12:40:53 +02:00
773-bgmac-add-srab-switch.patch
835-misc-owl_loader.patch
901-debloat_sock_diag.patch kernel: bump 4.19 to 4.19.57 2019-07-09 17:03:18 +02:00
902-debloat_proc.patch kernel: bump 4.19 to 4.19.57 2019-07-09 17:03:18 +02:00
904-debloat_dma_buf.patch kernel: bump 4.19 to 4.19.34 2019-04-08 14:53:39 +02:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch kernel: bump 4.19 to 4.19.47 2019-06-03 17:00:29 +02:00
921-always-create-console-node-in-initramfs.patch
930-crashlog.patch kernel: bump 4.19 to 4.19.53 2019-06-20 15:48:48 +02:00
940-cleanup-offload-hooks-on-netdev-unregister.patch kernel: bump 4.19 to 4.19.56 2019-06-25 16:46:01 +02:00