This series introduces support for MACsec devices, with a new device type for `ip link`, and a new `ip macsec` subcommand.
The first patch imports the if_macsec.h header from kernel uapi. The next three patches introduce some necessary helper functions. Sabrina Dubroca (5): add missing if_macsec.h header from kernel utils: make hexstring_a2n provide the number of hex digits parsed utils: add get_be{16,32,64}, use them where possible utils: provide get_hex to read a hex digit from a char ip: add MACsec support include/linux/if_macsec.h | 163 ++++++ include/utils.h | 8 +- ip/Makefile | 2 +- ip/ip.c | 3 +- ip/ip_common.h | 1 + ip/ipfou.c | 3 +- ip/ipl2tp.c | 15 +- ip/iplink_vxlan.c | 8 +- ip/ipmacsec.c | 1236 +++++++++++++++++++++++++++++++++++++++++++++ ip/iproute_lwtunnel.c | 8 +- ip/ipxfrm.c | 13 +- ip/xfrm_state.c | 10 +- lib/ipx_pton.c | 18 +- lib/ll_proto.c | 3 +- lib/utils.c | 53 +- man/man8/Makefile | 2 +- man/man8/ip-link.8.in | 85 ++++ man/man8/ip-macsec.8 | 98 ++++ tc/f_flower.c | 4 +- tc/f_u32.c | 10 +- 20 files changed, 1667 insertions(+), 76 deletions(-) create mode 100644 include/linux/if_macsec.h create mode 100644 ip/ipmacsec.c create mode 100644 man/man8/ip-macsec.8 -- 2.8.2