mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
qede - mark SKB as encapsulated
When driver receives a recognized encapsulated packet it needs to set the skb->encapsulation field as well. Signed-off-by: Manish Chopra <Manish.Chopra@cavium.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e3eef7ee02
commit
7ca547bdb0
@ -607,8 +607,10 @@ static void qede_set_skb_csum(struct sk_buff *skb, u8 csum_flag)
|
||||
if (csum_flag & QEDE_CSUM_UNNECESSARY)
|
||||
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||
|
||||
if (csum_flag & QEDE_TUNN_CSUM_UNNECESSARY)
|
||||
if (csum_flag & QEDE_TUNN_CSUM_UNNECESSARY) {
|
||||
skb->csum_level = 1;
|
||||
skb->encapsulation = 1;
|
||||
}
|
||||
}
|
||||
|
||||
static inline void qede_skb_receive(struct qede_dev *edev,
|
||||
|
Loading…
Reference in New Issue
Block a user