Re: Nftables, netdev table, ingress hook and cgroup classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/03/2019 13:15, Florian Westphal wrote:
>> Can cgroup classes work with the ingress hook of the netdev table?
> 
> No.  The netcls id is reachable only via the socket (skb->sk).
> For incoming packets, the earliest place where this is set/made
> available is the ipv4/ipv6 stack, if the protocol supports 'early
> demux'.  Then, inet prerouting will work.
> 
> Note however that this rate limiting via 'limit' (ingress policing)
> doesn't work when the protocol involved doesn't see packet loss as
> a sign to 'slow down' (datacenter tcp for example).
> 
> I don't have a better suggestion though.
>
So basically TC + MARKs is the only option?



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux