diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-12-02 09:51:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-03 15:49:16 -0500 |
commit | 90caf3c9d46dd9a24adc7dae6e1909348b3c37c4 (patch) | |
tree | b7f7ac5833e416bac90655a6aa3d3071f60f9094 /drivers/net/ethernet/qlogic/qede/qede_main.c | |
parent | 1e8c86a6bb4c0537b803cd70d857f49583a877a1 (diff) | |
download | linux-90caf3c9d46dd9a24adc7dae6e1909348b3c37c4.tar.bz2 |
qede: use reset to set network header
Since offset is zero, it's not necessary to use set function. Reset
function is straightforward, and will remove the unnecessary add
operation in set function.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Acked-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_main.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index faeaa9f3b197..cf1dd1436d93 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -1312,7 +1312,7 @@ static void qede_gro_receive(struct qede_dev *edev, #ifdef CONFIG_INET if (skb_shinfo(skb)->gso_size) { - skb_set_network_header(skb, 0); + skb_reset_network_header(skb); switch (skb->protocol) { case htons(ETH_P_IP): |