rtnl_tc: support new TCA_* attributes
* xlat/rtnl_tc_attrs.in (TCA_HW_OFFLOAD, TCA_INGRESS_BLOCK, TCA_EGRESS_BLOCK): New constants introduced by linux kernel commits v4.15-rc4~13^2~5^2~2 and v4.16-rc1~123^2~139^2~5. * rtnl_tc.c (tcmsg_nla_decoders) <TCA_HW_OFFLOAD, TCA_INGRESS_BLOCK, TCA_EGRESS_BLOCK>: New items.
This commit is contained in:
parent
27e141b442
commit
d824282814
@ -293,7 +293,10 @@ static const nla_decoder_t tcmsg_nla_decoders[] = {
|
||||
[TCA_STAB] = decode_tca_stab,
|
||||
[TCA_PAD] = NULL,
|
||||
[TCA_DUMP_INVISIBLE] = NULL,
|
||||
[TCA_CHAIN] = decode_nla_u32
|
||||
[TCA_CHAIN] = decode_nla_u32,
|
||||
[TCA_HW_OFFLOAD] = decode_nla_u8,
|
||||
[TCA_INGRESS_BLOCK] = decode_nla_u32,
|
||||
[TCA_EGRESS_BLOCK] = decode_nla_u32,
|
||||
};
|
||||
|
||||
DECL_NETLINK_ROUTE_DECODER(decode_tcmsg)
|
||||
|
@ -10,3 +10,6 @@ TCA_STAB 8
|
||||
TCA_PAD 9
|
||||
TCA_DUMP_INVISIBLE 10
|
||||
TCA_CHAIN 11
|
||||
TCA_HW_OFFLOAD 12
|
||||
TCA_INGRESS_BLOCK 13
|
||||
TCA_EGRESS_BLOCK 14
|
||||
|
Loading…
x
Reference in New Issue
Block a user