Message ID | 20181005232522.4848-4-vinicius.gomes@intel.com |
---|---|
State | Accepted, archived |
Delegated to: | David Ahern |
Headers | show |
Series | Introduce the taprio scheduler | expand |
diff --git a/include/libnetlink.h b/include/libnetlink.h index ffc49e56..c44c3c72 100644 --- a/include/libnetlink.h +++ b/include/libnetlink.h @@ -185,6 +185,10 @@ static inline __u64 rta_getattr_u64(const struct rtattr *rta) memcpy(&tmp, RTA_DATA(rta), sizeof(__u64)); return tmp; } +static inline __s32 rta_getattr_s32(const struct rtattr *rta) +{ + return *(__s32 *)RTA_DATA(rta); +} static inline __s64 rta_getattr_s64(const struct rtattr *rta) { __s64 tmp;