Skip to content

Commit

Permalink
{pktgen, xfrm} Show spi value properly when ipsec turned on
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fan Du authored and Steffen Klassert committed Jan 3, 2014
1 parent c454997 commit 8101328
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8101328

Please sign in to comment.