[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <c929ec8c95554502038c34fc2045b04dbe49057b.1541718583.git.mirq-linux@rere.qmqm.pl>
Date: Fri, 09 Nov 2018 00:18:06 +0100
From: Michał Mirosław <mirq-linux@...e.qmqm.pl>
To: netdev@...r.kernel.org
Cc: Mirko Lindner <mlindner@...vell.com>,
Stephen Hemminger <stephen@...workplumber.org>,
Ajit Khaparde <ajit.khaparde@...adcom.com>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
bridge@...ts.linux-foundation.org,
Cong Wang <xiyou.wangcong@...il.com>, coreteam@...filter.org,
"David S. Miller" <davem@...emloft.net>,
Florian Westphal <fw@...len.de>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Jamal Hadi Salim <jhs@...atatu.com>,
Jiri Pirko <jiri@...nulli.us>,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
linux-rdma@...r.kernel.org, netfilter-devel@...r.kernel.org,
Nikolay Aleksandrov <nikolay@...ulusnetworks.com>,
Pablo Neira Ayuso <pablo@...filter.org>,
Roopa Prabhu <roopa@...ulusnetworks.com>,
Sathya Perla <sathya.perla@...adcom.com>,
Somnath Kotur <somnath.kotur@...adcom.com>,
Sriharsha Basavapatna <sriharsha.basavapatna@...adcom.com>,
Steve Wise <swise@...lsio.com>,
Tariq Toukan <tariqt@...lanox.com>
Subject: [PATCH net-next 9/9] sky2: use __vlan_hwaccel helpers
Signed-off-by: Michał Mirosław <mirq-linux@...e.qmqm.pl>
---
drivers/net/ethernet/marvell/sky2.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c
index 697d9b374f5e..c7cd0081058e 100644
--- a/drivers/net/ethernet/marvell/sky2.c
+++ b/drivers/net/ethernet/marvell/sky2.c
@@ -2485,13 +2485,11 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2,
skb->ip_summed = re->skb->ip_summed;
skb->csum = re->skb->csum;
skb_copy_hash(skb, re->skb);
- skb->vlan_proto = re->skb->vlan_proto;
- skb->vlan_tci = re->skb->vlan_tci;
+ __vlan_hwaccel_copy_tag(skb, re->skb);
pci_dma_sync_single_for_device(sky2->hw->pdev, re->data_addr,
length, PCI_DMA_FROMDEVICE);
- re->skb->vlan_proto = 0;
- re->skb->vlan_tci = 0;
+ __vlan_hwaccel_clear_tag(re->skb);
skb_clear_hash(re->skb);
re->skb->ip_summed = CHECKSUM_NONE;
skb_put(skb, length);
--
2.19.1
Powered by blists - more mailing lists