1 Fix a regression in the af_packet code that was breaking PPPoE
3 pppd sends packets with only a header and no payload.
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
7 --- a/net/packet/af_packet.c
8 +++ b/net/packet/af_packet.c
9 @@ -2329,7 +2329,7 @@ static void tpacket_destruct_skb(struct
10 static bool ll_header_truncated(const struct net_device *dev, int len)
12 /* net device doesn't like empty head */
13 - if (unlikely(len <= dev->hard_header_len)) {
14 + if (unlikely(len < dev->hard_header_len)) {
15 net_warn_ratelimited("%s: packet size is too short (%d <= %d)\n",
16 current->comm, len, dev->hard_header_len);