Add UAPI to provide set of flags for matching, where the flags provided from user-space are mapped to flow-dissector flags. The 1st flag allows to match on whether the packet is an IP fragment and corresponds to the FLOW_DIS_IS_FRAGMENT flag.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -458,11 +458,18 @@ enum { · 457 unmodified lines | ||
| 458 | 458 | TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK, /* be16 */ |
| 459 | 459 | TCA_FLOWER_KEY_ENC_UDP_DST_PORT, /* be16 */ |
| 460 | 460 | TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK, /* be16 */ |
| 461 | + | |
| 462 | + TCA_FLOWER_KEY_FLAGS, /* be32 */ | |
| 463 | + TCA_FLOWER_KEY_FLAGS_MASK, /* be32 */ | |
| 461 | 464 | __TCA_FLOWER_MAX, |
| 462 | 465 | }; |
| 463 | 466 | |
| 464 | 467 | #define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1) |
| 465 | 468 | |
| 469 | +enum { | |
| 470 | + TCA_FLOWER_KEY_FLAGS_IS_FRAGMENT = (1 << 0), | |
| 471 | +}; | |
| 472 | + | |
| 466 | 473 | /* Match-all classifier */ |
| 467 | 474 | |
| 468 | 475 | enum { |