On 03/11/2019 09:03 AM, Eric Dumazet wrote:
> 
> 
> On 03/11/2019 08:14 AM, Olga Albisser wrote:
> 
>> +
>> +static u32 get_ecn_field(struct sk_buff *skb)
>> +{
>> +    switch (skb->protocol) {
> 
> tc_skb_protocol(skb)
> 
>> +    case cpu_to_be16(ETH_P_IP):
> 
> Theoretically you have to use pskb_may_pull() before assuming network header 
> is in the linear part of skb (skb->head)

You can take a look at dsmark_enqueue() for a starting point.

Reply via email to