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

2018-11-17 Thread Eric Dumazet
On 11/17/2018 09:51 PM, Eric Dumazet wrote: > 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

[PATCH 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 hav