Xin Long 58e8494eb0 lwtunnel: get nlsize for erspan options properly
erspan v1 has OPT_ERSPAN_INDEX while erspan v2 has OPT_ERSPAN_DIR and
OPT_ERSPAN_HWID attributes, and they require different nlsize when
dumping.

So this patch is to get nlsize for erspan options properly according
to erspan version.

Fixes: b0a21810bd5e ("lwtunnel: add options setting and dumping for erspan")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-11 14:42:38 -08:00
..
2019-05-21 12:33:38 -07:00
2019-11-05 14:03:11 -08:00
2019-09-26 08:56:17 +02:00
2019-05-28 21:37:30 -07:00
2019-09-13 21:44:19 +02:00
2019-11-05 14:03:11 -08:00
2019-11-06 21:38:34 -08:00