diff options
author | Manish Chopra <Manish.Chopra@cavium.com> | 2017-01-01 13:57:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-01 21:02:14 -0500 |
commit | 7ca547bdb00e3b162e8ed2889161b93eba9def0b (patch) | |
tree | f85e50e55b30d4aed9a074cbac37b60c860a298b /drivers/net/ethernet/qlogic/qede/qede_fp.c | |
parent | e3eef7ee0201dbe5f4fc011b58d26228b57736ce (diff) | |
download | linux-7ca547bdb00e3b162e8ed2889161b93eba9def0b.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qede/qede_fp.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_fp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_fp.c b/drivers/net/ethernet/qlogic/qede/qede_fp.c index a06acab48086..dddae1e21bf0 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_fp.c +++ b/drivers/net/ethernet/qlogic/qede/qede_fp.c @@ -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, |