Skip to content

Commit f0c1e46

Browse files
michaelbaum1raslandarawsheh
authored andcommitted
ethdev: add IPv6 FL and TC field identifiers
Add new "rte_flow_field_id" enumeration values to describe both IPv6 traffic class and IPv6 flow label fields. The TC value is "RTE_FLOW_FIELD_IPV6_TRAFFIC_CLASS" in flow API and "ipv6_traffic_class" in testpmd command. The FL value is "RTE_FLOW_FIELD_IPV6_FLOW_LABEL" in flow API and "ipv6_flow_label" in testpmd command. Signed-off-by: Michael Baum <[email protected]> Acked-by: Dariusz Sosnowski <[email protected]> Acked-by: Ferruh Yigit <[email protected]>
1 parent 58b6d9f commit f0c1e46

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

app/test-pmd/cmdline_flow.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ static const char *const flow_field_ids[] = {
10031003
"random",
10041004
"ipv4_proto",
10051005
"esp_spi", "esp_seq_num", "esp_proto",
1006+
"ipv6_flow_label", "ipv6_traffic_class",
10061007
NULL
10071008
};
10081009

doc/guides/rel_notes/release_24_03.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ New Features
7676
* Added ``RTE_FLOW_FIELD_ESP_SPI`` to represent it in field ID struct.
7777
* Added ``RTE_FLOW_FIELD_ESP_SEQ_NUM`` to represent it in field ID struct.
7878
* Added ``RTE_FLOW_FIELD_ESP_PROTO`` to represent it in field ID struct.
79+
* Added ``RTE_FLOW_FIELD_IPV6_FLOW_LABEL`` to represent it in field ID struct.
80+
* Added ``RTE_FLOW_FIELD_IPV6_TRAFFIC_CLASS`` to represent it in field ID struct.
7981

8082
* ** Support for getting the number of used descriptors of a Tx queue. **
8183

lib/ethdev/rte_flow.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,9 @@ enum rte_flow_field_id {
24252425
RTE_FLOW_FIELD_IPV4_PROTO, /**< IPv4 next protocol. */
24262426
RTE_FLOW_FIELD_ESP_SPI, /**< ESP SPI. */
24272427
RTE_FLOW_FIELD_ESP_SEQ_NUM, /**< ESP Sequence Number. */
2428-
RTE_FLOW_FIELD_ESP_PROTO /**< ESP next protocol value. */
2428+
RTE_FLOW_FIELD_ESP_PROTO, /**< ESP next protocol value. */
2429+
RTE_FLOW_FIELD_IPV6_FLOW_LABEL, /**< IPv6 flow label. */
2430+
RTE_FLOW_FIELD_IPV6_TRAFFIC_CLASS/**< IPv6 traffic class. */
24292431
};
24302432

24312433
/**

0 commit comments

Comments
 (0)