0 - Layer 3
        1 - Layer 4
 
+ip_forward_update_priority - INTEGER
+       Whether to update SKB priority from "TOS" field in IPv4 header after it
+       is forwarded. The new SKB priority is mapped from TOS field value
+       according to an rt_tos2priority table (see e.g. man tc-prio).
+       Default: 1 (Update priority.)
+       Possible values:
+       0 - Do not update priority.
+       1 - Update priority.
+
 route/max_size - INTEGER
        Maximum number of routes allowed in the kernel.  Increase
        this when using large numbers of interfaces and/or routes.
 
        int sysctl_ip_default_ttl;
        int sysctl_ip_no_pmtu_disc;
        int sysctl_ip_fwd_use_pmtu;
+       int sysctl_ip_fwd_update_priority;
        int sysctl_ip_nonlocal_bind;
        /* Shall we try to damage output packets if routing dev changes? */
        int sysctl_ip_dynaddr;
 
         * We set them here, in case sysctl is not compiled.
         */
        net->ipv4.sysctl_ip_default_ttl = IPDEFTTL;
+       net->ipv4.sysctl_ip_fwd_update_priority = 1;
        net->ipv4.sysctl_ip_dynaddr = 0;
        net->ipv4.sysctl_ip_early_demux = 1;
        net->ipv4.sysctl_udp_early_demux = 1;
 
            !skb_sec_path(skb))
                ip_rt_send_redirect(skb);
 
-       skb->priority = rt_tos2priority(iph->tos);
+       if (net->ipv4.sysctl_ip_fwd_update_priority)
+               skb->priority = rt_tos2priority(iph->tos);
 
        return NF_HOOK(NFPROTO_IPV4, NF_INET_FORWARD,
                       net, NULL, skb, skb->dev, rt->dst.dev,
 
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
+       {
+               .procname       = "ip_forward_update_priority",
+               .data           = &init_net.ipv4.sysctl_ip_fwd_update_priority,
+               .maxlen         = sizeof(int),
+               .mode           = 0644,
+               .proc_handler   = proc_dointvec_minmax,
+               .extra1         = &zero,
+               .extra2         = &one,
+       },
        {
                .procname       = "ip_nonlocal_bind",
                .data           = &init_net.ipv4.sysctl_ip_nonlocal_bind,