Skip to content

Commit 0e24c0a

Browse files
Zhang Shengjudavem330
authored andcommitted
bnx2x: 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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 90caf3c commit 0e24c0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static void bnx2x_gro_ipv6_csum(struct bnx2x *bp, struct sk_buff *skb)
724724
static void bnx2x_gro_csum(struct bnx2x *bp, struct sk_buff *skb,
725725
void (*gro_func)(struct bnx2x*, struct sk_buff*))
726726
{
727-
skb_set_network_header(skb, 0);
727+
skb_reset_network_header(skb);
728728
gro_func(bp, skb);
729729
tcp_gro_complete(skb);
730730
}

0 commit comments

Comments
 (0)