pktgen.c (65d2918e716afb89359cfa59734d76c1ff8700cb) pktgen.c (52d6c8c6ca125872459054daa70f2f1c698c8e75)
1/*
2 * Authors:
3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se>
4 * Uppsala University and
5 * Swedish University of Agricultural Sciences
6 *
7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
8 * Ben Greear <greearb@candelatech.com>

--- 83 unchanged lines hidden (view full) ---

92 * Fixed unaligned access on IA-64 Grant Grundler <grundler@parisc-linux.org>
93 *
94 * Remove if fix from added Harald Welte <laforge@netfilter.org> 040419
95 * ia64 compilation fix from Aron Griffis <aron@hp.com> 040604
96 *
97 * New xmit() return, do_div and misc clean up by Stephen Hemminger
98 * <shemminger@osdl.org> 040923
99 *
1/*
2 * Authors:
3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se>
4 * Uppsala University and
5 * Swedish University of Agricultural Sciences
6 *
7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
8 * Ben Greear <greearb@candelatech.com>

--- 83 unchanged lines hidden (view full) ---

92 * Fixed unaligned access on IA-64 Grant Grundler <grundler@parisc-linux.org>
93 *
94 * Remove if fix from added Harald Welte <laforge@netfilter.org> 040419
95 * ia64 compilation fix from Aron Griffis <aron@hp.com> 040604
96 *
97 * New xmit() return, do_div and misc clean up by Stephen Hemminger
98 * <shemminger@osdl.org> 040923
99 *
100 * Randy Dunlap fixed u64 printk compiler waring
100 * Randy Dunlap fixed u64 printk compiler warning
101 *
102 * Remove FCS from BW calculation. Lennert Buytenhek <buytenh@wantstofly.org>
103 * New time handling. Lennert Buytenhek <buytenh@wantstofly.org> 041213
104 *
105 * Corrections from Nikolai Malykh (nmalykh@bilim.com)
106 * Removed unused flags F_SET_SRCMAC & F_SET_SRCIP 041230
107 *
108 * interruptible_sleep_on_timeout() replaced Nishanth Aravamudan <nacc@us.ibm.com>

--- 1020 unchanged lines hidden (view full) ---

1129 return count;
1130 }
1131 if (!strcmp(name, "burst")) {
1132 len = num_arg(&user_buffer[i], 10, &value);
1133 if (len < 0)
1134 return len;
1135
1136 i += len;
101 *
102 * Remove FCS from BW calculation. Lennert Buytenhek <buytenh@wantstofly.org>
103 * New time handling. Lennert Buytenhek <buytenh@wantstofly.org> 041213
104 *
105 * Corrections from Nikolai Malykh (nmalykh@bilim.com)
106 * Removed unused flags F_SET_SRCMAC & F_SET_SRCIP 041230
107 *
108 * interruptible_sleep_on_timeout() replaced Nishanth Aravamudan <nacc@us.ibm.com>

--- 1020 unchanged lines hidden (view full) ---

1129 return count;
1130 }
1131 if (!strcmp(name, "burst")) {
1132 len = num_arg(&user_buffer[i], 10, &value);
1133 if (len < 0)
1134 return len;
1135
1136 i += len;
1137 if ((value > 1) &&
1138 (!(pkt_dev->odev->priv_flags & IFF_TX_SKB_SHARING)))
1139 return -ENOTSUPP;
1137 pkt_dev->burst = value < 1 ? 1 : value;
1138 sprintf(pg_result, "OK: burst=%d", pkt_dev->burst);
1139 return count;
1140 }
1141 if (!strcmp(name, "node")) {
1142 len = num_arg(&user_buffer[i], 10, &value);
1143 if (len < 0)
1144 return len;

--- 2715 unchanged lines hidden ---
1140 pkt_dev->burst = value < 1 ? 1 : value;
1141 sprintf(pg_result, "OK: burst=%d", pkt_dev->burst);
1142 return count;
1143 }
1144 if (!strcmp(name, "node")) {
1145 len = num_arg(&user_buffer[i], 10, &value);
1146 if (len < 0)
1147 return len;

--- 2715 unchanged lines hidden ---