]> git.baikalelectronics.ru Git - kernel.git/commit
include: uapi: linux: add rpl sr header definition
authorAlexander Aring <alex.aring@gmail.com>
Fri, 27 Mar 2020 22:00:18 +0000 (18:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 05:30:57 +0000 (22:30 -0700)
commit2a0435c08210896f8a3d5d75bff7296d55db9cc7
tree3c0e6668fcf9fd15511ee750d93d02a829776e72
parent4dd62971c6b4dea32a714e553cce6f2fdaac7e8e
include: uapi: linux: add rpl sr header definition

This patch adds a uapi header for rpl struct definition. The segments
data can be accessed over rpl_segaddr or rpl_segdata macros. In case of
compri and compre is zero the segment data is not compressed and can be
accessed by rpl_segaddr. In the other case the compressed data can be
accessed by rpl_segdata and interpreted as byte array.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rpl.h [new file with mode: 0644]