diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/rtnetlink.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index 843e29aa3cac..9b15005955fa 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h | |||
| @@ -541,9 +541,19 @@ struct tcmsg { | |||
| 541 | int tcm_ifindex; | 541 | int tcm_ifindex; |
| 542 | __u32 tcm_handle; | 542 | __u32 tcm_handle; |
| 543 | __u32 tcm_parent; | 543 | __u32 tcm_parent; |
| 544 | /* tcm_block_index is used instead of tcm_parent | ||
| 545 | * in case tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK | ||
| 546 | */ | ||
| 547 | #define tcm_block_index tcm_parent | ||
| 544 | __u32 tcm_info; | 548 | __u32 tcm_info; |
| 545 | }; | 549 | }; |
| 546 | 550 | ||
| 551 | /* For manipulation of filters in shared block, tcm_ifindex is set to | ||
| 552 | * TCM_IFINDEX_MAGIC_BLOCK, and tcm_parent is aliased to tcm_block_index | ||
| 553 | * which is the block index. | ||
| 554 | */ | ||
| 555 | #define TCM_IFINDEX_MAGIC_BLOCK (0xFFFFFFFFU) | ||
| 556 | |||
| 547 | enum { | 557 | enum { |
| 548 | TCA_UNSPEC, | 558 | TCA_UNSPEC, |
| 549 | TCA_KIND, | 559 | TCA_KIND, |
| @@ -558,6 +568,8 @@ enum { | |||
| 558 | TCA_DUMP_INVISIBLE, | 568 | TCA_DUMP_INVISIBLE, |
| 559 | TCA_CHAIN, | 569 | TCA_CHAIN, |
| 560 | TCA_HW_OFFLOAD, | 570 | TCA_HW_OFFLOAD, |
| 571 | TCA_INGRESS_BLOCK, | ||
| 572 | TCA_EGRESS_BLOCK, | ||
| 561 | __TCA_MAX | 573 | __TCA_MAX |
| 562 | }; | 574 | }; |
| 563 | 575 | ||
