diff options
| author | Eric Dumazet <[email protected]> | 2018-11-18 05:57:02 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-11-18 05:59:18 +0000 |
| commit | 33d9a2c72f086cbf1087b2fd2d1a15aa9df14a7f (patch) | |
| tree | 344abb4aeb43f9c063507e747eb9c79e1777d39d /lib/xarray.c | |
| parent | Merge branch 'tdc-fixes' (diff) | |
| download | kernel-33d9a2c72f086cbf1087b2fd2d1a15aa9df14a7f.tar.gz kernel-33d9a2c72f086cbf1087b2fd2d1a15aa9df14a7f.zip | |
net-gro: reset skb->pkt_type in napi_reuse_skb()
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 have pkt_type set back to
PACKET_HOST.
Otherwise, valid packets might be dropped by the stack because
their pkt_type is not PACKET_HOST.
napi_reuse_skb() was added in commit 96e93eab2033 ("gro: Add
internal interfaces for VLAN"), but this bug always has
been there.
Fixes: 96e93eab2033 ("gro: Add internal interfaces for VLAN")
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions
