diff options
| author | Fan Du <fan.du@windriver.com> | 2014-01-02 22:18:33 -0500 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2014-01-03 01:29:12 -0500 |
| commit | 8101328b798471d41504b75135788c14dc8705ee (patch) | |
| tree | 0c0ee5404fcb94e3c5e18a352c805c698a8c739e | |
| parent | c454997e68eb013510ba128283ad3b4aefeff630 (diff) | |
{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>
| -rw-r--r-- | net/core/pktgen.c | 5 |
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) | |||
| 657 | } | 657 | } |
| 658 | 658 | ||
| 659 | #ifdef CONFIG_XFRM | 659 | #ifdef CONFIG_XFRM |
| 660 | if (pkt_dev->flags & F_IPSEC_ON) | 660 | if (pkt_dev->flags & F_IPSEC_ON) { |
| 661 | seq_printf(seq, "IPSEC "); | 661 | seq_printf(seq, "IPSEC "); |
| 662 | if (pkt_dev->spi) | ||
| 663 | seq_printf(seq, "spi:%u", pkt_dev->spi); | ||
| 664 | } | ||
| 662 | #endif | 665 | #endif |
| 663 | 666 | ||
| 664 | if (pkt_dev->flags & F_MACSRC_RND) | 667 | if (pkt_dev->flags & F_MACSRC_RND) |
