summaryrefslogtreecommitdiffstats
path: root/net/core/pktgen.c
diff options
context:
space:
mode:
authorFan Du <fan.du@windriver.com>2014-01-03 11:18:33 +0800
committerSteffen Klassert <steffen.klassert@secunet.com>2014-01-03 07:29:12 +0100
commit8101328b798471d41504b75135788c14dc8705ee (patch)
tree0c0ee5404fcb94e3c5e18a352c805c698a8c739e /net/core/pktgen.c
parentc454997e68eb013510ba128283ad3b4aefeff630 (diff)
downloadlinux-8101328b798471d41504b75135788c14dc8705ee.tar.bz2
{pktgen, xfrm} Show spi value properly when ipsec turned on
If user run pktgen plus ipsec by using spi, show spi value properly when cat /proc/net/pktgen/ethX Signed-off-by: Fan Du <fan.du@windriver.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r--net/core/pktgen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index b553c36ea0ca..45ba476a7e17 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -657,8 +657,11 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
}
#ifdef CONFIG_XFRM
- if (pkt_dev->flags & F_IPSEC_ON)
+ if (pkt_dev->flags & F_IPSEC_ON) {
seq_printf(seq, "IPSEC ");
+ if (pkt_dev->spi)
+ seq_printf(seq, "spi:%u", pkt_dev->spi);
+ }
#endif
if (pkt_dev->flags & F_MACSRC_RND)