Repository navigation
Commit a21a82a
net-gro: reset skb->pkt_type in napi_reuse_skb()
[ Upstream commit 33d9a2c ]
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 96e93ea ("gro: Add
internal interfaces for VLAN"), but this bug always has
been there.
Fixes: 96e93ea ("gro: Add internal interfaces for VLAN")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 852c280 commit a21a82a
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5630 | 5630 | | |
5631 | 5631 | | |
5632 | 5632 | | |
| 5633 | + | |
| 5634 | + | |
| 5635 | + | |
| 5636 | + | |
5633 | 5637 | | |
5634 | 5638 | | |
5635 | 5639 | | |
| |||
0 commit comments