projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
241deec
)
net: pktgen: use reset to set mac header
author
Zhang Shengju
<zhangshengju@cmss.chinamobile.com>
Mon, 29 Feb 2016 08:21:30 +0000
(08:21 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 1 Mar 2016 22:46:54 +0000
(17:46 -0500)
Since offset is zero, it's not necessary to use set function.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index 1474cfd2dc1ce25d58182d4e13d836227b89c28d..20999aa596dd0296bbfec23f1ea5dda0a4adf244 100644
(file)
--- a/
net/core/pktgen.c
+++ b/
net/core/pktgen.c
@@
-2856,7
+2856,7
@@
static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
*vlan_encapsulated_proto = htons(ETH_P_IP);
}
- skb_
set_mac_header(skb, 0
);
+ skb_
reset_mac_header(skb
);
skb_set_network_header(skb, skb->len);
iph = (struct iphdr *) skb_put(skb, sizeof(struct iphdr));
@@
-2983,7
+2983,7
@@
static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
*vlan_encapsulated_proto = htons(ETH_P_IPV6);
}
- skb_
set_mac_header(skb, 0
);
+ skb_
reset_mac_header(skb
);
skb_set_network_header(skb, skb->len);
iph = (struct ipv6hdr *) skb_put(skb, sizeof(struct ipv6hdr));