Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pktgen: mac count

dst_mac_count and src_mac_count patch from Eneas Hunguana
We have sent one mac address to much.

Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Robert Olsson and committed by
David S. Miller
ff2a79a5 1211a645

+2 -2
+2 -2
net/core/pktgen.c
··· 2166 2166 mc = random32() % pkt_dev->src_mac_count; 2167 2167 else { 2168 2168 mc = pkt_dev->cur_src_mac_offset++; 2169 - if (pkt_dev->cur_src_mac_offset > 2169 + if (pkt_dev->cur_src_mac_offset >= 2170 2170 pkt_dev->src_mac_count) 2171 2171 pkt_dev->cur_src_mac_offset = 0; 2172 2172 } ··· 2193 2193 2194 2194 else { 2195 2195 mc = pkt_dev->cur_dst_mac_offset++; 2196 - if (pkt_dev->cur_dst_mac_offset > 2196 + if (pkt_dev->cur_dst_mac_offset >= 2197 2197 pkt_dev->dst_mac_count) { 2198 2198 pkt_dev->cur_dst_mac_offset = 0; 2199 2199 }