[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150407.145150.1058933089890438367.davem@davemloft.net>
Date: Tue, 07 Apr 2015 14:51:50 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ast@...mgrid.com
Cc: daniel@...earbox.net, jiri@...nulli.us, jhs@...atatu.com,
linux-api@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] tc: cls_bpf: make ingress and egress qdiscs
consistent
From: Alexei Starovoitov <ast@...mgrid.com>
Date: Fri, 3 Apr 2015 14:16:24 -0700
> + if (skb_headroom(skb) < ETH_HLEN)
> + return -1;
> + __skb_push(skb, ETH_HLEN);
...
> + if (tp->q->flags & TCQ_F_INGRESS)
> + __skb_pull(skb, ETH_HLEN);
Please use the actual device's L2 header length, via
dev->hard_header_len, rather than hard coding ethernet.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists