]> git.proxmox.com Git - mirror_iproute2.git/commit
gre/gre6: Unify attribute addition to netlink buffer
authorSerhey Popovych <serhe.popovych@gmail.com>
Mon, 22 Jan 2018 17:23:46 +0000 (19:23 +0200)
committerDavid Ahern <dsahern@gmail.com>
Wed, 24 Jan 2018 18:01:30 +0000 (10:01 -0800)
commitde54cdd3de596f6b1712a3ede4c712b703c1fee3
tree4cc5378e6663f9d01b707a7d02e2b747246e2a4c
parent00ff4b8e31af4640e9d9beae6067dfd5b00c31ba
gre/gre6: Unify attribute addition to netlink buffer

There are couple of minor improvements:

  1) Check erspan_ver == 2 in gre6. It still could
     be 1 if erspan_idx is 0.

  2) Add tunnel encapsulation attributes only when
     collect metadata not in effect in gre.

  3) Trivial: address checkpatch issues.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/link_gre.c
ip/link_gre6.c