diff options
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index ffb5d382f241..33912573959d 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -2934,8 +2934,7 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev, | |||
2934 | 2934 | ||
2935 | if (datalen < sizeof(struct pktgen_hdr)) { | 2935 | if (datalen < sizeof(struct pktgen_hdr)) { |
2936 | datalen = sizeof(struct pktgen_hdr); | 2936 | datalen = sizeof(struct pktgen_hdr); |
2937 | if (net_ratelimit()) | 2937 | net_info_ratelimited("increased datalen to %d\n", datalen); |
2938 | pr_info("increased datalen to %d\n", datalen); | ||
2939 | } | 2938 | } |
2940 | 2939 | ||
2941 | udph->source = htons(pkt_dev->cur_udp_src); | 2940 | udph->source = htons(pkt_dev->cur_udp_src); |
@@ -3365,8 +3364,8 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev) | |||
3365 | pkt_dev->errors++; | 3364 | pkt_dev->errors++; |
3366 | break; | 3365 | break; |
3367 | default: /* Drivers are not supposed to return other values! */ | 3366 | default: /* Drivers are not supposed to return other values! */ |
3368 | if (net_ratelimit()) | 3367 | net_info_ratelimited("%s xmit error: %d\n", |
3369 | pr_info("%s xmit error: %d\n", pkt_dev->odevname, ret); | 3368 | pkt_dev->odevname, ret); |
3370 | pkt_dev->errors++; | 3369 | pkt_dev->errors++; |
3371 | /* fallthru */ | 3370 | /* fallthru */ |
3372 | case NETDEV_TX_LOCKED: | 3371 | case NETDEV_TX_LOCKED: |