aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/pktgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r--net/core/pktgen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 156d57b616ac..8bc4ddd375a9 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -389,6 +389,7 @@ struct pktgen_dev {
389#ifdef CONFIG_XFRM 389#ifdef CONFIG_XFRM
390 __u8 ipsmode; /* IPSEC mode (config) */ 390 __u8 ipsmode; /* IPSEC mode (config) */
391 __u8 ipsproto; /* IPSEC type (config) */ 391 __u8 ipsproto; /* IPSEC type (config) */
392 __u32 spi;
392#endif 393#endif
393 char result[512]; 394 char result[512];
394}; 395};
@@ -1477,6 +1478,17 @@ static ssize_t pktgen_if_write(struct file *file,
1477 return count; 1478 return count;
1478 } 1479 }
1479 1480
1481 if (!strcmp(name, "spi")) {
1482 len = num_arg(&user_buffer[i], 10, &value);
1483 if (len < 0)
1484 return len;
1485
1486 i += len;
1487 pkt_dev->spi = value;
1488 sprintf(pg_result, "OK: spi=%u", pkt_dev->spi);
1489 return count;
1490 }
1491
1480 if (!strcmp(name, "flowlen")) { 1492 if (!strcmp(name, "flowlen")) {
1481 len = num_arg(&user_buffer[i], 10, &value); 1493 len = num_arg(&user_buffer[i], 10, &value);
1482 if (len < 0) 1494 if (len < 0)