qede - mark SKB as encapsulated
authorManish Chopra <Manish.Chopra@cavium.com>
Sun, 1 Jan 2017 11:57:05 +0000 (13:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jan 2017 02:02:14 +0000 (21:02 -0500)
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>
drivers/net/ethernet/qlogic/qede/qede_fp.c

index a06acab48086cee26baa8d3f88218b8fa77a355e..dddae1e21bf06950d45502747250b281fc10acd6 100644 (file)
@@ -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,