Re: [PATCH v2 net] net-gro: reset skb->pkt_type in napi_reuse_skb()

2018-11-17 Thread David Miller
From: Eric Dumazet Date: Sat, 17 Nov 2018 21:57:02 -0800 > eth_type_trans() assumes initial value for skb->pkt_type > is PACKET_HOST. > > This is indeed the value right after a fresh skb allocation. > > However, it is possible that GRO merged a packet with a different > value (like

[PATCH v2 net] net-gro: reset skb->pkt_type in napi_reuse_skb()

2018-11-17 Thread Eric Dumazet
eth_type_trans() assumes initial value for skb->pkt_type is PACKET_HOST. This is indeed the value right after a fresh skb allocation. However, it is possible that GRO merged a packet with a different value (like PACKET_OTHERHOST in case macvlan is used), so we need to make sure napi->skb will